Download TS files from video stream

前端 未结 14 1580
遥遥无期
遥遥无期 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:13

    I came up with an efficient parralelized one-line that concatenate a sequence of .ts files into one .mp4 file using GNU Parallel:

     parallel -k curl https://example.com/video/seg-{}-f4-v1-a1.ts ::: {1..279} >> result.mp4
    

    The key is to replace the variant part of your url with {} and to set {a..b} with the lower and upper bound. That's it!

提交回复
热议问题