[FFmpeg-trac] #2015(avfilter:reopened): VF Scale option should include -2 to create square pixels

FFmpeg trac at avcodec.org
Sun Jan 6 19:46:11 CET 2013


#2015: VF Scale option should include -2 to create square pixels
-------------------------------------+------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  enhancement  |                   Status:  reopened
             Priority:  normal       |                Component:  avfilter
              Version:  unspecified  |               Resolution:
             Keywords:  scale        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by ramitbhalla):

 Here is the sample output from MEncoder:


 {{{
 mencoder "..\NCIS HD Small.wtv" -ovc x264 -oac copy -vf scale=720:-10 -o
 csi-test.ts

 MEncoder Sherpya-SVN-r33883-4.2.5 (C) 2000-2011 MPlayer Team
 163 audio & 368 video codecs
 success: format: 0  data: 0x0 - 0xc800000
 Invalid seek to negative position ffffffffffffffff!
 libavformat file format detected.
 [wtv @ 01d33ad0] reported file length (0x15b2b2fd0) exceeds number of
 available sectors (0xb0000000)
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [mpeg2video @ 01dc1ef0] mpeg_decode_postinit() failure
 [lavf] stream 0: audio (ac3), -aid 0, -alang eng
 [lavf] stream 1: audio (ac3), -aid 1, -alang eng
 [lavf] stream 2: video (mpeg2video), -vid 0
 [lavf] stream 3: subtitle (dvb-teletext), -sid 0
 VIDEO:  [MPG2]  1920x1080  0bpp  29.970 fps  38810.4 kbps (4737.6 kbyte/s)
 [V] filefmt:35  fourcc:0x3247504D  size:1920x1080  fps:29.970
 ftime:=0.0334
 Opening video filter: [expand osd=1]
 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
 Opening video filter: [scale w=720 h=-10]
 ==========================================================================
 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
 Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
 ==========================================================================
 audiocodec: framecopy (format=2000 chans=6 rate=48000 bits=16 B/s=48000
 sample-0)
 Pos:   0.0s      1f ( 2%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!
 Pos:   0.0s      2f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.003 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      3f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.007 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      4f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.010 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      5f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.013 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      6f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.017 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      7f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.020 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      8f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.023 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s      9f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.027 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s     10f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.030 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s     11f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.033 [0:0]
 [mpeg2video @ 01168d90]mpeg_decode_postinit() failure
 Error while decoding frame!

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s     12f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.037 [0:0]
 Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
 [swscaler @ 0114f094]BICUBIC scaler, from yuv420p to yuv420p using MMX2
 x264 [info]: using SAR=80/81
 x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle
 SSE4.2
 x264 [info]: profile High, level 3.0

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s     13f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.040 [0:0]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s     14f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.043 [0:0]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.0s     15f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.047 [0:0]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.2s     22f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.070 [0:0]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.6s     32f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.070 [0:380]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   0.9s     42f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.070 [0:381]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   1.2s     52f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.070 [0:381]

 1 duplicate frame(s)!
 Muxer frame buffer cannot allocate memory!
 Pos:   1.5s     60f ( 2%)  0.00fps Trem:   0min   0mb  A-V:-0.063 [0:381]

 Flushing video frames.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.
 Writing index...
 Writing header...
 ODML: vprp aspect is 16:9.
 Setting audio delay to 0.064s.

 Video stream: 1331.282 kbit/s  (166410 B/s)  size: 249865 bytes  1.502
 secs  60 frames

 Audio stream:  381.935 kbit/s  (47741 B/s)  size: 94720 bytes  1.984 secs
 x264 [info]: frame I:1     Avg QP:24.22  size: 21486
 x264 [info]: frame P:25    Avg QP:26.76  size:  8423
 x264 [info]: frame B:19    Avg QP:29.12  size:   938
 x264 [info]: consecutive B-frames: 28.9% 35.6% 26.7%  8.9%
 x264 [info]: mb I  I16..4: 14.4% 57.2% 28.4%
 x264 [info]: mb P  I16..4:  2.8% 14.9%  4.1%  P16..4: 36.3% 14.1%  7.2%
 0.0%  0.0%    skip:20.7%
 x264 [info]: mb B  I16..4:  0.0%  0.2%  0.0%  B16..8: 30.1%  1.9%  0.7%
 direct: 1.7%  skip:65.4%  L0:27.9% L1:67.6% BI:
  4.4%
 x264 [info]: 8x8 transform intra:67.0% inter:71.3%
 x264 [info]: coded y,uvDC,uvAC intra: 70.1% 84.2% 43.6% inter: 21.7% 23.5%
 3.2%
 x264 [info]: i16 v,h,dc,p: 20% 41%  4% 35%
 x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 15%  7%  9%  7%  8%
 9%  9%
 x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 29% 13%  6%  7%  6%  6%
 6%  5%
 x264 [info]: i8c dc,h,v,p: 50% 23% 17% 10%
 x264 [info]: Weighted P-Frames: Y:24.0% UV:24.0%
 x264 [info]: ref P L0: 61.2% 19.5% 15.2%  3.7%  0.5%
 x264 [info]: ref B L0: 89.4%  9.7%  0.9%
 x264 [info]: ref B L1: 96.2%  3.8%
 x264 [info]: kb/s:1331.28
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2015#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list