Encoding to H.264 with VLC using SendTo

Want a quick and easy way to convert a video to H.264?

Copy the below text and save it to a batch file. I called this one H264_480_270.bat. Stick it in your SendTo folder which should be C:\Documents and Settings\<username>\SendTo if you are using XP. Of course, you’ll need VLC installed.

If you want to change the output resolution or bitrate, modify the appropriate values at the beginning of the script.

When right-clicking a video, navigate to “Send To” and then choose your batch file. After encoding is done, you’ll find a new file in the same folder but with “.mp4″ tacked on the end.

One downside is that the H.264 video VLC produces is not compatible with the iPod/iPhone. In order for it to work, you need to change the codec to normal MPEG4 (mp4v).

Note: The last three lines should be a single line.

For more information on encoding video for iPod, check this out.
—–

@SET vlcpath=”C:\Program Files\VideoLAN\VLC\vlc.exe”
@SET vcodec=h264
@SET bitrate=1024
@SET width=480
@SET height=270
@SET acodec=mp4a
@SET ab=128
%vlcpath% -I dummy -vvv %1 –sout=#transcode{vcodec=%vcodec%, vb=%bitrate%, width=%width%, canvas-height=%height%, acodec=%acodec%, ab=%ab%, channels=2}:standard{access=file,mux=mp4,dst=%1.mp4} vlc:quit

  • Rosanna Costa

    nice article! nice site. you're in my rss feed now ;-)
    keep it up

blog comments powered by Disqus

Add a comment on FriendFeed