Opened 12 years ago

Closed 12 years ago

#1113 closed defect (fixed)

huffyuv enc: broken output with odd width and -pix_fmt yuv420p

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: huffyuv ffvhuff
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://ffmpeg.org/trac/ffmpeg/attachment/ticket/1059/599.png

C:\>ffmpeg -i 599.png -vcodec huffyuv -pix_fmt yuv420p out.avi
ffmpeg version N-38938-ge01f478 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 20 2012 02:36:44 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.101 /  2. 65.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from '599.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24, 599x412, 25 tbr, 25 tbn, 25 tbc
File 'out.avi' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuv420p' for codec 'huffyuv', auto-selecting format '
yuv422p'
[buffer @ 0x1db19e0] w:599 h:412 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x1db1c60] auto-inserting filter 'auto-inserted scale 0' between t
he filter 'src' and the filter 'out'
[scale @ 0x1db11a0] w:599 h:412 fmt:rgb24 sar:0/1 -> w:599 h:412 fmt:yuv422p sar
:0/1 flags:0x4
[huffyuv @ 0x2306040] using huffyuv 2.2.0 or newer interlacing flag
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf54.2.100
    Stream #0:0: Video: huffyuv (HFYU / 0x55594648), yuv422p, 599x412, q=2-31, 2
00 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> huffyuv)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=     186kB time=00:00:00.04 bitrate=38114.0kbits
/s
video:180kB audio:0kB global headers:0kB muxing overhead 3.086593%

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Keywords: huffyuv ffvhuff added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Reproducible with
$ ./ffmpeg -i tests/lena.pnm -s 255x255 -pix_fmt yuv422p -vcodec huffyuv out.avi
and
$ ./ffmpeg -i tests/lena.pnm -s 255x255 -pix_fmt yuv422p -vcodec ffvhuff out.avi

comment:2 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

Fixed by Paul B Mahol.

Note: See TracTickets for help on using tickets.