VLC Player Doesn't Support Some Codecs (I Guess)

When I first installed it it said “VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use vlc-wrapper (make sure it is Set-UID root and cannot be run by non-trusted users first).”

Then I wrote

sed -i 's/geteuid/getppid/' /usr/bin/vlc

to terminal and it launched. But now I got these errors.

 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)
 


I don’t know what to do how can I solve it?

to get patented codecs working you need to add and do a full vendor change with the packman repo

zypper ar -f ftp://packman.inode.at/suse/openSUSE_Tumbleweed/ packman
zypper dup --from packman
zypper in vlc-codecs libxine2-codecs

vlc-codecs and libxine2-codecs do not exists in obs and a vendor change will not pull them so you need to install them manually