Showing posts with label Aside. Show all posts
Showing posts with label Aside. Show all posts

Wednesday, September 12, 2012

Multiple recorders in nginx-rtmp

One of recent updates brought multiple recorder support to nginx-rtmp. Before that only one recorder could be created with record directive.

Now recorder{} block is supported within application{}.


application myapp {
live on;

#default recorder
record all;
record_path /var/rec;
record_unique on;

recorder audio_only {
record audio;
record_path /var/rec/audio;
}

recorder video_only {
record video;
record_max_size 256K;
}

recorder foo {
record all;
record_interval 10s;
}
}


All settings are inherited by recorders from higher level.

Project page at github