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

Save RTMP to file #157

Open
ozabalaferrera opened this issue Nov 16, 2024 · 1 comment
Open

Save RTMP to file #157

ozabalaferrera opened this issue Nov 16, 2024 · 1 comment

Comments

@ozabalaferrera
Copy link

Hi,
Is it possible to use the rtmp crate (or other underlying crates here) to save/write the stream to a file for some amount of time? I'm not seeing any way to do so.
With ffmpeg I could achieve this with:

ffmpeg -re -t 20 -i rtmp://foo.com:554/bar/blah filename.mp4
@harlanc
Copy link
Owner

harlanc commented Nov 16, 2024

Maybe you can save the RTMP streams as FLV format files and you can refer to this repository: https://github.com/ningnao/xiu/tree/flv_record.

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