A .mp4 converter with command line support? [closed]

I would like to find an application that I can use to convert any video format in .mp4 or .ogg from the command line.

I don't mind it cost money as long it worth it.

Which one would you recommend?

4 Answers

Handbrake may meet your needs.

1

I think you could take a look at Avidemux, it is multiplatform, supports many formats (included mp4) and supports command line interface. There is also a good scripting engine if you need more powerful usage.

2

VLC Media Player provides support for video conversion. Though it is not as powerful as dedicated tools like Handbrake, it is commonly installed in most personal computers (i.e. you don't have to download software) and supports a plethora of video input formats. To use VLC for your purpose, see the VLC Wiki.

An example command on Windows may be this:

"C:\Program Files\VideoLAN\vlc.exe" --no-repeat --no-loop -vvv "C:\Movies\my_video.avi" --sout=#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=file,mux=ts,dst="C:\my_video_output.mpg"}

Various other programs can also be used.

FFmpeg is "A complete, cross-platform solution to record, convert and stream audio and video."

It is used in almost every open source projects nowadays and is included in almost every Linux distro. It also has Windows versions

You Might Also Like