我想录制视频会议。我可以从视频会议服务器接收rtp媒体。我想输出零碎的mp4文件格式用于直播。那么,如何使用Bento4以编程方式编写一个零碎的mp4文件呢?
发布于 2017-12-18 18:41:44
MP4Box支持DASH。下面是一个简单的例子:
MP4Box -dash 4000 -frag 4000 -rap -段名称test_ input.mp4
'-dash 4000' to segment the input mp4 file into 4000ms chunks
'-frag 4000' since frag = dash, actually segments are not fragmented further.
'-rap' to enforce each segment to start random access points, i.e. at keyframes. In such case the segment duration may differ from 4000ms depending on distribution of key frames.
'-segment-name' to specify the pattern of segments names. So in this case, the segments will be named like this: test_1.m4s, test_2.m4s, ...https://stackoverflow.com/questions/47344765
复制相似问题