RTBF impossible to choose quality formats #4902

Closed
opened 2026-02-21 00:27:29 -05:00 by deekerman · 2 comments
Owner

Originally created by @KevinNX on GitHub (Jun 10, 2015).

While it's possible to download a video hosted on RTBF.be, it doesn't seem to be possible to choose the quality of the video. On RTBF's webpages, there are 3 choices: "SD", "MD", "HD". By default, youtube-dl takes the highest quality (which may be at random e.g. because it's the first link in the page).

Here is the output I get when I list the available formats from the webpage whose video I want to download:

youtube-dl "http://www.rtbf.be/video/detail_le-12-minutes?id=2022485" --list-formats -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://www.rtbf.be/video/detail_le-12-minutes?id=2022485', u'--list-formats', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 2.7.5 - Darwin-14.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1, rtmpdump 2.4
[debug] Proxy map: {}
[RTBF] 2022485: Downloading webpage
[info] Available formats for 2022485:
format code  extension  resolution note
0            mp4        unknown    

When I download the video, here is what I get:

youtube-dl "http://www.rtbf.be/video/detail_le-12-minutes?id=2022485" -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://www.rtbf.be/video/detail_le-12-minutes?id=2022485', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.04.1
[debug] Python version 2.7.5 - Darwin-14.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1, rtmpdump 2.4
[debug] Proxy map: {}
[RTBF] 2022485: Downloading webpage
[debug] Invoking downloader on u'http://podvideo.prd.rtbf.be/redirect/rtbf_vod/folder-31859/copy-32/info__le_12_minutes_090620152230__090620152230.mp4'
[download] Destination: Le 12 minutes-2022485.mp4

When you check out the source code, it seems it takes the first link:

<div id="js-embed-player" 
...
&quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/copy-32\/info__le_12_minutes_090620152230__090620152230.mp4
...
&quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/copy-32\/info__le_12_minutes_090620152230__090620152230.mp4 
...
&quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/copy-32\/info__le_12_minutes_090620152230__090620152230.mp4
...
&quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/mp4-383\/info__le_12_minutes_090620152230__090620152230.mp4
...
&quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/mp4-377\/info__le_12_minutes_090620152230__090620152230.mp4
...
</div>

Is there any way to select "high", "web", or "mobile" (respectively "SD", "MD" and "HD") with youtube-dl?

Originally created by @KevinNX on GitHub (Jun 10, 2015). While it's possible to download a video hosted on RTBF.be, it doesn't seem to be possible to choose the quality of the video. On RTBF's webpages, there are 3 choices: "SD", "MD", "HD". By default, youtube-dl takes the highest quality (which may be at random e.g. because it's the first link in the page). Here is the output I get when I list the available formats from the webpage whose video I want to download: ``` youtube-dl "http://www.rtbf.be/video/detail_le-12-minutes?id=2022485" --list-formats -v [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'http://www.rtbf.be/video/detail_le-12-minutes?id=2022485', u'--list-formats', u'-v'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.06.04.1 [debug] Python version 2.7.5 - Darwin-14.3.0-x86_64-i386-64bit [debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1, rtmpdump 2.4 [debug] Proxy map: {} [RTBF] 2022485: Downloading webpage [info] Available formats for 2022485: format code extension resolution note 0 mp4 unknown ``` When I download the video, here is what I get: ``` youtube-dl "http://www.rtbf.be/video/detail_le-12-minutes?id=2022485" -v [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'http://www.rtbf.be/video/detail_le-12-minutes?id=2022485', u'-v'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.06.04.1 [debug] Python version 2.7.5 - Darwin-14.3.0-x86_64-i386-64bit [debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1, rtmpdump 2.4 [debug] Proxy map: {} [RTBF] 2022485: Downloading webpage [debug] Invoking downloader on u'http://podvideo.prd.rtbf.be/redirect/rtbf_vod/folder-31859/copy-32/info__le_12_minutes_090620152230__090620152230.mp4' [download] Destination: Le 12 minutes-2022485.mp4 ``` When you check out the source code, it seems it takes the first link: ``` <div id="js-embed-player" ... &quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/copy-32\/info__le_12_minutes_090620152230__090620152230.mp4 ... &quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/copy-32\/info__le_12_minutes_090620152230__090620152230.mp4 ... &quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/copy-32\/info__le_12_minutes_090620152230__090620152230.mp4 ... &quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/mp4-383\/info__le_12_minutes_090620152230__090620152230.mp4 ... &quot;http:\/\/podvideo.prd.rtbf.be\/redirect\/rtbf_vod\/folder-31859\/mp4-377\/info__le_12_minutes_090620152230__090620152230.mp4 ... </div> ``` Is there any way to select "high", "web", or "mobile" (respectively "SD", "MD" and "HD") with youtube-dl?
Author
Owner

@jaimeMF commented on GitHub (Jun 10, 2015):

Thanks for the report, all formats are extracted now.

@jaimeMF commented on GitHub (Jun 10, 2015): Thanks for the report, all formats are extracted now.
Author
Owner

@KevinNX commented on GitHub (Jun 10, 2015):

I've just downloaded the latest files: perfect, it works like a charm! Thanks for that super fast update.

@KevinNX commented on GitHub (Jun 10, 2015): I've just downloaded the latest files: perfect, it works like a charm! Thanks for that super fast update.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#4902
No description provided.