[FFmpeg-user] Timecode based filenames

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Apr 28 19:12:35 EEST 2020


Am Di., 28. Apr. 2020 um 17:52 Uhr schrieb Colin Bitterfield
<colin at bitterfield.com>:
>
> Question on Timecode Based Filenames:
>
>
> What is required to generate a filename based on timecode.
>
> i.e. filename-start-time_end-time.mov
>
> The % variables don’t seem to be well defined in the documentation.
>
> I have it working with strtime 1 and using %H%M%S type variables.
>
> Is there a reference for the %variables ?
>
> Regards,
>
> Colin
>
> ps read man ffmpeg-formats (and the documentation pages)
>
>
> Command:
>
> gtimeout 62m   /opt/local/bin/ffmpeg -hwaccel videotoolbox -benchmark_all -hide_banner -stats -loglevel error -c dvvideo -pix_fmt 0rgb -capture_raw_data true -f avfoundation -i "ZR25 MC"  -c: copy -f dv pipe: | /opt/local/bin/ffmpeg -i pipe: -hide_banner -c:v dvvideo -c:a:0 pcm_s16le   -strftime 1 -copyts -timecode "00:00:00;00" -increment_tc 1 -reset_timestamps 0 -segment_time 00:05:00  -f segment  “video_%H-%M-%S_production_original.mov" -y

Complete, uncut console output missing, remove hide_banner when asking
for help here
and please use a testcase without the pipe.

I don't know if the C library on macos supports strftime, it works on
Windows, but not mingw.

Carl Eugen


More information about the ffmpeg-user mailing list