Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
379 views
in Technique[技术] by (71.8m points)

linux - Rtmp streaming not playing on VLC player

In terminal :

ffmpeg -f v4l2 -i /dev/video0 -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -s 1280x720 -r 30 -b:v 1500k -bufsize 1500k -maxrate 7000k -f flv rtmp://192.168.1.6:1935/live/test

I get:

Output #0, flv, to 'rtmp://192.168.1.6:1935/live/test': Metadata: encoder : Lavf58.20.100 Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1280x720, q=-1--1, 1500 kb/s, 30 fps, 1k tbn, 30 tbc Metadata: encoder : Lavc58.35.100 libx264 Side data: cpb: bitrate max/min/avg: 7000000/0/1500000 buffer size: 1500000 vbv_delay: -1 frame= 115 fps=0.1 q=21.0 size= 3088kB time=00:00:17.96 bitrate=1407.9kbits/s speed=0.0141x

When I open VLC player and open network stream in network rtmp://192.168.1.6/live/test, but it does not play it shows no error it just keeps on loading.

Thanks in advance

question from:https://stackoverflow.com/questions/66061158/rtmp-streaming-not-playing-on-vlc-player

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

try this way:

rtmpdump -v -r "rtmp://192.168.1.6:1935/live/test" -o - | "vlc" -

https://rtmpdump.mplayerhq.hu/

https://en.wikipedia.org/wiki/RTMPDump


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...