We're trying to parse the fragments of an fMP4 file into separate independent MP4s. Can anyone help point us in the right direction to do this, or is there any open source code that exists that we could leverage?
相关问题
- Countdown to the end of the HTML5 video
- Python function to read video and convert to frame
- Thumbnails from the Vimeo website harder than YouT
- Video Format that Works on Mobile Phones
- How do I display a video with opencv from bytes?
相关文章
- How to create a MediaClip from RenderTargetBitmap
- Safari blocks play() on video despite being called
- Why MPMoviePlayerController fullscreen button icon
- Skip UIImagePickerController Preview View?
- Stop playing video in iframe when modal is closed
- Issues in executing FFmpeg command in Java code in
- YouTube Video in R markdown
- Video not playing on iOS10 Chrome
I think MP4Box might be what you are looking for. It's open source, so you can have a look at the code if you want to know how this can be done. It can also be used as command line tools, e.g. as described in this blog post (skip to the "Segmenting" section):
Use either the
-segment-name
or the-profile
option to generate one file per fragment. The-rap
flag is also important so the content is split in a way that each file starts with a key frame, as this is a requirement for most players. The-dash 4000
specifies the length in milliseconds (i.e. in this example 4 seconds) of the resulting files.