[FFmpeg-user] Timecode based filenames

Colin Bitterfield colin at bitterfield.com
Tue Apr 28 18:51:14 EEST 2020


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


The gtimeout doesn’t seem to work; but that is a different issue.

Platform OSX 10.14.x

FFMPEG:

ffmpeg version 4.2.git Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac
  libavutil      56. 35.100 / 56. 35.100
  libavcodec     58. 59.101 / 58. 59.101
  libavformat    58. 33.100 / 58. 33.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 61.100 /  7. 61.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100





More information about the ffmpeg-user mailing list