I am using Fedora 40. I can’t get MP4 files to record or play. For example, when I try to play an MP4 file with vlc, I get:
Codec not supported:
VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
Codec not supported:
VLC could not decode the format "mp4a" (MPEG AAC Audio)
Codec not supported:
VLC could not decode the format "mp4a" (MPEG AAC Audio)
Codec not supported:
VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))
The problem is not associated with any particular MP4 file or program. It is with the MP4 format in general. None of the programs I’ve been using to create, convert, or play MP4 files work. I’ve spent a ton of time trying everything I can think of. Clearly something in the sequence I am using to load up my OS is creating an environment that has many problems.
So, I haven’t tried on a vanilla install because that’s not what I use. I add things like LyX, LaTeX, Java, intellij, emacs, and a ton of other stuff. I don’t have a month of time to figure out where the conflict is occurring. And whether or not it works on a raw install is irrelevant.
If you do a new clean install, add the codecs needed, and the video player then works it proves the media plays well.
If you then add one or more of the apps you indicated and the MP4s no longer play you can definitively say that installing those packages broke the ability to play multimedia.
My suggestion –
Start clean and add the multimedia packages mentioned to get the MP4 videos to play then as you add each of the extra apps test that it still works.
Most of us have no problems with playing MP4s, and in my case I only added the packages ffmpeg and libavcodec-freeworld both from rpmfusion for every media I have tried since to “just work”.
Since vlc moved to fedora it isn’t a good choice, they build it against an unsupported ffmpeg version which means it has no hardware acceleration.
Installing rpmfusion ffmpeg should be enough to make it support most codecs (mp4 is just a container format).
I note from another post you are using nvidia, mpv would be much better as it supports native nvidia hardware acceleration (nvdec).It has several frontends eg: celluloid etc