PDA

View Full Version : How to choose the video version when I use youtube-dl to grab from BBC?


dbigger
09-30-2015, 06:33 AM
~$ youtube-dl -F http://www.bbc.co.uk/iplayer/episode/xxxxxxxxxxxxxxxx

[info] Available formats :
format code extension resolution note
stream-uk-iptv_streaming_concrete_combined_hd_mf_akamai_uk_h ls-meta mp4 multiple Quality selection URL , h264@8490k
stream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_u k_hls-meta mp4 multiple Quality selection URL , h264@8490k
iplayer_stb_streaming_sd_akamai_hls_open-meta mp4 multiple Quality selection URL , h264@ 796k, 149.37MiB
iptv_streaming_1500_akamai_hls_open-meta mp4 multiple Quality selection URL , h264@1500k, 279.46MiB
iplayer_stb_streaming_hd_akamai_hls_open-meta mp4 multiple Quality selection URL , h264@2800k, 440.14MiB
iplayer_stb_streaming_sd_akamai_hls_open-797 mp4 640x360 797k , h264@ 796k, mp4a, 149.37MiB
iptv_streaming_1500_akamai_hls_open-797 mp4 832x468 797k , h264@1500k, mp4a, 279.46MiB
iplayer_stb_streaming_hd_akamai_hls_open-797 mp4 1280x720 797k , h264@2800k, mp4a, 440.14MiB
stream-uk-iptv_streaming_concrete_combined_hd_mf_akamai_uk_h ls-1012 mp4 1920x1080 1012k , h264@8490k, avc1
stream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_u k_hls-1012 mp4 1920x1080 1012k , h264@8490k, avc1
iplayer_stb_streaming_sd_akamai_hls_open-1497 mp4 640x360 1497k , h264@ 796k, mp4a, 149.37MiB
iptv_streaming_1500_akamai_hls_open-1497 mp4 832x468 1497k , h264@1500k, mp4a, 279.46MiB
iplayer_stb_streaming_hd_akamai_hls_open-1497 mp4 1280x720 1497k , h264@2800k, mp4a, 440.14MiB
stream-uk-iptv_streaming_concrete_combined_hd_mf_akamai_uk_h ls-1799 mp4 1920x1080 1799k , h264@8490k, avc1
stream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_u k_hls-1799 mp4 1920x1080 1799k , h264@8490k, avc1
iplayer_stb_streaming_sd_akamai_hls_open-2361 mp4 640x360 2361k , h264@ 796k, mp4a, 149.37MiB
iptv_streaming_1500_akamai_hls_open-2361 mp4 832x468 2361k , h264@1500k, mp4a, 279.46MiB
iplayer_stb_streaming_hd_akamai_hls_open-2361 mp4 1280x720 2361k , h264@2800k, mp4a, 440.14MiB
stream-uk-iptv_streaming_concrete_combined_hd_mf_akamai_uk_h ls-3116 mp4 1920x1080 3116k , h264@8490k, avc1
stream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_u k_hls-3116 mp4 1920x1080 3116k , h264@8490k, avc1
stream-uk-iptv_streaming_concrete_combined_hd_mf_akamai_uk_h ls-5509 mp4 1920x1080 5509k , h264@8490k, avc1
stream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_u k_hls-5509 mp4 1920x1080 5509k , h264@8490k, avc1 (best)




the format codes from bbc are different from youtube format codes. I want to download the 720p version. Can anyone help me? Thanks in advance.


===================================

update: ok. after I checked the youtube-dl documentation, I have solved the problem by myself.

offthecuff
10-03-2015, 05:33 PM
good you solved your problem
i put here to help others with same problem :)

How to choose a certain video version (not just best)

type this to get the formats

youtube-dl -F http://www.bbc.co.uk/iplayer/episode/b06h7gj1/strictly-come-dancing-series-13-week-2



iplayer_streaming_h264_flv_lo_akamai flv 640x360 h264@ 480k, 461
.33MiB
iplayer_streaming_h264_flv_lo_limelight flv 640x360 h264@ 480k, 461
.33MiB
iplayer_streaming_h264_flv_akamai flv 640x360 h264@ 796k, 718
.23MiB
iplayer_streaming_h264_flv_limelight flv 640x360 h264@ 796k, 718
.23MiB
iplayer_streaming_h264_flv_high_akamai flv 832x468 h264@1500k, 1.3
1GiB
iplayer_streaming_h264_flv_high_limelight flv 832x468 h264@1500k, 1.3
1GiB (best)

now pick a format

iplayer_streaming_h264_flv_limelight flv 640x360 h264@ 796k, 718

we just need the bit in red

now write it like this


youtube-dl -f iplayer_streaming_h264_flv_limelight "http://www.bbc.co.uk/iplayer/episode/b06h7gj1/strictly-come-dancing-series-13-week-2" -o C:\out.flv

dbigger
10-05-2015, 08:43 AM
good you solved your problem
i put here to help others with same problem :)

How to choose a certain video version (not just best)

type this to get the formats

youtube-dl -F http://www.bbc.co.uk/iplayer/episode/b06h7gj1/strictly-come-dancing-series-13-week-2



iplayer_streaming_h264_flv_lo_akamai flv 640x360 h264@ 480k, 461
.33MiB
iplayer_streaming_h264_flv_lo_limelight flv 640x360 h264@ 480k, 461
.33MiB
iplayer_streaming_h264_flv_akamai flv 640x360 h264@ 796k, 718
.23MiB
iplayer_streaming_h264_flv_limelight flv 640x360 h264@ 796k, 718
.23MiB
iplayer_streaming_h264_flv_high_akamai flv 832x468 h264@1500k, 1.3
1GiB
iplayer_streaming_h264_flv_high_limelight flv 832x468 h264@1500k, 1.3
1GiB (best)

now pick a format

iplayer_streaming_h264_flv_limelight flv 640x360 h264@ 796k, 718

we just need the bit in red

now write it like this


youtube-dl -f iplayer_streaming_h264_flv_limelight "http://www.bbc.co.uk/iplayer/episode/b06h7gj1/strictly-come-dancing-series-13-week-2" -o C:\out.flv


nice tips.

before I posted this thread, I used the same format code as you did. But it just didn't work for me.

and It' weird that youtube-dl didn't tell me the truth, there isn't any 1920x1080 at all. The best version is 720p 5000Kbps@50fps , the second best is
720p 2000Kbps @25fps . I want do download the 720p 25fps because my PC can't play the 50fps video smoothly.

I use this command to choose the version I want.
youtube-dl -f "[height=720][tbr<5000]" http://www.bbc.co.uk/iplayer/episode/xxxxxxxxxx