xiu icon indicating copy to clipboard operation
xiu copied to clipboard

Save RTMP to file

Open ozabalaferrera opened this issue 1 year ago • 1 comments

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

ozabalaferrera avatar Nov 16 '24 04:11 ozabalaferrera

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.

harlanc avatar Nov 16 '24 22:11 harlanc