我想使用Ffmpeg将视频流从HLS推入RTMP。起初是正常的,但是当我打开更多文件时,它就可以正常运行,但是没有视频数据推入
环境:Windows64 + Nginx-rtmp-static + Ffmpeg-static + Java1.8
即使我重新启动rtmp-server也没用。
ffmpeg -i xxx/live.m3u8 -vcodec h264-s 720*480 -an -f flv -y rtmp://xxx
前几个视频流正常,但是当我打开更多流(5个以上)时, 它可以正常运行,但是没有数据拉入。
2019-01-08 10:58:15.658 INFO ->frame=0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=720 speed= 0x
2019-01-08 10:58:16.598 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:16.984 INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik30.ts' for reading
2019-01-08 10:58:17.083 INFO ->frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=744 speed= 0x
2019-01-08 10:58:18.033 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:18.146 INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik31.ts' for reading
2019-01-08 10:58:18.267 INFO ->frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=770 speed= 0x
2019-01-08 10:58:19.220 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:19.317 INFO ->[http @ 0000015efb1200c0] Opening 'xxx/1/seghik32.ts' for reading
2019-01-08 10:58:19.415 INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik33.ts' for reading
2019-01-08 10:58:19.494 INFO ->frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=795 speed= 0x
2019-01-08 10:58:20.375 INFO ->[http @ 0000015efc568280] Opening 'xxx/1/live.m3u8' for reading
2019-01-08 10:58:20.486 INFO ->[http @ 0000015efb138600] Opening 'xxx/1/seghik34.ts' for reading
答案 0 :(得分:0)
今天,我尝试重写命令“ vcodec copy”,它可以正常运行,但同时“-s”无效