[FFmpeg-user] frame accurate seek / trim in point based on timecode?

James Heliker james.heliker at gmail.com
Tue Jun 30 03:54:17 CEST 2015


Hi All -

I've been Googling around for the last few hours, and I can't seem to 
find a definitive answer.

I need to be able to reliably set my in point for ProRes .mov files, at 
exactly 01:00:00;00.

Luckily, the sources seem to consistently begin at 00:57:30;00, as such 
so far the below works, however, I would feel much better about 
something actually using the timecode as a reference. Is this possible 
with FFmpeg?

ffmpeg -i sample.mov -ss 00:02:30.000 -pix_fmt yuv422p -vcodec 
mpeg2video -non_linear_quant 1 -flags +ildct+ilme -top 1 -dc 10 
-intra_vlc 1 -qmax 3 -lmin "1*QP2LAMBDA" -vtag xd5c -rc_max_vbv_use 1 
-rc_min_vbv_use 1 -g 12 -b:v 50000k -minrate 50000k -maxrate 50000k 
-bufsize 8000k -acodec pcm_s16le -ar 48000 -bf 2 -ac 2 sample.mxf

ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
   built on Dec 30 2014 17:13:24 with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc 
--enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp 
--enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora 
--enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-libvorbis
  --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-
libx265 --enable-libxavs --enable-libxvid --enable-lzma 
--enable-decklink --enab
le-zlib

(truncated CLI output as it isn't really relevant here)

Thanks!

-- 
Kind Regards,

  - James Heliker



More information about the ffmpeg-user mailing list