如何使用Bento4以编程方式输出碎片化的mp4文件

问题描述 投票:1回答:1

我想录制视频会议。我可以从视频会议服务器接收rtp媒体。我想输出碎片化的mp4文件格式用于直播。那么,如何使用Bento4以编程方式编写碎片mp4文件?

mp4 mpeg-dash mpeg-4
1个回答
0
投票

MP4Box支持DASH。我提供以下简单示例:

MP4Box -dash 4000 -frag 4000 -rap -segment-name 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, ...
© www.soinside.com 2019 - 2024. All rights reserved.