Sunday, January 12, 2014

New exec_record_done variables

New variables are added to exec_record_done directive to make setting files and directories easier.
  • filename - file name portion of the path, directory omitted
  • dirname - directory path
  • basename - file name with file extension omitted

Assume path is /tmp/rec/mystream-1389499351.flv. Then filename is mystream-1389499351.flv, dirname is /tmp/rec, basename is mystream-1389499351.

Example of recording mp4 with proper file names.
application myapp {
  live on;
  record all;
  record_path /tmp/rec;
  record_unique on;
  record_interval 30s;
  exec_record_done ffmpeg -i $path -c copy /var/videos/$basename.mp4;
Wiki is updated as well.


  1. This comment has been removed by the author.

  2. Hello Roman-

    It is truly amazing work and appreciate it. Is it possible to mix an new audio with Video stream. For example, let us say you are playing ad.mp4. Can I use the audio from title.mp4? This is essentially mixing.

  3. I want to download the live stream. How can I do that? My Streaming url is like rtmp://

  4. For me, buying cheap WOW Classic Gold at is a very enjoyable experience.