ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.15k stars 9.92k forks source link

Create fragmented mp4 files for Mediathek downloads #12154

Closed madduck closed 7 years ago

madduck commented 7 years ago

Before submitting an issue make sure you have:

What is the purpose of your issue?

Description of your issue, suggested solution and other information

If youtube-dl downloads a file from the Mediathek (extractor/ard.py), it creates a so-called non-fragmented mp4 file, which cannot be played unless it is fully downloaded.

it'd be better if youtube-dl could repack the file creating fragmented mp4. Please see https://stackoverflow.com/questions/8616855/how-to-output-fragmented-mp4-with-ffmpeg for information on how this can be achieved using ffmpeg.

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them.

yan12125 commented 7 years ago

Coud you give an example video URL?

madduck commented 7 years ago

also sprach Yen Chi Hsuan notifications@github.com [2017-02-16 23:46 +1300]:

Coud you give an example video URL?

Of course, though they are often only valid for a few days:

http://www.ardmediathek.de/tv/Tatort/Vorschau-auf-Tatort-Land-in-dieser-Zei/Das-Erste/Video?bcastId=602916&documentId=39711304

This is also just a short film. If you need a longer one, try this:

http://www.ardmediathek.de/tv/Tatort/Hinter-dem-Spiegel/Das-Erste/Video?bcastId=602916&documentId=40609022

-- The sender e-mail address used (github.com@pobox.madduck.net) is valid and specific to our correspondence. It should not indicate any affiliation with your organisation.

Die verwendete E-mail-Adresse (github.com@pobox.madduck.net) ist gültig und spezifisch für unsere Korrespondenz. Sie soll in keiner Weise auf eine Verbindung mit Ihrer Organisation hindeuten.

Spamtrap: github.com.bogus@pobox.madduck.net

yan12125 commented 7 years ago

which cannot be played unless it is fully downloaded

Try this:

youtube-dl -v "http://www.ardmediathek.de/tv/Tatort/Hinter-dem-Spiegel/Das-Erste/Video?bcastId=602916&documentId=40609022" --hls-use-mpegts
madduck commented 7 years ago

This seems to work, indeed. Is there a way to make this default for a site?

yan12125 commented 7 years ago

Site-specific options is still on its way: #8901. --hls-use-mpegts brings no harm unless you're using quite old video players. You may want to just put it in global configuration files.

Closing as the request feature is already implemented.

madduck commented 7 years ago

Thanks, already done!