我可以使用该命令从静态MPEG4创建HLS:
ffmpeg -i video.mp4 -codec copy -map 0 -f segment -segment_list out.list -segment_time 10 out%03d.ts
我现在正努力实现这一目标:
实时RTMP(FME)-------> FFMEG --------------> HLS
我尝试过:
ffmpeg -i rtmp://127.0.0.1:1935/live/video -codec copy -map 0 -f segment -segment_list out.list -segment_time 10 out%03d.ts
但得到了错误:
关闭连接:NetStream.Play.StreamNotFound rtmp://127.0.0.1:1935 / live / video:发生未知错误
任何想法如何实现:
RTMP ----> FMPEG -----> HLS?
我也尝试过:
ffmpeg -i "rtmp://localhost:1935/live/yarek live=1" -codec copy -map 0 -f segment -segment_list out.list -segment_time 10 out%03d.ts
似乎更好但卡住了:
ble-zlib
libavutil 52. 0.100 / 52. 0.100 libavcodec 54. 69.100 / 54. 69.100 libavformat 54. 35.100 / 54. 35.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 20.106 / 3. 20.106 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 16.100 / 0. 16.100 libpostproc 52. 1.100 / 52. 1.100 rtmp服务器发送错误 元数据: videokeyframe_frequency8.00 avclevel 31.00 视频设备Microsoft LifeCam Cinema 关键字 宽度320.00 视频数据350.00 presetname自定义 版权 创造日期2012年10月29日星期一17:51:08 videocodecid avc1 作者 avcprofile 66.00 标题 身高240.00 描述 评分 帧率20.00
由于
答案 0 :(得分:0)
ffmpeg -re -i rtmp://127.0.0.1/live/video -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://127.0.0.1/livepkgr/video