Bug 475029 - Rendering crashes when rendering to webp.
Summary: Rendering crashes when rendering to webp.
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 23.08.1
Platform: Other Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-29 17:34 UTC by Trevor
Modified: 2023-12-02 11:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: timeline_corruption+


Attachments
Trying to render a video to a webp image sequence (36.76 KB, image/png)
2023-11-26 10:10 UTC, Mr. Named
Details
The resulting crash shown in the job queue. (7.49 KB, image/png)
2023-11-26 10:11 UTC, Mr. Named
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor 2023-09-29 17:34:43 UTC
SUMMARY
I cannot render any projects as webp. It always crashes.

STEPS TO REPRODUCE
1. Select 'webp' preset.
2. Press "Render to File".

OBSERVED RESULT
Rendering of C:/Users/owner/Videos/untitled_%05d.webp crashed

[consumer avformat] video codec libwebp unrecognised - ignoring

EXPECTED RESULT
Output rendered webp file.

SOFTWARE/OS VERSIONS
Windows: 10
Kdenlive: 23.08.1

ADDITIONAL INFORMATION
I looked up the error, "video codec libwebp unrecognised" and found the following, https://stackoverflow.com/questions/67904563/unknown-encoder-libwebp
So, I figured it was probably an ffmpeg issue. I downloaded the Windows version from the link and pointed FFmpeg, FFplay, and FFprobe to those but I got the same error so I changed back to the ones installed with kdenlive.
Comment 1 emohr 2023-10-01 10:05:27 UTC
I see only WebM as rendering presets. Where do you get the WebP preset? Maybe a screenshot will help.
Comment 2 Mr. Named 2023-11-26 10:09:00 UTC
I have the same issue.
I had this issue in an earlier version (v22.whatever), so i upgraded to the latest version.
After installing mediainfo which i didn't knew was missing, Config wizard says "Codecs have been updated, everything seems fine.".

But when i render to this image sequence, it crashes.
And upon crash, it drops a log file with as contents:
Started render process: C:/Program Files/kdenlive/bin/melt.exe -progress C:/Users/USER/AppData/Local/Temp/kdenlive-aaafxd-1.mlt
[consumer avformat] video codec libwebp unrecognised - ignoringRendering of C:/Users/USER/Desktop/ORIGINAL_FILENAME_%05d.webp aborted, resulting video will probably be corrupted.

I have some images.
Comment 3 Mr. Named 2023-11-26 10:10:26 UTC
Created attachment 163493 [details]
Trying to render a video to a webp image sequence
Comment 4 Mr. Named 2023-11-26 10:11:42 UTC
Created attachment 163494 [details]
The resulting crash shown in the job queue.
Comment 5 emohr 2023-11-26 12:52:48 UTC
Thank you for reporting. I can confirm the render crash. Even with only 1 color clip. It seems that WEBP is not proper set-up.
Comment 6 Trevor 2023-11-26 16:59:48 UTC
I was able to get webm to work. webp is a picture format to my understanding. So, maybe that's the problem?
Comment 7 Jean-Baptiste Mardelle 2023-11-28 08:30:23 UTC
Git commit 33a9731f86366b936ed5eddbbd77285751431bd5 by Jean-Baptiste Mardelle.
Committed on 28/11/2023 at 09:30.
Pushed by mardelle into branch 'master'.

Check MLT's render profiles for missing codecs.

M  +25   -0    src/renderpresets/renderpresetmodel.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/33a9731f86366b936ed5eddbbd77285751431bd5
Comment 8 Jean-Baptiste Mardelle 2023-11-28 08:32:34 UTC
The problem is that you are trying to render in webp but FFmpeg is not compiled with webp support. Kdenlive did not correctly check for missing codecs in this case, this is now fixed with my last commit - the webp profile now appears disabled in the render dialog.
I will try to update our packaging pipeline to include webp support in FFmpeg.
Comment 9 Jean-Baptiste Mardelle 2023-12-02 11:30:13 UTC
Git commit f7467c6433b9f5f97d274d0bb7c46c00c5b1a465 by Jean-Baptiste Mardelle.
Committed on 02/12/2023 at 12:29.
Pushed by mardelle into branch 'release/23.08'.

Check MLT's render profiles for missing codecs.

M  +25   -0    src/renderpresets/renderpresetmodel.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/f7467c6433b9f5f97d274d0bb7c46c00c5b1a465