Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[ARD] HD format as mp4 file (best) not found #17744
Comments
|
Well, seems like the same result, basically.. (720p) |
|
diff ffprobe HLS stream <-> HTTP file download: --- "1929 - Das Jahr Babylon-56517232.mp4.ffprobe" 2018-10-02 14:26:43.750085877 +0200
+++ 1280-1.mp4.ffprobe 2018-10-02 14:27:02.566086703 +0200
@@ -1,13 +1,16 @@
-Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1929 - Das Jahr Babylon-56517232.mp4':
+Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1280-1.mp4':
Metadata:
- major_brand : isom
- minor_version : 512
- compatible_brands: isomiso2avc1mp41
- encoder : Lavf57.83.100
- Duration: 00:43:50.08, start: 0.000000, bitrate: 3777 kb/s
- Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 3583 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
+ major_brand : mp42
+ minor_version : 0
+ compatible_brands: isom
+ creation_time : 2018-09-18T20:48:26.000000Z
+ Duration: 00:43:50.08, start: 0.000000, bitrate: 3775 kb/s
+ Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 3582 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
- handler_name : VideoHandler
- Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
+ creation_time : 2018-09-18T20:48:26.000000Z
+ handler_name : MP4 Video Media Handler
+ encoder : AVC Coding
+ Stream #0:1(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
- handler_name : SoundHandler
+ creation_time : 2018-09-18T20:48:26.000000Z
+ handler_name : MP4 Sound Media Handlerdiff mediainfo HLS stream <-> HTTP file download: --- "1929 - Das Jahr Babylon-56517232.mp4.mediainfo" 2018-10-02 14:23:12.784419862 +0200
+++ 1280-1.mp4.mediainfo 2018-10-02 14:22:49.024420168 +0200
@@ -1,13 +1,14 @@
General
-Complete name : 1929 - Das Jahr Babylon-56517232.mp4
+Complete name : 1280-1.mp4
Format : MPEG-4
-Format profile : Base Media
-Codec ID : isom (isom/iso2/avc1/mp41)
+Format profile : Base Media / Version 2
+Codec ID : mp42 (isom)
File size : 1.16 GiB
Duration : 43 min 50 s
-Overall bit rate mode : Constant
-Overall bit rate : 3 777 kb/s
-Writing application : Lavf57.83.100
+Overall bit rate mode : Variable
+Overall bit rate : 3 775 kb/s
+Encoded date : UTC 2018-09-18 20:48:26
+Tagged date : UTC 2018-09-18 20:48:26
Video
ID : 1
@@ -35,6 +36,9 @@ Bit depth
Scan type : Progressive
Bits/(Pixel*Frame) : 0.156
Stream size : 1.10 GiB (95%)
+Language : English
+Encoded date : UTC 2018-09-18 20:48:26
+Tagged date : UTC 2018-09-18 20:48:26
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
@@ -47,15 +51,17 @@ Format/Info
Format profile : LC
Codec ID : mp4a-40-2
Duration : 43 min 50 s
-Bit rate mode : Constant
+Bit rate mode : Variable
Bit rate : 192 kb/s
+Maximum bit rate : 305 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 59.4 MiB (5%)
-Default : Yes
-Alternate group : 1
+Language : German
+Encoded date : UTC 2018-09-18 20:48:26
+Tagged date : UTC 2018-09-18 20:48:26
HLS stream:
HTTP file download:
|
|
And bitrate 3583 kb/s vs. 3582 kb/s.. No really, thanks for this comparison. And I agree, the MP4 direct download is actually the better default and should be preferred, for the reasons you already mentioned. BTW, what did you use to find the links? One of these?
|
Exactly. https://mediathekviewweb.de - is my favorite because of being fast due to using AJAX. In case I need a database in a local file, I go to https://mediathekdirekt.de/. |
|
Could you try out the version from my pull request? It solve this issue for all media from Das Erste. |
|
Sorry for not replying before. For now the patch cannot be cleanly applied. But looking at https://github.com/ytdl-org/youtube-dl/pull/17851/files#diff-2ebe82369b35395b419db1575a615d9dR27 # IMPORTANT: Not valid for media from WDR/BR/etc. serversit seems it is not exactly what this issue is about, since the video from 'Das Erste' was only one example for an ARD URL (www.ardmediathek.de / classic.ardmediathek.de). |
|
For ARD download URLs can be obtained generally as follows (in a bash shell): URL_CLASSIC='https://classic.ardmediathek.de/tv/mareTV/Estlands-verwunschene-Inseln/NDR-Fernsehen/Video?bcastId=14049152&documentId=66593126'
ID=`echo "${URL_CLASSIC}" | sed -e 's|.*documentId=\([0-9]*\)|\1|'`
JSON=`wget -q -O - "https://www.ardmediathek.de/play/media/${ID}"`
echo $JSON | jq -r '._mediaArray[]._mediaStreamArray[]._stream'Result:
|
|
It looks like for quality parameter applies:
Thus one can select the desired download URL (e.g. "HD"):
Result:
|
|
I might take a look at this again next week. Things have changed significantly since 2018, so it's likely all going to be different now. Shouldn't be difficult to find out, though.
At the time, there weren't any higher quality streams/files from WDR/BR/etc. that weren't found by the existing code. Might have changed now but only ARD-Mediathek-hosted videos had higher quality back in 2018. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.09.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Description of your issue, suggested solution and other information
1280x720 mp4 file (https://pdvideosdaserste-a.akamaihd.net/int/2018/09/18/196f8dd1-4491-4405-be65-fff78fcc8e0d/1280-1.mp4) has not been discovered. It should be selected as "best" instead of hls-3771 ts stream (which would need ffmpeg postprocessing).
P.S. above is only an example for the issue with ARD Mediathek.