Download TS files from video stream

前端 未结 14 1575
遥遥无期
遥遥无期 2020-12-22 17:55

Videos on most sites make use of progressive downloading, which means that the video is downloaded to my computer, and easy to trace. There are lots of extensions out there

14条回答
  •  一整个雨季
    2020-12-22 18:36

    I needed to download HLS video and audio streams from a e-learning portal with session-protected content with application/mp2t MIME content type.

    Manually copying all authentication headers into the downloading scripts would be too cumbersome.

    But the task got much easier with help of Video DownloadHelper Firefox extension and it's Companion App. It allowed to download both m3u8 playlists with TS chunks lists and actual video and audio streams into mp4 files via a click of button while correctly preserving authentication headers.

    The resulting separate video and audio files can be merged with ffmpeg:

    ffmpeg -i video.mp4 -i audio.mp4 -acodec copy -vcodec copy video-and-audio.mp4 
    

    or with mp4box:

    mp4box -add audio.mp4#audio video.mp4 -out video-and-audio.mp4
    

    Tried Video DownloadHelper Chrome extension too, but it didn't work for me.

提交回复
热议问题