Opened 3 years ago

Closed 21 months ago

#2570 closed defect (fixed)

pix format convert producing black vertical line at the right side when width is not multiply of 4

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

Description

C:\>ffmpeg -i 1022.jpg out.gif
ffmpeg version N-53032-g37d9784 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 14 2013 02:45:02 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  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 -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52. 31.100 / 52. 31.100
  libavcodec     55.  9.100 / 55.  9.100
  libavformat    55.  7.100 / 55.  7.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 65.100 /  3. 65.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, image2, from '1022.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 1022x768 [SAR 72:72 DAR 511:384], 25 tb
r, 25 tbn, 25 tbc
[swscaler @ 0x1fb9820] No accelerated colorspace conversion found from yuv420p t
o bgr8.
[swscaler @ 0x20f8000] No accelerated colorspace conversion found from yuv420p t
o bgr8.
[swscaler @ 0x20fddc0] No accelerated colorspace conversion found from yuv420p t
o bgr8.
Output #0, gif, to 'out.gif':
  Metadata:
    encoder         : Lavf55.7.100
    Stream #0:0: Video: gif, bgr8, 1022x768 [SAR 1:1 DAR 511:384], q=2-31, 200 k
b/s, 100 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> gif)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=     247kB time=00:00:00.04 bitrate=50588.2kbits
/s
video:246kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.320864%

Attachments (1)

1022.jpg (328.6 KB) - added by ami_stuff 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by ami_stuff

comment:1 Changed 3 years ago by ami_stuff

It's a bug in bgr8/pal8 output.

comment:2 Changed 3 years ago by ubitux

  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from gifenc: black vertical line at the right side when width is not multiply of 4 to pix format convert producing black vertical line at the right side when width is not multiply of 4
  • Version changed from unspecified to git-master

Reproducible with ./ffmpeg -i 1022.jpg -pix_fmt pal8 -y out.png so not indeed not specific to GIF.

Version 0, edited 3 years ago by ubitux (next)

comment:3 Changed 3 years ago by ubitux

Possibly a duplicate of #1031.

comment:4 Changed 3 years ago by cehoyos

  • Component changed from undetermined to swscale

comment:5 Changed 21 months ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.