Convert video to vlc command line

I need to mass-convert the number of videos from my VCR (MOD) to a more general file type (i.e. MP4) I know that VLC can do this using the command line, but I did not find the correct parameters. Instead of giving me use cases, could you help me find HOW to find options? Generally, how to find the "true" name of video and audio codecs?

+7
command line vlc
source share
2 answers

To use VLC to convert from MOD to MP4, you can use the following command:

vlc -I dummy -vvv "MyVid.mod" --sout=#transcode{vcodec=h264,vb=1024,acodec=mp4a,ab=192,channels=2,deinterlace}:standard{access=file,mux=ts,dst=MyVid.mp4} 

... where:

-I dummy - VLC GUI not showing
-vvv - gives you verbose output
- sout - indicates the parameters that should be used when encoding in MP4

You can view a complete list of VLC command line options by running vlc -H from the command line. There is also a complete list on the Internet at https://wiki.videolan.org/VLC_command-line_help

If you do not have a VLC installed locally, or you want to redirect bulk video conversions, you can always use the file conversion API, for example https://developers.zamzar.com . This service provides a REST'ful API for converting files, and mod to mp4 provides a supported conversion.

Full disclosure: I am the lead developer of the Zamzar API.

+5
source share

Thank you, your post will help me. And after I find the best answer for me. On Windows, if you want to convert multiple files:

 for %%a in (*.mov) do "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy -vvv %%a --sout=#transcode{vcodec=h264,vb=1024,acodec=mp4a,ab=192,channels=2,deinterlace}:standard{access=file,mux=ts,dst=%%a.mp4} vlc://quit 
0
source share

All Articles