Bug 492892 - problems with some avi files
Summary: problems with some avi files
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-09 16:01 UTC by theloni0us
Modified: 2025-01-04 16:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description theloni0us 2024-09-09 16:01:01 UTC
SUMMARY
Kdenlive has problems handling some avi files.

STEPS TO REPRODUCE
1. import the file at: https://we.tl/t-MqSoKFV6LQ
2. make sure that the project fits the video resolution (640x480)

OBSERVED RESULT
The project monitor shows either a white frame or is frozen in the first frame of the video. The same happens when rendering the project to a video file.

SOFTWARE/OS VERSIONS
I tested this on Arch Linux using both the distro package (24.08.0) and the current AppImage. 
I posted this problem to the forum (https://discuss.kde.org/t/problem-with-avi-file/21009/12) and another user reported the same problem on Pop!_OS.

KDE Plasma Version: 6.1.4 
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
When changing the settings to fit the video (640x480 29.97fps), messages like this one appear on the terminal:

[in @ 0x7712480cc980] filter context - w: 640 h: 480 fmt: 1 csp: unknown range: unknown, incoming frame - w: 640 h: 480 fmt: 1 csp: bt470bg range: tv pts_time: 3.370033

The video plays fine using any other media player. This is the info returned by mediainfo:

General
Complete name                            : snip.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
Format settings                          : BitmapInfoHeader / PcmWaveformat
File size                                : 66.5 MiB
Duration                                 : 5 s 5 ms
Overall bit rate                         : 112 Mb/s
Frame rate                               : 29.970 FPS
Writing application                      : Lavf61.1.100

Video
ID                                       : 0
Format                                   : YUV
Codec ID                                 : Y41B
Codec ID/Info                            : YUV 4:1:1 Planar
Duration                                 : 5 s 5 ms
Bit rate                                 : 110 Mb/s
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:1:1
Scan type                                : Progressive
Compression mode                         : Lossless
Bits/(Pixel*Frame)                       : 12.000
Stream size                              : 65.9 MiB (99%)

Audio
ID                                       : 1
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 5 s 5 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 024 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 32.0 kHz
Bit depth                                : 16 bits
Stream size                              : 626 KiB (1%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 17  ms (0.50 video frame)
Comment 1 Jean-Baptiste Mardelle 2024-09-09 20:11:08 UTC
Thanks a lot for your feedback. We could trace the problem to an MLT commit:
https://github.com/mltframework/mlt/commit/1f0323d8aafa742216968f57c98f259328bb5bea

We are currently investigating and will open an issue with MLT maintainers.
Comment 2 theloni0us 2024-09-09 20:18:12 UTC
Thanks for the prompt response.
Comment 3 theloni0us 2024-09-13 12:35:39 UTC
Seems to be solved in Version 24.08.1, thanks for the prompt resolution.
Comment 4 emohr 2025-01-04 16:54:17 UTC
Thank you for your feedback. Glad to here it works.

I close this bug. If it still appears in the latest version, please feel free to re-open it and update the affected version number.