Opened 20 months ago
Closed 13 months ago
#10227 closed defect (fixed)
cscd: video with width not multiple of 4 fails to decode
Reported by: | ami_stuff | Owned by: | Michael Niedermayer |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
"cscd_1_0_306_306_lzo.avi" file was encoded by the "CamStudio Lossless Codec 1.0"
"cscd_1_5_306_306_lzo.avi" file was encoded by the "CamStudio Lossless Codec 1.5"
camcodec.dll 1.5 is able to decode both of the files correctly.
FFmpeg fails to decode "cscd_1_0_306_306_lzo.avi" file.
What is a reason for this I don't know, but I guess that both files should decode correctly with FFmpeg's decoder just like they do with the original thing.
Also both of the files decodes to identical output when I export them to RAW in VirtualDub: File->Export->Raw video...
./ffmpeg -i cscd_1_0_306_306_lzo.avi -y out.avi ffmpeg version N-109867-g5247dab6b1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: libavutil 58. 1.100 / 58. 1.100 libavcodec 60. 2.100 / 60. 2.100 libavformat 60. 2.100 / 60. 2.100 libavdevice 60. 0.100 / 60. 0.100 libavfilter 9. 1.100 / 9. 1.100 libswscale 7. 0.100 / 7. 0.100 libswresample 4. 9.100 / 4. 9.100 Input #0, avi, from 'cscd_1_0_306_306_lzo.avi': Metadata: software : Lavf60.2.100 Duration: 00:00:00.21, start: 0.000000, bitrate: 43011 kb/s Stream #0:0: Video: cscd (CSCD / 0x44435343), bgr24, 306x306, 23.97 fps, 23.97 tbr, 23.97 tbn Stream mapping: Stream #0:0 -> #0:0 (cscd (camstudio) -> mpeg4 (native)) Press [q] to stop, [?] for help [camstudio @ 0x560becc26b80] error during lzo decompression Error while decoding stream #0:0: Invalid data found when processing input [camstudio @ 0x560becc26b80] error during lzo decompression Error while decoding stream #0:0: Invalid data found when processing input [camstudio @ 0x560becc26b80] error during lzo decompression Error while decoding stream #0:0: Invalid data found when processing input [camstudio @ 0x560becc26b80] error during lzo decompression Error while decoding stream #0:0: Invalid data found when processing input [camstudio @ 0x560becc26b80] error during lzo decompression Error while decoding stream #0:0: Invalid data found when processing input Output #0, avi, to 'out.avi': Metadata: software : Lavf60.2.100 ISFT : Lavf60.2.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 306x306, q=2-31, 200 kb/s, 23.97 fps, 23.97 tbn Metadata: encoder : Lavc60.2.100 mpeg4 Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbframe= 0 fps=0.0 q=0.0 Lsize= 6kB time=-577014:32:22.77 bitrate=N/A speed=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Conversion failed!
Attachments (2)
Change History (8)
by , 20 months ago
Attachment: | cscd_1_0_306_306_lzo.avi added |
---|
by , 20 months ago
Attachment: | cscd_1_5_306_306_lzo.avi added |
---|
comment:1 by , 20 months ago
comment:3 by , 20 months ago
Component: | undetermined → avcodec |
---|---|
Owner: | set to |
Reproduced by developer: | set |
Status: | new → open |
Suggested fix: https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2023-March/307262.html
Tests with other width/height could be interressting as the equation is only based on that one sample.
comment:4 by , 20 months ago
I did some testing with various resolutions and yes, this patch fixes the problem, thanks!
But unfortunatelly while testing this codec in more detail I found another regression, this time in gzip decompression - ticket #10241.
comment:6 by , 13 months ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
This is another regression somewhere between 20180614-29cddc9 and 20181029-32d021c: