gcc -Wall -g m3u8-segmenter.c -o m3u8-segmenter -I/home/VodSvr/third/m3u8-segmenter/ffmpeg/include -L/home/VodSvr/third/m3u8-segmenter/ffmpeg/lib -lavformat -lavutil -lm -lavcodec
ffmpeg也可以切m3u8分片,我用ffmpeg-2.6.3,编译选项打开了--enable-muxer=hls --enable-demuxer=hls
./ffmpeg -i ipc720p.mp4 -vcodec copy -acodec copy -bsf:v h264_mp4toannexb -f hls test.m3u8
http://101.201.72.106:10080/hls/test.m3u8
ffmpeg也可以切m3u8分片,我用ffmpeg-2.6.3,编译选项打开了--enable-muxer=hls --enable-demuxer=hls
./ffmpeg -i ipc720p.mp4 -vcodec copy -acodec copy -bsf:v h264_mp4toannexb -f hls test.m3u8
http://101.201.72.106:10080/hls/test.m3u8