Bug 455686 - Rendering crashed: error with audio encode: -541478725
Summary: Rendering crashed: error with audio encode: -541478725
Status: RESOLVED WORKSFORME
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: 22.04.2
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-20 23:35 UTC by davidhcefx
Modified: 2024-07-08 03:47 UTC (History)
1 user (show)

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


Attachments
screenshot (21.94 KB, image/png)
2022-06-20 23:35 UTC, davidhcefx
Details
project file (24.12 KB, application/xml)
2022-06-20 23:35 UTC, davidhcefx
Details
log file (1.77 KB, text/plain)
2022-06-20 23:37 UTC, davidhcefx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davidhcefx 2022-06-20 23:35:02 UTC
Created attachment 149981 [details]
screenshot

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

STEPS TO REPRODUCE
1. Open the project file "kart.kdenlive", which contains a video with "Obscure" effect.
2. Render it to a MP4-H264/AAC file.
3. After reaching 100%, it showed that rendering crashed.

OBSERVED RESULT
```
Rendering of C:/Users/davidhcefx/Videos/kart.mp4 crashed

[libx264 @ 000001c71a6b7dc0] interlace + weightp is not implemented
[mp4 @ 000001c71888e940] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 000001c71888e940] Encoder did not produce proper pts, making some up.
[consumer avformat] error with audio encode: -541478725 (frame 4248)
```

EXPECTED RESULT
No crashes.

SOFTWARE/OS VERSIONS
Windows: 10 Version 2009 (x86_64)

ADDITIONAL INFORMATION
I can reproduce the issue on my Windows machine. I didn't attach GDB backtraces because it's not the main GUI program that crashed but rather the rendering engine, and the program also displayed some error logs.
Comment 1 davidhcefx 2022-06-20 23:35:49 UTC
Created attachment 149982 [details]
project file
Comment 2 davidhcefx 2022-06-20 23:37:03 UTC
Created attachment 149983 [details]
log file
Comment 3 davidhcefx 2022-06-20 23:53:34 UTC
I tried to export to other formats, but it also crashed with similar error messages:
```
Rendering of C:/Users/davidhcefx/Videos/kart.mpg crashed

[mpeg @ 000001695c3ce940] VBV buffer size not set, using default size of 230KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Current Frame: 25, percentage: 0
[mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=2002 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=2002 size=77113 Current Frame: 29, percentage: 0
[mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=4043 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=6084 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=8125 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=10166 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=12207 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=14248 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=16289 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=18330 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=20371 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=22412 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=24453 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=26494 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=28535 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=30576 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=32617 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=34658 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=36699 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=38740 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=40781 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=42822 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=44863 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=46904 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=48945 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=50986 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=53027 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=55068 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=57109 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=57109 size=77113 Current Frame: 32, percentage: 0
[mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=59150 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=61191 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=63232 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=65273 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=67314 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=69355 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=71396 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=73437 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=75478 size=77113 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=397 size=9114 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=2438 size=9114 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=4479 size=9114 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=6520 size=9114 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=8561 size=9114 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=1479 size=9038 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=3520 size=9038 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=5561 size=9038 [mpeg @ 000001695c3ce940] buffer underflow st=0 bufi=7602 size=9038 Current Frame: 33, percentage: 0
[mpeg @ 000001695c3ce940] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mpeg @ 000001695c3ce940] Encoder did not produce proper pts, making some up. [consumer avformat] error with audio encode: -541478725 (frame 4248)
```

Note that, however, both the exported products can be played without problems.
Comment 4 emohr 2024-06-08 09:33:51 UTC
We have done some rendering fixes. 

Please try with the current Kdenlive version 24.05.0 https://kdenlive.org/en/download/
Comment 5 Bug Janitor Service 2024-06-23 03:47:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2024-07-08 03:47:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!