Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行srt encoder的问题 #1

Open
Alexyali opened this issue Jun 10, 2020 · 2 comments
Open

运行srt encoder的问题 #1

Alexyali opened this issue Jun 10, 2020 · 2 comments

Comments

@Alexyali
Copy link

老师您好,我按照流程安装了ffmpeg和srt,但是最后运行的时候报错:
[srt @ 0x55805d7c95c0] Connection setup failure: connection time out
srt://127.0.0.1:10080?streamid=#!::h=live/livestream,m=publish: Unknown error occurred
而且把srt改为udp就可以运行了,这是什么情况呢?
另外在3.2 srt encoder中提到srt in srs。这个的意思是需要先运行srs吗,然后在srs上运行srt吗?这个和跑之前提到的代码有什么关系呢?
非常感谢!

@Alexyali
Copy link
Author

有大佬可以回答无法运行command的问题吗,报错:Protocol not found。但是确实安装了srt

@Alexyali
Copy link
Author

Alexyali commented Jun 23, 2020

我把configure和运行指令修改了,然后可以运行,但是不知道这样是否实现了SRT自适应编码?
./configure --disable-devices --enable-libx264 --enable-libx265 --enable-libsrt --disable-asm --enable-gpl --enable-shared
发送端指令:
ffmpeg -re -i source.mp4 -c:v libx264 -s 640x360 -b:v 700k -f mpegts 'srt://127.0.0.1:10080?mode=caller'
接收端指令:
ffplay -i ‘srt://127.0.0.1:10080?mode=listener’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant