nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

how to Recording streams in multiple FLVs? i don't know how to do?

Open strugglingyouth opened this issue 11 years ago • 2 comments

application myapp { live on;
record all; record_path /usr/html/videos; exec_record_done ffmpeg -y -i $path -acodec libmp3lame -ar 44100 -ac 1 -vcodec libx264 $dirname/$basename.avi; }
and application myapp1 { live on;

            exec ffmpeg -i rtmp://192.168.0.104/myapp/test1  -c copy demo.flv;

}

they are useless! who know how to do?

strugglingyouth avatar Nov 29 '15 14:11 strugglingyouth

If you need to write result into multiple files simultaneously, you can use the ffmpeg capabilities to write into multiple files.

On the other way, if you want to limit files duration you can proxy your input stream to hls section via push directive, but this way it will create files in MPEG-TS format.

The other solution is to use ffmpeg's stream_segment muxer. You can control the output format and duration.

Cherrionella avatar Nov 29 '15 20:11 Cherrionella

Recording streams in FLVs,this is right configuration application myapp { live on; record_path /usr/html/recoder;
record all; record_notify on;
record_suffix .flv;
record_unique on; } Research for a long time ,it's my want result。

strugglingyouth avatar Nov 30 '15 13:11 strugglingyouth