[FFmpeg-user] Current time for name of file out, is it possible ?
francois.visagie at gmail.com
Fri Sep 13 08:08:59 CEST 2013
> -----Original Message-----
> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-
> bounces at ffmpeg.org] On Behalf Of Stanislas DEFAWES
> Sent: 12 September 2013 17:09
> To: FFmpeg user questions
> Subject: [FFmpeg-user] Current time for name of file out, is it possible ?
> Is it possible to give current time for name of the file out when using
> segment ?
> for exemple :
> ffmpeg -i udp://126.96.36.199:1234 -acodec copy -vcodec copy -map 0 -f
> segment -segment_time 3600 -segment_format mpegts
You don't say on which operating system you're working, but I guess that
looks like a Windows command line. In that case you can use the %TIME%
environment variable. However, you'll have to remove the colon delimiter ':'
using perhaps the for command (do for /? to see syntax), or perhaps the set
command's environment variable substitution, e.g. %PATH:str1=str2%.
More information about the ffmpeg-user