[FFmpeg-trac] #7242(avfilter:closed): zoompan filter variables 'in' and 'on' start at 2, 1 instead of at 0

FFmpeg trac at avcodec.org
Tue Oct 30 05:42:26 EET 2018


#7242: zoompan filter variables 'in' and 'on' start at 2, 1 instead of at 0
------------------------------------+------------------------------------
             Reporter:  jdlh        |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:  fixed
             Keywords:  zoompan     |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by jdlh):

 Tested this fix with the same invocation as before, but this time on
 commit b737317a8813e671c00b8ac7023c47e48ffeb1c8 of the master branch.

 {{{
 ./ffmpeg -report -v +repeat -to 0.3 -i fate-suite/h264/interlaced_crop.mp4
 -an \
 -vf
 "crop=x=print(1234000+n)*0,zoompan=d=1:s=qhd:zoom=print(2718000+in)*0+print(3142000+on)*0+1"
 \
 -f mp4 -y /dev/null
 ...[omitted here for brevity] ...
 1234000.000000
 1234000.000000
 2718000.000000
 3142000.000000
 ...[omitted here for brevity] ...
 }}}

 Note that the values for '''n''', '''in''', and '''on''', shown in the
 last three digits before the decimal point, are equal now, and start from
 0. They differed before.

 It would be good to also change the documentation to clarify these values.
 The documentation now reads:

  in::
     Input frame count.

  on::
  Output frame count.

 I believe the documentation should change to read, using the language
 cited by Gyan from '''crop''':

  in::
  Input frame number (index), starting from 0.

  on::
  Output frame number (index), starting from 0.

 I may submit this patch, if no-one beats me to it.

 The full report from the above invocation is:
 {{{
 ffmpeg started on 2018-10-29 at 20:15:58
 Report written to "ffmpeg-20181029-201558.log"
 Command line:
 ./ffmpeg -report -v +repeat -to 0.3 -i fate-suite/h264/interlaced_crop.mp4
 -an -vf
 "crop=x=print(1234000+n)*0,zoompan=d=1:s=qhd:zoom=print(2718000+in)*0+print(3142000+on)*0+1"
 -f mp4 -y /dev/null
 ffmpeg version N-92232-gb737317a88 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
   configuration: --samples=fate-suite/ --enable-libfreetype --enable-
 libfontconfig --enable-libfribidi
   libavutil      56. 19.101 / 56. 19.101
   libavcodec     58. 33.102 / 58. 33.102
   libavformat    58. 19.101 / 58. 19.101
   libavdevice    58.  4.105 / 58.  4.105
   libavfilter     7. 36.100 /  7. 36.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
 Splitting the commandline.
 Reading option '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '+repeat'.
 Reading option '-to' ... matched as option 'to' (record or transcode stop
 time) with argument '0.3'.
 Reading option '-i' ... matched as input url with argument 'fate-
 suite/h264/interlaced_crop.mp4'.
 Reading option '-an' ... matched as option 'an' (disable audio) with
 argument '1'.
 Reading option '-vf' ... matched as option 'vf' (set video filters) with
 argument
 'crop=x=print(1234000+n)*0,zoompan=d=1:s=qhd:zoom=print(2718000+in)*0+print(3142000+on)*0+1'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'mp4'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '/dev/null' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option report (generate a report) with argument 1.
 Applying option v (set logging level) with argument +repeat.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input url fate-suite/h264/interlaced_crop.mp4.
 Applying option to (record or transcode stop time) with argument 0.3.
 Successfully parsed a group of options.
 Opening an input file: fate-suite/h264/interlaced_crop.mp4.
 [NULL @ 0x7fb80a000000] Opening 'fate-suite/h264/interlaced_crop.mp4' for
 reading
 [file @ 0x7fb808c005c0] Setting default whitelist 'file,crypto'
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] Format mov,mp4,m4a,3gp,3g2,mj2
 probed with size=2048 and score=100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] ISO: File Type Major Brand:
 avc1
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] Unknown dref type 0x206c7275
 size 12
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] Processing st: 0, edit list 0 -
 media time: 2, duration: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 0 ctts: 2, ctts_index: 0,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 1 ctts: 5, ctts_index: 1,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 2 ctts: 2, ctts_index: 2,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 3 ctts: 0, ctts_index: 3,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 4 ctts: 1, ctts_index: 4,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 5 ctts: 5, ctts_index: 5,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 6 ctts: 2, ctts_index: 6,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 7 ctts: 0, ctts_index: 7,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 8 ctts: 1, ctts_index: 8,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 9 ctts: 5, ctts_index: 9,
 ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 10 ctts: 2, ctts_index:
 10, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 11 ctts: 0, ctts_index:
 11, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 12 ctts: 1, ctts_index:
 12, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 13 ctts: 5, ctts_index:
 13, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 14 ctts: 2, ctts_index:
 14, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 15 ctts: 0, ctts_index:
 15, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 16 ctts: 1, ctts_index:
 16, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 17 ctts: 5, ctts_index:
 17, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 18 ctts: 2, ctts_index:
 18, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 19 ctts: 0, ctts_index:
 19, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 20 ctts: 1, ctts_index:
 20, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 21 ctts: 5, ctts_index:
 21, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 22 ctts: 2, ctts_index:
 22, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 23 ctts: 0, ctts_index:
 23, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 24 ctts: 1, ctts_index:
 24, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 25 ctts: 5, ctts_index:
 25, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 26 ctts: 2, ctts_index:
 26, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 27 ctts: 0, ctts_index:
 27, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 28 ctts: 1, ctts_index:
 28, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 29 ctts: 5, ctts_index:
 29, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 30 ctts: 2, ctts_index:
 30, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 31 ctts: 0, ctts_index:
 31, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 32 ctts: 1, ctts_index:
 32, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 33 ctts: 5, ctts_index:
 33, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 34 ctts: 2, ctts_index:
 34, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 35 ctts: 0, ctts_index:
 35, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 36 ctts: 1, ctts_index:
 36, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 37 ctts: 5, ctts_index:
 37, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 38 ctts: 2, ctts_index:
 38, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 39 ctts: 0, ctts_index:
 39, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 40 ctts: 1, ctts_index:
 40, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 41 ctts: 5, ctts_index:
 41, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 42 ctts: 2, ctts_index:
 42, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 43 ctts: 0, ctts_index:
 43, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 44 ctts: 1, ctts_index:
 44, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 45 ctts: 5, ctts_index:
 45, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 46 ctts: 2, ctts_index:
 46, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 47 ctts: 0, ctts_index:
 47, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 48 ctts: 1, ctts_index:
 48, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 49 ctts: 5, ctts_index:
 49, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 50 ctts: 2, ctts_index:
 50, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 51 ctts: 0, ctts_index:
 51, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 52 ctts: 1, ctts_index:
 52, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 53 ctts: 5, ctts_index:
 53, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 54 ctts: 2, ctts_index:
 54, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 55 ctts: 0, ctts_index:
 55, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 56 ctts: 1, ctts_index:
 56, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 57 ctts: 5, ctts_index:
 57, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 58 ctts: 2, ctts_index:
 58, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 59 ctts: 0, ctts_index:
 59, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 60 ctts: 1, ctts_index:
 60, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 61 ctts: 5, ctts_index:
 61, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 62 ctts: 2, ctts_index:
 62, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 63 ctts: 0, ctts_index:
 63, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 64 ctts: 1, ctts_index:
 64, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 65 ctts: 5, ctts_index:
 65, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 66 ctts: 2, ctts_index:
 66, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 67 ctts: 0, ctts_index:
 67, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 68 ctts: 1, ctts_index:
 68, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 69 ctts: 5, ctts_index:
 69, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 70 ctts: 2, ctts_index:
 70, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 71 ctts: 0, ctts_index:
 71, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 72 ctts: 1, ctts_index:
 72, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 73 ctts: 5, ctts_index:
 73, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 74 ctts: 2, ctts_index:
 74, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 75 ctts: 0, ctts_index:
 75, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 76 ctts: 1, ctts_index:
 76, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 77 ctts: 5, ctts_index:
 77, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 78 ctts: 2, ctts_index:
 78, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 79 ctts: 0, ctts_index:
 79, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 80 ctts: 1, ctts_index:
 80, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 81 ctts: 5, ctts_index:
 81, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 82 ctts: 2, ctts_index:
 82, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 83 ctts: 0, ctts_index:
 83, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 84 ctts: 1, ctts_index:
 84, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 85 ctts: 5, ctts_index:
 85, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 86 ctts: 2, ctts_index:
 86, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 87 ctts: 0, ctts_index:
 87, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 88 ctts: 1, ctts_index:
 88, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 89 ctts: 5, ctts_index:
 89, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 90 ctts: 2, ctts_index:
 90, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 91 ctts: 0, ctts_index:
 91, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 92 ctts: 1, ctts_index:
 92, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 93 ctts: 5, ctts_index:
 93, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 94 ctts: 2, ctts_index:
 94, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 95 ctts: 0, ctts_index:
 95, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 96 ctts: 1, ctts_index:
 96, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 97 ctts: 5, ctts_index:
 97, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 98 ctts: 2, ctts_index:
 98, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 99 ctts: 0, ctts_index:
 99, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 100 ctts: 1, ctts_index:
 100, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 101 ctts: 5, ctts_index:
 101, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 102 ctts: 2, ctts_index:
 102, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 103 ctts: 0, ctts_index:
 103, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 104 ctts: 1, ctts_index:
 104, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 105 ctts: 5, ctts_index:
 105, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 106 ctts: 2, ctts_index:
 106, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 107 ctts: 0, ctts_index:
 107, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 108 ctts: 1, ctts_index:
 108, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 109 ctts: 5, ctts_index:
 109, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 110 ctts: 2, ctts_index:
 110, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 111 ctts: 0, ctts_index:
 111, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 112 ctts: 1, ctts_index:
 112, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 113 ctts: 5, ctts_index:
 113, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 114 ctts: 2, ctts_index:
 114, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 115 ctts: 0, ctts_index:
 115, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 116 ctts: 1, ctts_index:
 116, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 117 ctts: 5, ctts_index:
 117, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 118 ctts: 2, ctts_index:
 118, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 119 ctts: 0, ctts_index:
 119, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 120 ctts: 1, ctts_index:
 120, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 121 ctts: 2, ctts_index:
 121, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 122 ctts: 2, ctts_index:
 122, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 123 ctts: 3, ctts_index:
 123, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 124 ctts: 1, ctts_index:
 124, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] stts: 125 ctts: 2, ctts_index:
 125, ctts_count: 126
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] Offset DTS by 2 to make first
 pts zero.
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] Setting codecpar->delay to 2
 for stream st: 0
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] Before
 avformat_find_stream_info() pos: 347569 bytes read:35189 seeks:1
 nb_streams:1
 [h264 @ 0x7fb809015600] nal_unit_type: 7(SPS), nal_ref_idc: 3
 [h264 @ 0x7fb809015600] nal_unit_type: 8(PPS), nal_ref_idc: 3
 [h264 @ 0x7fb809015600] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809015600] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809015600] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809015600] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809015600] nal_unit_type: 5(IDR), nal_ref_idc: 3
 [h264 @ 0x7fb809015600] ct_type:0 pic_struct:3
 [h264 @ 0x7fb809015600] Format yuv420p chosen by get_format().
 [h264 @ 0x7fb809015600] Reinit context to 640x384, pix_fmt: yuv420p
 [h264 @ 0x7fb809015600] no picture
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] All info found
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb80a000000] After
 avformat_find_stream_info() pos: 22623 bytes read:67957 seeks:2 frames:1
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
 suite/h264/interlaced_crop.mp4':
   Metadata:
     major_brand     : avc1
     minor_version   : 0
     compatible_brands: isomavc1
     creation_time   : 2010-10-07T15:03:51.000000Z
   Duration: 00:00:05.04, start: 0.000000, bitrate: 551 kb/s
     Stream #0:0(und), 1, 1/25: Video: h264 (Main) (avc1 / 0x31637661),
 yuv420p, 640x360 [SAR 1:1 DAR 16:9], 547 kb/s, 25 fps, 25 tbr, 25 tbn, 50
 tbc (default)
     Metadata:
       creation_time   : 2010-10-07T15:03:51.000000Z
       handler_name    : GPAC ISO Video Handler
 Successfully opened the file.
 Parsing a group of options: output url /dev/null.
 Applying option an (disable audio) with argument 1.
 Applying option vf (set video filters) with argument
 crop=x=print(1234000+n)*0,zoompan=d=1:s=qhd:zoom=print(2718000+in)*0+print(3142000+on)*0+1.
 Applying option f (force format) with argument mp4.
 Successfully parsed a group of options.
 Opening an output file: /dev/null.
 [file @ 0x7fb808c02480] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 detected 8 logical cores
 [h264 @ 0x7fb809012200] nal_unit_type: 7(SPS), nal_ref_idc: 3
 [h264 @ 0x7fb809012200] nal_unit_type: 8(PPS), nal_ref_idc: 3
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb809012200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 5(IDR), nal_ref_idc: 3
 [h264 @ 0x7fb809012200] ct_type:0 pic_struct:3
 [h264 @ 0x7fb809012200] Format yuv420p chosen by get_format().
 [h264 @ 0x7fb809012200] Reinit context to 640x384, pix_fmt: yuv420p
 [h264 @ 0x7fb809012200] no picture
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb809013800] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809013800] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809013800] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb809013800] ct_type:0 pic_struct:3
 [h264 @ 0x7fb809013800] no picture
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb809013e00] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809013e00] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809013e00] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb809013e00] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb809014400] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809014400] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809014400] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 [h264 @ 0x7fb809014400] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb809063000] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809063000] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809063000] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 [h264 @ 0x7fb809063000] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb80906c800] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb80906c800] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb80906c800] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb80906c800] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb80906ce00] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb80906ce00] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb80906ce00] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb80906ce00] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb8090a5e00] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb8090a5e00] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb8090a5e00] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 [h264 @ 0x7fb8090a5e00] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb8090bc200] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb8090bc200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb8090bc200] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 [h264 @ 0x7fb8090bc200] ct_type:0 pic_struct:3
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 [h264 @ 0x7fb809012200] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb809012200] ct_type:0 pic_struct:3
 [h264 @ 0x7fb809013800] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809013800] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809013800] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb809013800] ct_type:0 pic_struct:3
 [Parsed_crop_0 @ 0x7fb808d16ec0] Setting 'x' to value 'print(1234000+n)*0'
 [Parsed_zoompan_1 @ 0x7fb808d173c0] Setting 'd' to value '1'
 [Parsed_zoompan_1 @ 0x7fb808d173c0] Setting 's' to value 'qhd'
 [Parsed_zoompan_1 @ 0x7fb808d173c0] Setting 'zoom' to value
 'print(2718000+in)*0+print(3142000+on)*0+1'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] Setting 'video_size' to
 value '640x360'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] Setting 'pix_fmt' to
 value '0'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] Setting 'time_base' to
 value '1/25'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] Setting 'pixel_aspect' to
 value '1/1'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] Setting 'sws_param' to
 value 'flags=2'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] Setting 'frame_rate' to
 value '25/1'
 [graph 0 input from stream 0:0 @ 0x7fb808c3bd80] w:640 h:360
 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
 [format @ 0x7fb808c3c740] Setting 'pix_fmts' to value 'yuv420p'
 [AVFilterGraph @ 0x7fb808f06040] query_formats: 6 queried, 5 merged, 0
 already done, 0 delayed
 [Parsed_crop_0 @ 0x7fb808d16ec0] w:640 h:360 sar:1/1 -> w:640 h:360
 sar:1/1
 1234000.000000
 1234000.000000
 2718000.000000
 3142000.000000
 [mpeg4 @ 0x7fb80900de00] intra_quant_bias = 0 inter_quant_bias = -64
 Output #0, mp4, to '/dev/null':
   Metadata:
     major_brand     : avc1
     minor_version   : 0
     compatible_brands: isomavc1
     encoder         : Lavf58.19.101
     Stream #0:0(und), 0, 1/12800: Video: mpeg4 (mp4v / 0x7634706D),
 yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn,
 25 tbc (default)
     Metadata:
       creation_time   : 2010-10-07T15:03:51.000000Z
       handler_name    : GPAC ISO Video Handler
       encoder         : Lavc58.33.102 mpeg4
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
 Clipping frame in rate conversion by 0.000008
 1234001.000000
 [h264 @ 0x7fb809013e00] nal_unit_type: 9(AUD), nal_ref_idc: 0
 1234001.000000
 [h264 @ 0x7fb809013e00] nal_unit_type: 6(SEI), nal_ref_idc: 0
 2718001.000000
 [h264 @ 0x7fb809013e00] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 3142001.000000
 [h264 @ 0x7fb809013e00] ct_type:0 pic_struct:3
 1234002.000000
 [h264 @ 0x7fb809014400] nal_unit_type: 9(AUD), nal_ref_idc: 0
 1234002.000000
 [h264 @ 0x7fb809014400] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809014400] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 [h264 @ 0x7fb809014400] ct_type:0 pic_struct:3
 2718002.000000
 3142002.000000
 [h264 @ 0x7fb809063000] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809063000] nal_unit_type: 6(SEI), nal_ref_idc: 0
 1234003.000000
 [h264 @ 0x7fb809063000] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb809063000] ct_type:0 pic_struct:3
 1234003.000000
 2718003.000000
 3142003.000000
 1234004.000000
 [h264 @ 0x7fb80906c800] nal_unit_type: 9(AUD), nal_ref_idc: 0
 1234004.000000
 [h264 @ 0x7fb80906c800] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb80906c800] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb80906c800] ct_type:0 pic_struct:3
 2718004.000000
 3142004.000000
 1234005.000000
 1234005.000000
 [h264 @ 0x7fb80906ce00] nal_unit_type: 9(AUD), nal_ref_idc: 0
 2718005.000000
 [h264 @ 0x7fb80906ce00] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb80906ce00] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 3142005.000000
 [h264 @ 0x7fb80906ce00] ct_type:0 pic_struct:3
 1234006.000000
 1234006.000000
 [h264 @ 0x7fb8090a5e00] nal_unit_type: 9(AUD), nal_ref_idc: 0
 2718006.000000
 [h264 @ 0x7fb8090a5e00] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb8090a5e00] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 0
 3142006.000000
 [h264 @ 0x7fb8090a5e00] ct_type:0 pic_struct:3
 1234007.000000
 [h264 @ 0x7fb8090bc200] nal_unit_type: 9(AUD), nal_ref_idc: 0
 1234007.000000
 [h264 @ 0x7fb8090bc200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb8090bc200] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 2718007.000000
 [h264 @ 0x7fb8090bc200] ct_type:0 pic_struct:3
 3142007.000000
 [out_0_0 @ 0x7fb808c3c500] EOF on sink link out_0_0:default.
 No more output streams to write to, finishing.
 [h264 @ 0x7fb809012200] nal_unit_type: 9(AUD), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 6(SEI), nal_ref_idc: 0
 [h264 @ 0x7fb809012200] nal_unit_type: 1(Coded slice of a non-IDR
 picture), nal_ref_idc: 2
 [h264 @ 0x7fb809012200] ct_type:0 pic_struct:3
 frame=    8 fps=0.0 q=12.1 Lsize=     107kB time=00:00:00.28
 bitrate=3127.8kbits/s speed=4.79x
 video:106kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.846357%
 Input file #0 (fate-suite/h264/interlaced_crop.mp4):
   Input stream #0:0 (video): 19 packets read (54171 bytes); 10 frames
 decoded;
   Total: 19 packets (54171 bytes) demuxed
 Output file #0 (/dev/null):
   Output stream #0:0 (video): 8 frames encoded; 8 packets muxed (108583
 bytes);
   Total: 8 packets (108583 bytes) muxed
 10 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 0x7fb808c02580] Statistics: 2 seeks, 4 writeouts
 [AVIOContext @ 0x7fb808c00680] Statistics: 100725 bytes read, 2 seeks
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7242#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list