get-iplayer / get_iplayer

A utility for downloading TV and radio programmes from BBC iPlayer and BBC Sounds
https://github.com/get-iplayer/get_iplayer/wiki
GNU General Public License v3.0
2.16k stars 233 forks source link

Add support for downloading audio-only track for on-demand TV streams #318

Closed tmthywynn8 closed 7 years ago

tmthywynn8 commented 7 years ago

Though I do not know of any other use cases for this request, some blind/visually impaired users may want this option so they can download the Audio Described audio tracks only, and not waste any bandwidth on video. Currently, if one wanted to keep only the audio track, one could use the --raw option on DVF streams, but the video track would be downloaded as well.

Here's an example from the first episode of Class (PID p048h1s0) from the Akamai server, using the HLS streaming protocol:

  1. Find the HLS master playlist:
  2. Find the corresponding audio stream (audio_1=128000). You could find the audio track(s) by opening the playlist and modifying the relative URLs, or If you use a Regexp, you could:
  3. Download all fragments and combine to M4A file.

I don't know how to do this with DASH, but I assume since the code is already in GiP to download the audio and video tracks into separate files already, an option could be created to download just the audio track for the DASH and HLS protocols?

dinkypumpkin commented 7 years ago

Post feature requests at: https://squarepenguin.co.uk/forums/forum-7.html