[FFmpeg-trac] #458(swscale:open): Scale filter can create output which scale filter cannot accept on its input

FFmpeg trac at avcodec.org
Thu Sep 15 13:31:10 CEST 2011


#458: Scale filter can create output which scale filter cannot accept on its
input
------------------------------------+-----------------------------------
             Reporter:  mdsh        |                    Owner:  michael
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  swscale
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by mdsh):

 I have a better and much simpler demonstration, but it should mean the
 change of title for this ticket:

 '''Pad filter can create output which scale filter cannot accept on its
 input.'''

 Since the pad filter adds slices if it's adding lines at the top or bottom
 of the input, it's trivial to send slices into the interlaced scale filter
 that do not start at line%4.

 {{{
 ffmpeg -threads 4 -i ../576i25/Clock10tone.mov -an -vf
 pad=in_w:in_h+2:0:2:white,scale=0:0:interl=1,format=uyvy422 -r 25 -vcodec
 rawvideo -pix_fmt uyvy422 -y out.yuv
 ffmpeg version N-31938-g3a9e227, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Aug 17 2011 14:37:20 with gcc 4.4.3
   configuration: --cpu=i686 --enable-static --extra-cflags='--static
 -I$PREFIX/include' --extra-libs='-static -L$PREFIX/lib'
 --prefix=/usr/local --disable-ffplay --disable-ffprobe --enable-gpl
 --enable-nonfree --enable-pthreads --enable-x11grab --enable-libdirac
 --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
 --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-
 libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
   libavutil    51. 12. 0 / 51. 12. 0
   libavcodec   53. 10. 0 / 53. 10. 0
   libavformat  53.  7. 0 / 53.  7. 0
   libavdevice  53.  3. 0 / 53.  3. 0
   libavfilter   2. 32. 0 /  2. 32. 0
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb4bfc20] Unimplemented container channel
 layout.
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb4bfc20] If you want to help, upload a sample
 of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the
 ffmpeg-devel mailing list.
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 '/home/himslm01/Videos/576i25/Clock10tone.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2009-07-16 17:23:31
   Duration: 00:00:10.00, start: 0.000000, bitrate: 30334 kb/s
     Stream #0.0(eng): Video: dvvideo, yuv420p, 720x576 [SAR 64:45 DAR
 16:9], 28800 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
     Metadata:
       creation_time   : 2009-07-16 17:23:31
     Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536
 kb/s
     Metadata:
       creation_time   : 2009-07-16 17:23:31
 [buffer @ 0xb4c80a0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45
 sws_param:
 [pad @ 0xb4ba320] w:720 h:576 -> w:720 h:578 x:0 y:2
 color:0xEB8080FF[yuva]
 [scale @ 0xb4b9900] w:720 h:578 fmt:yuv420p -> w:720 h:578 fmt:uyvy422
 flags:0x4
 Output #0, rawvideo, to 'out.yuv':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2009-07-16 17:23:31
     encoder         : Lavf53.7.0
     Stream #0.0(eng): Video: rawvideo, uyvy422, 720x578 [SAR 64:45 DAR
 512:289], q=2-31, 200 kb/s, 90k tbn, 25 tbc
     Metadata:
       creation_time   : 2009-07-16 17:23:31
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help
 Assertion y%4 == 0 failed at libavfilter/vf_scale.c:311
 }}}

-- 
Ticket URL: <http://ffmpeg.org/trac/ffmpeg/ticket/458#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list