Bug 472738 - Preset "MP4-H264/AAC" is not available: "Unsupported video codec: libx264"
Summary: Preset "MP4-H264/AAC" is not available: "Unsupported video codec: libx264"
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: 23.04.3
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-28 10:09 UTC by rokosta
Modified: 2023-08-08 07:30 UTC (History)
1 user (show)

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


Attachments
Screenshot (92.75 KB, image/png)
2023-07-28 10:09 UTC, rokosta
Details
Config Wizard (32.36 KB, image/png)
2023-08-02 14:47 UTC, rokosta
Details
appimage works (100.62 KB, image/png)
2023-08-02 16:35 UTC, rokosta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rokosta 2023-07-28 10:09:14 UTC
Created attachment 160580 [details]
Screenshot

SUMMARY
***
Render preset "MP4-H264/AAC" is not available: "Unsupported video codec: libx264" message is displayed in UI.
***


STEPS TO REPRODUCE
1. Open Kdenlive
2. Go to "Project->Render..."

OBSERVED RESULT
Render preset "MP4-H264/AAC" list item is red, yellow message "Unsupported video codec: libx264" is displayed when list item selected

EXPECTED RESULT
Render preset will be available, "Render to File" button will be clickable

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20230724
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
I have `ffmpeg-6` installed using zypper
Comment 1 Bernd 2023-08-02 14:40:54 UTC
Can you run the config wizard (Menu > Settings > Run Config Wizard) and see what happens?
Comment 2 rokosta 2023-08-02 14:47:01 UTC
Created attachment 160680 [details]
Config Wizard
Comment 3 rokosta 2023-08-02 14:49:29 UTC
I get this window.
If I check both check boxes and press "Check hardware acceleration" I get "No hardware encoders found." message
Comment 4 Bernd 2023-08-02 14:51:43 UTC
(In reply to rokosta from comment #3)
> I get this window.
> If I check both check boxes and press "Check hardware acceleration" I get
> "No hardware encoders found." message

And what about the missing codec?
Comment 5 rokosta 2023-08-02 15:26:15 UTC
(In reply to Bernd from comment #4)
> (In reply to rokosta from comment #3)
> > I get this window.
> > If I check both check boxes and press "Check hardware acceleration" I get
> > "No hardware encoders found." message
> 
> And what about the missing codec?

Sorry, not sure what you mean. Any steps I can perform to provide you with some useful info to help triage this issue? Any actions/command that I should run?
Comment 6 rokosta 2023-08-02 15:29:46 UTC
> Sorry, not sure what you mean. Any steps I can perform to provide you with
> some useful info to help triage this issue? Any actions/command that I
> should run?

Oh, wait, I get it. Entry is still red, same message "Unsupported video codec: libx264"
Comment 7 Bernd 2023-08-02 16:08:33 UTC
(In reply to rokosta from comment #6)
> > Sorry, not sure what you mean. Any steps I can perform to provide you with
> > some useful info to help triage this issue? Any actions/command that I
> > should run?
> 
> Oh, wait, I get it. Entry is still red, same message "Unsupported video
> codec: libx264"

Hmm, close and open Kdenlive again: any changes? Does this also happen with the appimage?
Comment 8 rokosta 2023-08-02 16:35:00 UTC
Created attachment 160691 [details]
appimage works
Comment 9 rokosta 2023-08-02 16:37:58 UTC
> Hmm, close and open Kdenlive again: any changes? Does this also happen with
> the appimage?

Hey, I downloaded and ran appimage and it is ok!
Comment 10 rokosta 2023-08-02 16:41:30 UTC
> Hmm, close and open Kdenlive again: any changes? Does this also happen with
> the appimage?

Restart did not work tho(
Comment 11 Bernd 2023-08-02 16:45:36 UTC
(In reply to rokosta from comment #9)
> > Hmm, close and open Kdenlive again: any changes? Does this also happen with
> > the appimage?
> 
> Hey, I downloaded and ran appimage and it is ok!

Good. So I suspect that installing ffmpeg-6 thru zypper (???) may have botched it. Try to install from a trusted source or through your package manager or SW store.

Please close this bug report by changing the status.
Comment 12 rokosta 2023-08-02 18:18:34 UTC
> Good. So I suspect that installing ffmpeg-6 thru zypper (???) may have
> botched it. Try to install from a trusted source or through your package
> manager or SW store.
> 
> Please close this bug report by changing the status.

Not sure what you mean, zypper is main package manager of openSUSE Tumbleweed... and ffmpeg-6 was preinstalled, I just removed it and installed again - reinstalled, just in case that would fix the issue.

I will not close this bug yet
Comment 13 Bernd 2023-08-02 19:34:42 UTC
(In reply to rokosta from comment #12)
> > Good. So I suspect that installing ffmpeg-6 thru zypper (???) may have
> > botched it. Try to install from a trusted source or through your package
> > manager or SW store.
> > 
> > Please close this bug report by changing the status.
> 
> Not sure what you mean, zypper is main package manager of openSUSE
> Tumbleweed... and ffmpeg-6 was preinstalled, I just removed it and installed
> again - reinstalled, just in case that would fix the issue.
> 
> I will not close this bug yet

Oh, I didn't know that. OpenSUSE is not one of my distros ;-)

Ok to keep the bug open, although the codec is available for me on another distro and in the appimage indicating that it is more a local thing the devs have very little influence on ...
Comment 14 rokosta 2023-08-03 16:38:07 UTC
> Ok to keep the bug open, although the codec is available for me on another
> distro and in the appimage indicating that it is more a local thing the devs
> have very little influence on ...

Well you see openSUSE Tumbleweed and Kdenlive are both made by openSUSE and it is kinda weird that pretty much the most popular rendering preset is not available out of the box. And if it's the case, what should be done to make it available?
Comment 15 Bernd 2023-08-04 14:24:20 UTC
(In reply to rokosta from comment #14)
> Well you see openSUSE Tumbleweed and Kdenlive are both made by openSUSE.

That's news to me. Where did you get this info?
Comment 16 Jean-Baptiste Mardelle 2023-08-08 07:30:53 UTC
By default, OpenSuse removed support for x264 and other codecs because they were afraid of possible patent issues.
See details and solution here:
https://news.opensuse.org/2023/01/24/opensuse-simplifies-codec-install/