2

我可以使用该命令从静态 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 server sent error Metadata: videokeyframe_frequency8.00 avclevel 31.00 videodevice Microsoft LifeCam Cinema 关键字 width 320.00 videodatarate 350.00 presetname 自定义版权创建日期 Mon Oct 29 17:51:08 2012 author videocodecid avc1 avcprofile 66.00 标题高度 240.00 描述等级 帧率 20.00

谢谢

4

1 回答 1

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
于 2016-06-21T13:17:53.507 回答