how to Recording streams in multiple FLVs? i don't know how to do?
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?
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.
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。