我试图在FFMPEG上播放MPEG-1视频
ffmpeg -i "out.ts" -f flv -listen 1 -i rtmp://localhost:8889/live/app -c copy -f flv -listen 1 rtmp://localhost:1935/live/appout.ts文件是用MPEG-1编码的视频。
ffmpeg -i out.avi -f mpegts -codec:v mpeg1video -b:v 1500k -r 30 -bf 0 -codec:a mp2 -b 0 -q 5 -t 1 out.ts当我尝试用VLC打开流时:rtmp://localhost:1935/live/app媒体没有播放。在FFMPEG上播放MPEG-1视频的命令是什么?
发布于 2020-04-13 23:49:52
使用ffmpeg播放MPEG-1视频:
ffmpeg -re -y -i out.ts -an -f rtp_mpegts rtp://127.0.0.1:1234贷记:https://ffmpeg.org/pipermail/ffmpeg-user/2015-October/028879.html
(虽然源视频是720 p,VLC中的流看起来像360 p,没有音频流,但是任何想法都会受到欢迎)
发布于 2020-04-13 23:01:21
RTMP不支持mpeg1视频或mpeg2音频。如果在fly规范中支持VIDEODATA头部下的代码,您可以看到完整的列表。
https://stackoverflow.com/questions/61195509
复制相似问题