[Ffmpeg-devel] Need help on encoding to .jpg

Cool_Zer0 c00jz3r0
Wed Apr 11 12:50:37 CEST 2007


Hi there.

I'm trying to decode a .jpg to resize it and then encode it again to .jpg.

The logs are the following:
[Level:0]    Compiler did not align stack variables. Libavcodec has been 
miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
[Level:2]    marker=d8 avail_size_in_buf=67668
[Level:2]    buffer too small, expanding to 67668 bytes
[Level:2]    marker parser used 0 bytes (0 bits)
[Level:2]    marker=e0 avail_size_in_buf=67666
[Level:2]    marker parser used 16 bytes (128 bits)
[Level:2]    marker=fe avail_size_in_buf=67648
[Level:2]    marker parser used 23 bytes (184 bits)
[Level:2]    marker=db avail_size_in_buf=67623
[Level:2]    index=0
[Level:2]    qscale[0]: 3
[Level:2]    index=1
[Level:2]    qscale[1]: 6
[Level:2]    marker parser used 132 bytes (1056 bits)
[Level:2]    marker=c4 avail_size_in_buf=67489
[Level:2]    class=0 index=0 nb_codes=12
[Level:2]    class=0 index=1 nb_codes=12
[Level:2]    class=1 index=0 nb_codes=251
[Level:2]    class=1 index=1 nb_codes=251
[Level:2]    marker parser used 418 bytes (3344 bits)
[Level:2]    marker=c0 avail_size_in_buf=67069
[Level:2]    sof0: picture: 636x529
[Level:2]    component 0 1:1 id: 0 quant:0
[Level:2]    component 1 1:1 id: 1 quant:1
[Level:2]    component 2 1:1 id: 2 quant:1
[Level:2]    pix fmt id 111111
[Level:2]    marker parser used 17 bytes (136 bits)
[Level:2]    marker=da avail_size_in_buf=67050
[Level:2]    escaping removed 206 bytes
[Level:2]    component: 0
[Level:2]    component: 1
[Level:2]    component: 2
[Level:2]    marker parser used 66843 bytes (534743 bits)
[Level:2]    marker=d9 avail_size_in_buf=0
[Level:2]    mjpeg decode frame unused 0 bytes
[Level:2]    marker=d8 avail_size_in_buf=67668
[Level:2]    buffer too small, expanding to 67668 bytes
[Level:2]    marker parser used 0 bytes (0 bits)
[Level:2]    marker=e0 avail_size_in_buf=67666
[Level:2]    marker parser used 16 bytes (128 bits)
[Level:2]    marker=fe avail_size_in_buf=67648
[Level:2]    marker parser used 23 bytes (184 bits)
[Level:2]    marker=db avail_size_in_buf=67623
[Level:2]    index=0
[Level:2]    qscale[0]: 3
[Level:2]    index=1
[Level:2]    qscale[1]: 6
[Level:2]    marker parser used 132 bytes (1056 bits)
[Level:2]    marker=c4 avail_size_in_buf=67489
[Level:2]    class=0 index=0 nb_codes=12
[Level:2]    class=0 index=1 nb_codes=12
[Level:2]    class=1 index=0 nb_codes=251
[Level:2]    class=1 index=1 nb_codes=251
[Level:2]    marker parser used 418 bytes (3344 bits)
[Level:2]    marker=c0 avail_size_in_buf=67069
[Level:2]    sof0: picture: 636x529
[Level:2]    component 0 1:1 id: 0 quant:0
[Level:2]    component 1 1:1 id: 1 quant:1
[Level:2]    component 2 1:1 id: 2 quant:1
[Level:2]    pix fmt id 111111
[Level:2]    marker parser used 17 bytes (136 bits)
[Level:2]    marker=da avail_size_in_buf=67050
[Level:2]    escaping removed 206 bytes
[Level:2]    component: 0
[Level:2]    component: 1
[Level:2]    component: 2
[Level:2]    marker parser used 66843 bytes (534743 bits)
[Level:2]    marker=d9 avail_size_in_buf=0
[Level:2]    mjpeg decode frame unused 0 bytes


The piece of code that generates this code is on attachment...

The result is a full green frame with the correct dimensions... I've 
analyzed the file with a HEX editor and it looks good on the header but 
on the image part is all green...
Other thing (that may be a hint): In the logs nothing about the encoding 
appears... Isn't that weird?



I appreciate any help...



Thanks


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: resize_image.cpp
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070411/64f1ce01/attachment.txt>



More information about the ffmpeg-devel mailing list