Wednesday, April 24, 2013

Setting file name pattern in recorder

In the latest master it's possible to set strftime-compliant pattern when specifying record_suffix value.


recorder rec1 {
record all;
record_interval 5s;
record_suffix -%d-%b-%y-%T.flv;
record_path /tmp/rec;
}


This config will produce files of the form mystream-24-Apr-13-18:23:38.flv. Full list of supported strftime format options you can find on strftime man page.

No comments:

Post a Comment