New submission from Stefano Sabatini <[email protected]>:

ffmpeg -i INPUT -s ODDxHEIGTH OUTPUT

will issue chroma issues on the output size, at least with some test which I
did, output:
ffmpeg -i ~/samples/INPUT.mp4 -s 199x199 -y OUTPUT.avi
FFmpeg version SVN-r20803, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec 12 2009 14:17:03 with gcc 4.3.2
  configuration: --prefix=/home/stefano --enable-gpl --enable-pthreads
--disable-shared --enable-debug=3 --enable-libvorbis --enable-avfilter
--enable-nonfree --enable-x11grab --enable-libmp3lame --enable-libspeex
--disable-optimizations --enable-libx264 --disable-mmx --disable-stripping
--disable-indev=x11_grab_device
  libavutil     50. 5. 1 / 50. 5. 1
  libavcodec    52.43. 0 / 52.43. 0
  libavformat   52.41. 0 / 52.41. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.12. 0 /  1.12. 0
  libswscale     0. 7. 2 /  0. 7. 2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/stefano/samples/INPUT.mp4':
  Duration: 00:00:53.40, start: 0.000000, bitrate: 818 kb/s
    Stream #0.0(und): Video: mpeg4, yuv420p, 720x576 [PAR 1:1 DAR 5:4], 749
kb/s, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 64 kb/s
  Metadata
    major_brand     : isom
    minor_version   : 512
    compatible_brands: mp41
Output #0, avi, to 'OUTPUT.avi':
    Stream #0.0(und): Video: mpeg4, yuv420p, 199x199 [PAR 5:4 DAR 5:4], q=2-31,
200 kb/s, 25 tbn, 25 tbc
    Stream #0.1(und): Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1335 fps= 27 q=10.6 Lsize=    1918kB time=53.33 bitrate= 294.6kbits/s    
video:1408kB audio:417kB global headers:0kB muxing overhead 5.139406%

The problem has been discovered I believe by the recent removal of the even-size
contraints for the ffmpeg input, but can be easily shown using
ffmpeg+libavfilter and the scale filter, e.g. by:
ffplay INPUT -vfilters "format=FMT, scale=ODD:HEIGTH"

I reproduced the problem with all the format tested, included monow and rgb555
and nv12.

The artefacts consist in a diagonal line in the bottom-right part of the output
video and in an apparent chroma distortion.

Regards
Regards.

----------
messages: 8295
priority: normal
status: new
substatus: new
title: Odd width sizes and libswscale rescaling
type: bug

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1616>
_____________________________________________________

Reply via email to