dash分片
老师你了解mpeg-dash吗?怎么将一个视频,定时长稳定分段,
老师你了解mpeg-dash吗?怎么将一个视频,定时长稳定分段,
2017-09-20
let me show you the answer.(just a example)
step1
$ ffmpeg -i ./input.mp4 \
-vcodec libx264 \
-vb 500k \
-r 30 \
-x264opts no-scenecut \
-g 15 \
-acodec aac \
-ac 2 \
-ab 128k \
-frag_duration 5000000 \
-movflags frag_keyframe+empty_moov \
./encoded.mp4
step2
$ MP4Box -frag 4000 \
-dash 4000 \
-rap \
-segment-name sample \
-out ./output.mp4 \
./encoded.mp4
举报