Opened 13 years ago

Closed 13 years ago

#891 closed defect (fixed)

vertical line for odd yuv -> rgb

Reported by: ami_stuff Owned by:
Priority: important Component: undetermined
Version: git-master Keywords: mjpeg regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

there is a vertical line in the output on the right side

ffmpeg -i 422_odd.jpg out.bmp

C:\>ffmpeg -i 422_odd.jpg
ffmpeg version N-36492-g7f83db3, Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  5 2012 01:57:12 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 53.100 / 53. 53.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, image2, from '422_odd.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj440p, 1023x767 [SAR 96:96 DAR 1023:767], 25 t
br, 25 tbn, 25 tbc
At least one output file must be specified

Attachments (4)

422_odd.jpg (111.4 KB ) - added by ami_stuff 13 years ago.
442_odd.jpg (112.7 KB ) - added by ami_stuff 13 years ago.
441_odd.jpg (109.4 KB ) - added by ami_stuff 13 years ago.
out.bmp (2.2 MB ) - added by ami_stuff 13 years ago.

Change History (9)

by ami_stuff, 13 years ago

Attachment: 422_odd.jpg added

by ami_stuff, 13 years ago

Attachment: 442_odd.jpg added

by ami_stuff, 13 years ago

Attachment: 441_odd.jpg added

comment:1 by Carl Eugen Hoyos, 13 years ago

Keywords: mjpeg added

I see no vertical line.
Please do not just post the output of "ffmpeg -i file", but always post the complete, uncut console output of the command that is failing for you (ffmpeg -i 422_odd.jpg out.bmp)

The output for 422 is identical with a very old FFmpeg version.

$ ffmpeg -i 422_odd.jpg -f crc -
ffmpeg version N-36543-g12d8340 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  7 2012 01:06:11 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
Input #0, image2, from '422_odd.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj440p, 1023x767 [SAR 96:96 DAR 1023:767], 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x8dd0020] w:1023 h:767 pixfmt:yuvj440p tb:1/1000000 sar:96/96 sws_param:
Output #0, crc, to 'pipe:':
  Metadata:
    encoder         : Lavf53.29.100
    Stream #0:0: Video: rawvideo (440P / 0x50303434), yuvj440p, 1023x767 [SAR 96:96 DAR 1023:767], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> rawvideo)
Press [q] to stop, [?] for help
CRC=0x2e6f3ead
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   3.0kbits/s
video:1534kB audio:0kB global headers:0kB muxing overhead -99.999045%
$ ffmpeg -i 441_odd.jpg -f crc -
ffmpeg version N-36543-g12d8340 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  7 2012 01:06:11 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
Input #0, image2, from '441_odd.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj444p, 1023x767 [SAR 96:96 DAR 1023:767], 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x8dd0020] w:1023 h:767 pixfmt:yuvj444p tb:1/1000000 sar:96/96 sws_param:
Output #0, crc, to 'pipe:':
  Metadata:
    encoder         : Lavf53.29.100
    Stream #0:0: Video: rawvideo (444P / 0x50343434), yuvj444p, 1023x767 [SAR 96:96 DAR 1023:767], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> rawvideo)
Press [q] to stop, [?] for help
CRC=0xf6f16120
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   3.0kbits/s
video:2299kB audio:0kB global headers:0kB muxing overhead -99.999363%
$ ffmpeg -i 442_odd.jpg -f crc -
ffmpeg version N-36543-g12d8340 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  7 2012 01:06:11 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
Input #0, image2, from '442_odd.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj444p, 1023x767 [SAR 96:96 DAR 1023:767], 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x8dd0020] w:1023 h:767 pixfmt:yuvj444p tb:1/1000000 sar:96/96 sws_param:
Output #0, crc, to 'pipe:':
  Metadata:
    encoder         : Lavf53.29.100
    Stream #0:0: Video: rawvideo (444P / 0x50343434), yuvj444p, 1023x767 [SAR 96:96 DAR 1023:767], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> rawvideo)
Press [q] to stop, [?] for help
CRC=0xf447340d
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   3.0kbits/s
video:2299kB audio:0kB global headers:0kB muxing overhead -99.999363%

comment:2 by ami_stuff, 13 years ago

Please view 422_odd.jpg and out.bmp at the same time im IMDisplay (ImageMagick). You will notice a one-pixel-wide vertical line (from top to bottom of the image) in the output bmp file after the last person on the image (right side). This line does not exist in loaded jpg image.

It's easier to spot it in IrfanView where the line have gray color (not the color of the ground).

$ ffmpeg.exe -i 422_odd.jpg out.bmp
ffmpeg version 0.9.0.git-12d8340 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  7 2012 02:04:56 with gcc 4.5.2
  configuration: --disable-ffplay --disable-ffserver --disable-ffprobe --disable
-asm --disable-yasm --disable-shared --enable-static
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
Input #0, image2, from '422_odd.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj440p, 1023x767 [SAR 96:96 DAR 1023:767], 25 t
br, 25 tbn, 25 tbc
Incompatible pixel format 'yuvj440p' for codec 'bmp', auto-selecting format 'bgr
24'
[buffer @ 016c19c0] w:1023 h:767 pixfmt:yuvj440p tb:1/1000000 sar:96/96 sws_para
m:
[buffersink @ 016c1b80] auto-inserting filter 'auto-inserted scale 0' between th
e filter 'src' and the filter 'out'
[scale @ 016c1d90] w:1023 h:767 fmt:yuvj440p -> w:1023 h:767 fmt:bgr24 flags:0x4

Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf53.29.100
    Stream #0:0: Video: bmp, bgr24, 1023x767 [SAR 1:1 DAR 1023:767], q=2-31, 200
 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> bmp)
Press [q] to stop, [?] for help
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:2301kB audio:0kB global headers:0kB muxing overhead -100.000000%

comment:3 by ami_stuff, 13 years ago

this only happens with --disabled-asm (mingw)

Version 0, edited 13 years ago by ami_stuff (next)

by ami_stuff, 13 years ago

Attachment: out.bmp added

comment:4 by Carl Eugen Hoyos, 13 years ago

Keywords: regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Summary: jpg: regression with odd widthvertical line for odd yuv -> rgb
Version: unspecifiedgit-master

Regression since 21d84246

comment:5 by Carl Eugen Hoyos, 13 years ago

Resolution: fixed
Status: openclosed

Fixed by Michael.

Note: See TracTickets for help on using tickets.