Save RTMP to file
Opened this issue · 1 comments
ozabalaferrera commented
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 commented
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.