I want to play .wmv files on Ubuntu, but it seems these files are proprietary and are not playable under Windows. So downloaded the ffmpeg source code and compiled it. Now, ffmplay
is able to play .wmv files. I want to know how I can use ffmpeg codecs with VLC player, or with Ubuntu's default video player.
Unless we need a new or special version we do not have to compile the video tool FFmpeg .
It is available for installation from the repositories. When installed from there it will also install the codecs needed to play most formats.
At present this will be the package libavcodec-extra-53 which can also be installed without ffmpeg if we only needed the codecs for other applications.
After installation ffmpeg will list all supported codecs including WMV versions with:
Due to a bug we will get this misleading message:
We can ignore this as ffmpeg is still being supported and will be further developed too. But we can of course also install and run avconv which has almost the same functionality and command syntax.
You will want to get h264 since that's what VLC uses. To get the codec for ffmpeg, you will need to recompile with the lib. I wrote bash script for that to download and do all of compiling of multi-libs.
https://gist.github.com/faroncoder/7935868
You will need to chmod +x the file before firing off the script.