[FFmpeg-user] OT: How to download a video

DopeLabs dopelabs at dubstep.fm
Sat Nov 4 22:00:36 EET 2017


first get the download url using youtube-dl


$ youtube-dl -f best -g http://www.pbs.org/video/wfyi-local-productions-temple-makers/
https://ga.video.cdn.pbs.org/videos/wfyi-local-productions/2e9d36ba-d5f6-4d45-84df-b5ca5acd551c/250267/hd-mezzanine-16x9/2c382920_l-00004055-16x9-mp4-2500k.mp4

then change https to http

$ youtube-dl http://ga.video.cdn.pbs.org/videos/wfyi-local-productions/2e9d36ba-d5f6-4d45-84df-b5ca5acd551c/250267/hd-mezzanine-16x9/2c382920_l-00004055-16x9-mp4-2500k.mp4
[generic] 2c382920_l-00004055-16x9-mp4-2500k: Requesting header
[download] Destination: 2c382920_l-00004055-16x9-mp4-2500k-2c382920_l-00004055-16x9-mp4-2500k.mp4
Initializing download: http://ga.video.cdn.pbs.org/videos/wfyi-local-productions/2e9d36ba-d5f6-4d45-84df-b5ca5acd551c/250267/hd-mezzanine-16x9/2c382920_l-00004055-16x9-mp4-2500k.mp4
File size: 1077791195 bytes
Opening output file 2c382920_l-00004055-16x9-mp4-2500k-2c382920_l-00004055-16x9-mp4-2500k.mp4.part
Starting download
Downloaded 1.0 Gigabyte in 17 seconds. (60486.33 KB/s)
[axel] Downloaded 1077791195 bytes
[download] 100% of 1.00GiB


> On Nov 4, 2017, at 11:21 07AM, JD <jd1008 at gmail.com> wrote:
> 
> I am using firefox and Inspect element is not working :(
> Also, I did download the page source, and grep'ed the file for mp4
> and found none :(
> 
> 
> On 11/04/2017 11:51 AM, Moritz Barsnick wrote:
>> On Sat, Nov 04, 2017 at 11:26:42 -0600, JD wrote:
>>> Could someone please tell me a linux tool that will download the video at
>>> http://www.pbs.org/video/wfyi-local-productions-temple-makers/
>>> 
>>> Youtube-dl could not do it.
>> Remember to always use the latest version of youtube-dl, as streaming
>> websites are "moving targets":
>> 
>> $ ./youtube-dl http://www.pbs.org/video/wfyi-local-productions-temple-makers/
>> [pbs] Downloading JSON metadata
>> [pbs] wfyi-local-productions-temple-makers: Downloading webpage
>> [pbs] 2365795021: Downloading widget/partnerplayer page
>> [pbs] 2365795021: Downloading portalplayer page
>> [pbs] 2365795021: Downloading hls-400-2500k-16x9 video url info
>> [pbs] 2365795021: Downloading m3u8 information
>> [pbs] 2365795021: Downloading mp4-2500k-16x9 video url info
>> [pbs] 2365795021: Downloading hls-800k-16x9 video url info
>> [pbs] 2365795021: Downloading m3u8 information
>> [pbs] 2365795021: Downloading mp4-baseline-16x9 video url info
>> [pbs] 2365795021: Checking http-1200k video URL
>> [pbs] 2365795021: Checking http-2500k video URL
>> [pbs] 2365795021: Checking http-800k video URL
>> [pbs] 2365795021: Checking http-400k video URL
>> [download] Destination: The Temple Makers - The Temple Makers-2365795021.mp4
>> [download]   0.8% of 1.00GiB at  1.62MiB/s ETA 10:27^C
>> ERROR: Interrupted by user
>> $
>> 
>> Works just fine!
>> 
>> A little hint: One video URL is directly in the source which my browser
>> gets, I just right-click in the video, select "Inspect element"
>> (Firefox, Chrome(ium), Opera), and see the URL
>> https://ga.video.cdn.pbs.org/videos/wfyi-local-productions/2e9d36ba-d5f6-4d45-84df-b5ca5acd551c/250267/hd-mezzanine-16x9/2c382920_l-00004055-16x9-mp4-baseline.mp4
>> which is downloadable (albeit a low quality version, I think).
>> 
>> Cheers,
>> Moritz
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list