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

使用ffmpeg对MP4文件推流,播放到一定时间后会停止,中断比较长时间才能重新播放 #78

Open
ylhope opened this issue Nov 22, 2021 · 1 comment

Comments

@ylhope
Copy link

ylhope commented Nov 22, 2021

使用直播的rtsp流就可以一直播放不会出现这种情况。请问如果我只用MP4的话改什么配置可以缩短这个时长呢?有点奇怪的是我重新推流,所需的时间都比这个中断的时间短。所以对此原理也有所不解。望解惑,谢谢大神!

对了,我是使用 exec_static 来执行推流命令,所以在服务启动后会反复不停的推流。

@lystormenvoy
Copy link

ffmpeg.exe -re -ss 0 -stream_loop -1 -i "I:\效果.mp4" -vcodec h264 -acodec aac -f flv "rtmp://xxxxxxxx"

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

2 participants