Search This Blog

Thursday, February 16, 2017

VLC Transcode

Disclaimer: It's easy to have less-than-optimal-settings and create resulting files with jumpy video and audio. If you run into problems, take a look at your settings. There are some additional references at the end.


My Story...



Earlier I created a video demonstrating an issue for another support group. But due to size limitations in email, I needed to shrink it down a little bit.

Using VideoLAN's VLC I can use a command similar to the following... (which I stick in a TranscodeIMG_7401.bat file)
"C:\Program Files (x86)\VideoLAN\VLC\vlc" "e:\data\video\IMG_7401.MOV" :sout=#transcode{vcodec=h264,vb=1024,acodec=mp2a,ab=192,scale=0.25,channels=2,deinterlace,audio-sync}:std{access=file,mux=ps,dst="e:\data\video\IMG_7401.MPG"}  vlc://quit
This creates MPEG output at 1/4 the original canvas size.

As you can see, the original file IMG_7401.MOV, with a ~61 seconds of video, is just over 100MB. The resulting output, IMG_7401.MPG, is just over 9MB.











Interestingly, the MPEG compression is the real gainer in space. The canvas size adjustment only affected the output slightly and apparently increased it! IMG_7401-2.MPG is at the original canvas size.

Here is TranscodeIMG_7401-2.bat's contents...

"C:\Program Files (x86)\VideoLAN\VLC\vlc" "e:\data\video\IMG_7401.MOV" :sout=#transcode{vcodec=h264,vb=1024,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:std{access=file,mux=ps,dst="e:\data\video\IMG_7401-2.MPG"}  vlc://quit


The Files


I suggest you download the files and try them in your viewer to see the difference.


If you don't like that interface try: https://drive.google.com/drive/folders/0B9hFc_9eg0ciazdfZVlnemZ2eXc


Additional References...


VideoLAN... http://www.videolan.org Go here to Download VLC
Docs... https://wiki.videolan.org/Documentation
Forums... https://forum.videolan.org
Google Search... https://www.google.com/search?&q=vcl%20transcode%20jumpy%20video