.. | ||
mediathek-download.fish | ||
README.org |
mediathek-download
mediathek-download
is a simple fish script for downloading videos form the
mediatheks from ZDF, ARD and similar one who split and devliver the video in
segments. Additional to download the video, it combines it to one file and
converts it to mp4. Currently it only handles .ts files.
Preparation
Executing
It is assumed, that the script is executable as shown before. If it isn't
prepend the executions with fish
.
./mediathek-download.fish <number of sequences> <URL before segment number> [URL after segment number]
The first to arguments are required, while the last one is optional. The number of sequences and the URL can be extracted from the developer tools of your browser. Read the next chapter for more information.
Extracting necessary informations
Firefox
- Visit the site with the video.
- Open the Developer Tools: Menu > Web Developer > Network.
- Make sure only Media and Other are selected in the filter bar (second bar from top in the Developer Tools window).
- It may be necessary to select a specific video quality in the player, especially if it is set to automatic.
- Start the video or, if it autostarted, reload the page.
- Make sure you see some requests containing a .ts file extension
- Jump nearly to the end of the video
- A pattern showing the segment numbers should be visible. Remember the last (and probably highest number), it should be the number of sequences.
- Click on the last list entry once the video finished.
- Select and copy the complete Request URL
- Split the copied string into the part before and (is existent) the part after the segment number.
- Run the script with the now known parameters.
Google Chrome
- Visit the site with the video.
- Open the Developer Tools: Menu > More Tools > Developer Tools.
- Select Network in the Developer Tools window
- Make sure only XHR is selected in the filter bar (third bar from top in the Developer Tools window). If nothing is found there after the following stepts, try All.
- It may be necessary to select a specific video quality in the player, especially if it is set to automatic.
- Start the video or, if it autostarted, reload the page.
- Make sure you see some requests containing a .ts file extension
- Jump nearly to the end of the video
- A pattern showing the segment numbers should be visible. Remember the last (and probably highest number), it should be the number of sequences.
- Click on the last list entry once the video finished.
- Select and copy the complete Request URL in the Headers tab.
- Split the copied string into the part before and (is existent) the part after the segment number.
- Run the script with the now known parameters.