. I have installed libx264 via Yast but still the same problem. can anyone help in this please.
Or even provide me another solution other than ffmpeg to easily convert videos via command line? In have openSUSE 12.3 min server only install.
And where did you install ffmpeg and its libraries (libav*) from?
I.e. post your repo list and the package versions:
zypper lr -d
rpm -qa ffmpeg* libav*
You need to add the Packman repo and do a full switch to it to make sure all ffmpeg packages are uncrippled (the openSUSE packages do not support non-free codecs, like x264).
Or even provide me another solution other than ffmpeg to easily convert videos via command line?
You probably could use the “x264” encoder utility that is part of libx264 (in the separate package x264), I’m not sure about the command line though.
But if ffmpeg doesn’t “work”, x264 probably will not be able to read the input file either (as it uses ffmpeg’s libraries for that AFAIK, for some formats at least).
As you can see in my previous post, ffmpeg from packman is compiled with the libx264 encoder, the 3.0 version at least.
But: ffmpeg is just a command line frontend. You need all the corresponding libraries from Packman as well.
So, as I already wrote, do a full switch to Packman (even if you did it already some time ago), and it should work.
You can either use YaST or zypper for that, see: https://en.opensuse.org/SDB:Vendor_change_update#Full_repository_Vendor_change
OTOH, Packman offers several ffmpeg versions, so it might be interesting to know which one you installed in particular:
showing it has decoders only. The easiest solution is to install the Packman version of ffmpeg and associated libraries (change of vendor in YAST) - and make sure you have x264 itself installed too. Or build from source, but that’s a bit of a job.
Your listing of ffmpeg -codecs | grep 26 should then look something like this