[FFmpeg-user] select filter not working: frame exact editing isn't working

James Board jpboard2 at yahoo.com
Mon Sep 2 19:28:49 CEST 2013


My input file is ffvhuff compressed.  I'm trying to do frame exact editing
on this file.  Here's a sample command

    ffmpeg -i IN_filmdint_ffvhuff.avi -vf select='-between(n\, 1631\,2027)
        -between(n\, 2318\, 2467)-between(n\, 2564\,2862)',setpts=N/FRAME_RATE/TB
       -c:v rawvideo OUT_filmdint_ffvhuff_trim.avi


It isn't working correctly.  The edits are off by several frames and this gets worse for
bigger files with more edit segments.  The output from ffmpeg looks fairly normal
to me, but here it is:

ffmpeg version N-54733-gab5f581 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug  5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --enable-libfreetype --enable-gpl --enable-libx264
  libavutil      52. 39.100 / 52. 39.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 80.101 /  3. 80.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[avi @ 0x1b36880] non-interleaved AVI
Input #0, avi, from 'IN_filmdint_ffvhuff.avi':
  Metadata:
    encoder         : MEncoder VERSION
  Duration: 00:29:35.77, start: 0.000000, bitrate: 280660 kb/s
    Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv420p, 1920x1080, 23.98 tbr, 23.98 tbn, 23.98 tbc
Output #0, avi, to 'OUT.avi':
  Metadata:
    ISFT            : Lavf55.12.102
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, q=2-31, 200 kb/s, 23.98 tbn, 23.98 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (ffvhuff -> rawvideo)
Press [q] to stop, [?] for help


Is there anything I'm doing that is wrong, or is this an ffmpeg bug?


More information about the ffmpeg-user mailing list