LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-09-2019, 09:22 AM   #1
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,165

Rep: Reputation: 436Reputation: 436Reputation: 436Reputation: 436Reputation: 436
Chasing the Moon


Great series on public tv right now. Chasing the Moon.
For anyone who is interested. And they did this pre unix.
What an incredible science project.
https://www.pbs.org/video/chasing-th...part-1-kpyzvq/

Code:
agent="Mozilla/5.0 (Windows NT 10.0; x86_64; rv:67.0) Gecko/20100101 Firefox/67.0"

curl -A "$agent" https://ga.video.cdn.pbs.org/\
videos/american-experience/e6b00ef7-8237-418a-97b8-d9897c28bf47/2000121756/\
hd-16x9-mezzanine-1080p/\
aqaacl9d_amex3103-16x9-1080p-432p-1100k_[00001-01128].ts -o - >> ChasMoon1.ts

curl -A "$agent" https://ga.video.cdn.pbs.org/\
videos/american-experience/dc482b0b-e698-43e3-9bcd-66d290b62453/\
2000122314/hd-16x9-mezzanine-1080p/\
vqbzxzxq_amex3104_r-16x9-1080p-432p-1100k_[00001-01120].ts -o - >> ChasMoon2.ts

curl -A "$agent" https://ga.video.cdn.pbs.org/\
videos/american-experience/20e17b6e-8feb-4358-a51f-f3222131dcfe/\
2000122316/hd-16x9-mezzanine-1080p/\
hxydyuvx_amex3105-16x9-1080p-432p-1100k_[00001-01125].ts -o - >> ChasMoon3.ts

for i in ChasMoon{1..3}.ts; do 
    ffmpeg -i "$i" -c:a copy -c:v copy "${i%.*}".mp4
done
Those videos will be about 1GB each.

Or if you want the segment playlists so that you can get the resolution that
you want, and use something like youtube-dl on them. Or just simply stream
them with a media player.
Code:
a="https://ga.video.cdn.pbs.org/videos/\
american-experience/e6b00ef7-8237-418a-97b8-d9897c28bf47/\
2000121756/hd-16x9-mezzanine-1080p/aqaacl9d_amex3103-16x9-1080p.m3u8"

b="https://ga.video.cdn.pbs.org/videos/\
american-experience/dc482b0b-e698-43e3-9bcd-66d290b62453/\
2000122314/hd-16x9-mezzanine-1080p/vqbzxzxq_amex3104_r-16x9-1080p.m3u8"

c="https://ga.video.cdn.pbs.org/videos/\
american-experience/20e17b6e-8feb-4358-a51f-f3222131dcfe/\
2000122316/hd-16x9-mezzanine-1080p/hxydyuvx_amex3105-16x9-1080p.m3u8"

for i in "$a" "$b" "$c"; do 
    pl=$(curl "$agent" "$i")
    for j in $pl; do 
        echo -e ""$j"\n"
    done
    str=$(printf "%70s")
    echo "${str// /=}"
done
 
Old 07-09-2019, 10:01 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,697

Rep: Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736Reputation: 2736
Darn it... I was traveling and missed the 1st episode and then forgot to watch the 2nd.

Thanks for posting the links.
 
Old 07-09-2019, 11:46 AM   #3
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 355
Blog Entries: 5

Rep: Reputation: 250Reputation: 250Reputation: 250
Dude, your direct links bypass geo restrictions on the website!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: iPhone chasing Linux in operating system market share race LXer Syndicated Linux News 0 09-01-2008 09:50 PM
help really confused and chasing my tail comnet1 Linux - Server 1 06-27-2007 01:35 AM
LXer: Linux: Chasing Down Data Corruption LXer Syndicated Linux News 0 12-29-2006 09:03 AM
Chasing Dependancies - An easier way? HCLogo Linux - Software 4 04-26-2004 11:54 AM
ahhhhhhh there's monkey chasing me!!! sanjeevan Linux - Newbie 2 06-28-2003 06:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration