As we know FFMPEG is a great tool to deal with multimedia data like video, audio and images. Usually I use FFMPEG on ubuntu servers but somehow I got a project which was already developed and was running on centos server.
My task was to combine them multiple .webm video files into a single video file.
In first attempt I generally installed the FFMPEG by using the following command "yum install ffmpeg". Definitely I was having root user access. But I was getting libvpx encoder error and VP8 and VP9 not supported errors.
After that I following steps:
Download FFMPEG installer : You can download this installer in any of directory and after installation you can delete the installer.
1
|
wget https://raw.githubusercontent.com/q3aql/ffmpeg-install/master/ffmpeg-install
|
Then make the file executable:
1
|
chmod a+x ffmpeg-install
|
Now to install the release version:
1
|
./ffmpeg-install --install release
|
Congrats, FFMPEG has been installed. To verify this please run the following command:
1
|
ffmpeg -version
|
My FFMPEG version has been installed now. I was just needed to concat multiple .webm videos into single .webm video.
For that I created a text file named as videos.txt which was containing the list of video names which was needed to concat. Sample is below:
videos.txt
1
2
3
4
|
file 1.webm
file 2.webm
file 3.webm
file 4.webm
|
To concat all these .webm video files into single file I run the below command.
1
|
ffmpeg -f concat -safe 0 -i videos.txt -c copy output.webm
|