ffmpeg rtmp流式传输问题 [英] ffmpeg rtmp streaming issue

查看:409
本文介绍了ffmpeg rtmp流式传输问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  ffmpeg -re  - 我想使用ffmpeg到wowza媒体服务器在linux上流式传输我的网络摄像头视频。 f video4linux2 -i / dev / video0 -acodec libfacc -vcodec libx264 -f h264 rtmp:// localhost:1935 / live / test 

这是我使用的命令,因为某些原因似乎不起作用,因为我无法运行wowza附带的示例。我试过使用Flash媒体直播编码器将rtmp发送到我的wowza服务器,它的工作原理。



任何指针,如何解决这个问题。



我使用以下配置从他们的git repo中构建ffmpeg

  --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree  - -enable-postproc --enable-version3 --enable-x11grab 

ffmpeg -protocols表示它有rtmp输入/输出支持

解决方案

使用这些构建选项,我的FFMPEG构建确实接收和解码rtsp流



- 启用网络--enable-protocol = tcp --enable-demuxer = rtsp --enable-decoder = h264



我有在这里回答了类似的问题 FFMPEG API:如何使用av_open_input_file连接到RTSP流?


I am trying to stream my webcam video using the ffmpeg to wowza media server on linux..

ffmpeg -re -f video4linux2 -i /dev/video0 -acodec libfacc -vcodec libx264 -f h264 rtmp://localhost:1935/live/test

This is the command I used for some reason it doesn't seem to work as I am not able to run the example that came with wowza. I tried using flash media live encoder to send a rtmp to my wowza server and it works.

Any pointers on how to solve this problem.

I build ffmpeg from their git repo with the following config

--enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab

ffmpeg -protocols says it has rtmp input/output support

解决方案

With these build options my FFMPEG build does receive and decode rtsp streams

--enable-network --enable-protocol=tcp --enable-demuxer=rtsp --enable-decoder=h264

I have answered a similar question here FFMPEG API: How to connect to RTSP stream using av_open_input_file?

这篇关于ffmpeg rtmp流式传输问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆