How to use Media Segmenter for split video?

前端 未结 2 638
眼角桃花
眼角桃花 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.

    0 讨论(0)
  • 2021-01-06 19:34

    Here: 35703_streamingtools_beta.dmg or go to http://connect.apple.com/ and search for "HTTP Live Streaming", or download from https://developer.apple.com/streaming/. Usage:

    mediafilesegmenter -t 10 myvideo-iphone.ts
    

    This will generate one .ts file for each 10 seconds of the video plus a .m3u8 file pointing to all of them.

    0 讨论(0)
提交回复
热议问题