Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

help #10

Open
pan2di opened this issue Nov 1, 2018 · 6 comments
Open

help #10

pan2di opened this issue Nov 1, 2018 · 6 comments

Comments

@pan2di
Copy link

pan2di commented Nov 1, 2018

tests:frame= 8815 fps= 20 q=28.0 size= 145049kB time=00:07:13.68 bitrate=2739.9kbits/s dup=0 drop=5 speed=0.992x
tests发生网络异常丢包,消息体:[rtsp @ 00000211e1eaa4c0] max delay reached. need to consume packet
tests发生网络异常丢包,消息体:[rtsp @ 00000211e1eaa4c0] RTP: missed 12 packets

可以推流,但是总是丢包,请问如何解决?

@hbyexplore
Copy link

同上.我也是这样的问题 楼主解决了吗?

@eguid
Copy link
Owner

eguid commented Nov 1, 2018

rtsp使用tcp方式可以有效避免丢包。例如加上这个命令 rtsp_transport tcp

@pan2di
Copy link
Author

pan2di commented Nov 1, 2018

我在网上也看到过有人这样说,不过并没有找到在那里加这个命令

@eguid
Copy link
Owner

eguid commented Nov 1, 2018

可以参考这个完整的rtsp转流命令:ffmpeg -i rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov -rtsp_transport tcp -vcodec copy -acodec copy -f flv -y rtmp://eguid.cc/rtmp/test

@pan2di
Copy link
Author

pan2di commented Nov 1, 2018

谢谢 ,还是告诉应该在这个项目的那个文件,还是那个类中 加这个命令

@eguid
Copy link
Owner

eguid commented Nov 1, 2018

//执行原生ffmpeg命令(不包含ffmpeg的执行路径,该路径会从配置文件中自动读取)
manager.start("test1", "ffmpeg -i rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov -rtsp_transport tcp -vcodec copy -acodec copy -f flv -y rtmp://eguid.cc/rtmp/test");
//包含完整ffmpeg执行路径的命令
manager.start("test2,","d:/ffmpeg/ffmpeg -i rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov -rtsp_transport tcp -vcodec copy -acodec copy -f flv -y rtmp://eguid.cc/rtmp/test",true);

@eguid eguid closed this as completed Nov 1, 2018
@eguid eguid reopened this Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants