[FFmpeg-user] extract video based on timecode track/channel

Laura Trutoiu auract at gmail.com
Wed Feb 27 20:12:24 CET 2013


I am trying to create extract subclips from a larger video using timecodes.

However, instead of the regular timecode track (which always starts at
00:00:00), I want to use the timecode track that comes with the video.


The regular command (below) uses the good old fashioned timecode relative
to 0.

Does anyone have any suggestions?

Thanks

~~~~~~~~~~~~~~~~~~~~~~~
ffmpeg -ss 00:00:02 -t 00:00:05 -i separate_timecode_track.mov out.mov

~~~~~~~~~~~~~~~~~~~~~~~
FFprobe version SVN-r26402, Copyright (c) 2007-2011 the FFmpeg developers
  built on Jan  4 2013 18:54:31 with gcc 4.2.1 (Apple Inc. build 5666) (dot
3)
  configuration: --enable-libmp3lame --enable-shared --disable-mmx
--arch=x86_64
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101012e00] max_analyze_duration reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'separate_timecode_track.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2013-02-27 16:02:35
  Duration: 00:00:13.61, start: 0.000000, bitrate: 2945 kb/s
    Stream #0.0(eng): Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
    Metadata:
      creation_time   : 2013-02-27 16:02:35
    Stream #0.1(eng): Video: h264, yuv420p, 944x532, 1529 kb/s, 30 fps,
29.97 tbr, 600 tbn, 1200 tbc
    Metadata:
      creation_time   : 2013-02-27 16:02:35
    Stream #0.2(eng): Data: tmcd / 0x64636D74, 0 kb/s
    Metadata:
      creation_time   : 2013-02-27 16:02:35
Unsupported codec (id=0) for input stream 2


-- 
Laura Trutoiu
www.cs.cmu.edu/~ltrutoiu
Robotics Institute - Carnegie Mellon University
5000 Forbes Avenue
Pittsburgh, PA


More information about the ffmpeg-user mailing list