How to use Media Segmenter for split video?

前端 未结 2 663
眼角桃花
眼角桃花 2021-01-06 18:41

I have read many documents still very confused about HTTP Live Streaming.
But i am still trying for solution.. and i have convert my video in .ts

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 19:24

    If you use FFMpeg, it's very easy to split files with it. Don't use Media Segmenter. Simply write something like this:

    ffmpeg.exe -i YourFile.mp4 -ss 00:10:00 -t 00:05:00 OutFile.mp4
    

    where -ss 00:10:00 is time offset , -t 00:05:00 is duration of OutFile.mp4. This will create OutFile.mp4 which contains 5 minute video(-t 00:05:00) of YourFile.mp4
    (from 00:10:00 to 00:15:00 of YourFile.mp4).
    Useful ?)

    And also you can create .ASX playlist which is able to cast streams and is very simple.

提交回复
热议问题