![convert mp4 into avi in linux convert mp4 into avi in linux](https://www.addictivetips.com/app/uploads/2020/08/vl.png)
![convert mp4 into avi in linux convert mp4 into avi in linux](https://www.nucleustechnologies.com/blog/wp-content/uploads/2020/06/mp4toavi3.png)
My 1.5GHz Centrino laptop took about 25 minutes to convert a file with a one-hour runtime that was encoded in XviD. This process should take some time to finish. If you don’t have a wide-screen TV, you should encode your file with an aspect ratio of 4:3 by replacing aspect=16/9 with aspect=4/3.įor more information, check the MPlayer’s man page, which provides detailed explanations about each option used in these commands. If you want to create a National Television System Committee (NTSC) DVD, which is the North American video standard, replace scale=720:576 with scale=720:480, keyint=15 with keyint=18, and -ofps 25 with -ofps 30000/1001. PAL is used in most of Europe (except France). The previous commands create an MPEG-2 file in phase-alternating line (PAL) format with an aspect ratio of 16:9. If it isn’t encoded in AC3, run this command: mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup \-srate 48000 -af lavcresample=48000 \-lavcopts vcodec=mpeg2video:vrc_buf_size=1835 If it returns hwac3, the audio part of your file is encoded in AC3, and you can convert the file to MPEG-2 with the following command: mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup \-lavcopts vcodec=mpeg2video:vrc_buf_size=1835 Your_video.avi 2>&1 | grep AUDIO_FORMAT | cut -d ‘=’ -f 2 Run this command to check the audio format of the file: If the audio on your file is already encoded in AC3 format, you can use it as is without re-encoding it. You can burn the final files to a DVD disc with the help of the growisofs utility from the dvd+rw-tools suite.įirst, you must convert your file to MPEG-2 for the video and to AC3 for the audio, in order to be compliant with the DVD video specifications. Both programs provide adequate documentation about the installation. Compiling the programs from source isn’t difficult, as long as you get their dependencies right.
Convert mp4 into avi in linux install#
Packages for both programs are available for most Linux distributions and BSDs, so you can install them on your favorite OS easily.