[FFmpeg-user] Timestamp output filename?
Maxim Kozlov
rogat1y at gmail.com
Fri Mar 7 10:56:32 CET 2014
2014-03-07 9:53 GMT+04:00 DopeLabs <dopelabs at dubstep.fm>:
> using the following to record a live stream:
>
> ffmpeg -i rtmp://domain.com/url/to/stream -shortest -c:v copy -c:a copy
> -f mp4 /home/user/directory/archive.mp4
>
> but trying to find a way to add a timestamp to the output filename... the
> time being 'now', or the time when the command was executed.
>
> any ideas?
>
> cheers =]
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
Hi.
*ffmpeg -i rtmp://domain.com/url/to/stream
<http://domain.com/url/to/stream> -shortest -c:v copy -c:a copy -f mp4
/home/user/directory/archive_`date +%s`.mp4*
and read *man date*
More information about the ffmpeg-user
mailing list