One of the command to accomplish this, is called mediainfo. It is not installed by default, so we have to install it first.
$ sudo apt update && sudo apt install mediainfo -y
$ mediainfo myfile.mp4
Linux is for everybody. Lets enjoy it.
One of the command to accomplish this, is called mediainfo. It is not installed by default, so we have to install it first.
$ sudo apt update && sudo apt install mediainfo -y
$ mediainfo myfile.mp4
To extract audio from a video, here is the command
$ ffmpeg -i video.mp4 -q:a 0 -map a audio.mp4
$ ffmpeg -i video.mp4 -ss 00:03:00 -t 00:00:45.0 -q:a 0 -map a audio.mp4
To easily split (or cut some part) of video using command line, a tool called ffmpeg can be used.
$ sudo apt -y install ffmpeg
$ ffmpeg -i mymovie.mp4 -ss 00:01:00 -t 00:00:30 myeditedmovie.mp4
To combine audio and video files into a single file, we can use ffmpeg tool.
First, we need to install ffmpeg
$ sudo apt update && sudo apt install ffpmeg
Then we can combine both of the files into a single file (-codec is to tell ffmpeg to just copy both the audio and video codecs from the sources into the combined file)
$ ffmpeg -i audio.mp3 -i video.mp4 -codec copy audiovideo.mp4
ffmpeg is a very powerful media converter but unfortunately it is text based. For people like me who use terminal as much as GUI, using ffmpeg in its original nature, which is text based is ok. You can refer to my post about converting flv to avi using ffmpeg. But for people who want to harness the power of ffmpeg yet not familiar of using terminal, mobile media cenverter from miksoft is a good option. This application is a GUI for mmpeg, so you can expect some of the goodness of ffmpeg if not all of them. You can download this application here, where it is available for windows and linux. For debian based linux user, the application is available in .deb form where you can install easily. For other linux user, a little bit of extra work has to be done to start using this application.
A few of mobile media converter features are drag n drop, using ffmpeg engine, it is free of charge, it has integrated youtube downloader and it is available for linux and windows. Supported formats are:
- Desktop Audio: mp3, wma, ogg, wav
- Mobile Audio: amr, awb
- Desktop Video: wmv, mpeg, wmv, avi, flv
- Mobile Video: 3gp, mp4
Installation instruction is available here under Help.
Below are screenshots of the application in ubuntu 8.10
and windows vista
Codecs, is an important element when we are talking about playing and watching multimedia files. To install codecs on linux box, it is an easy task. Just follow the below instructions :-) :
In linux we have a good tool, although text based, to convert between various video format. The tool is ffmpeg. This article will guide you on how you can convert flv format video to avi and mpg.
1. change your directory to the directory where your flv video is located.
2. run ffmpeg command:
$ ffmpeg -i input.flv output.avi
where -i stands for input and output.avi is the output file in avi or mpg.
3. For more advanced setting, you can use the command below
$ ffmpeg -i input.flv -ab 56 -ar 22050 -b 500 -s 320x240 output.mpg
where -ab is audio bitrate with default of 64kbps
-ar is audio samplerate with default of 44100Hz
-b is video bitrate with delault of 2000kbps
-s is size with default of 160x128px