- 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.
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHello Roman-
ReplyDeleteIt 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.
I want to download the live stream. How can I do that? My Streaming url is like rtmp://broadcast-staging.ravelap.com/ravelApp/6c244af2b4e0941931486308477906da?e=1551607980&st=ReH__iFRcCPg3mAwL66k2g
ReplyDeleteSir can you please explain the procedure of making m3u8 links for PTV Sports
ReplyDeleteThis comment has been removed by the author.
ReplyDelete