@echo off rem To use, simply drag and drop a video onto this .bat file, and it will rem be transcoded to a file with the same filename with .m2v appended. rem Some files will not be successfully transcoded. This is due to the rem fact that mpeg2 video only allows several specific framerates. rem If your source file frame rate doesn't comply, try adding fps=25 rem or fps=29.97 in #transcode{...,}:std{...} rem Set width and height below to match your player and the file set WIDTH=320 set HEIGHT=240 rem Recommended sizes for various players and video aspects: rem Players LCD Size 4:3 Video 16:9 Video rem iriver H300 & ipod Color/Photo 220x176 224x176 224x128 rem ipod Nano 176x132 176x128 176x96 rem ipod Video & Gigabeat 320x240 320x240 320x176 rem iaudio X5 & iriver H10 20GB 160x128 160x128 160x96 rem iriver H10 5/6GB 128x128 128x96 128x80 rem Set video Bitrate - 600kbits/sec is the default, but you can set it rem lower for smaller screens. set VIDBR=600 rem Set audio Bitrate - 128kbits/sec is the default. set AUDBR=128 rem You may want to change the path to vlc.exe below if it is not installed rem in this location rem If you run into any encoding problems, and VLC just opens & closes, you can rem disable the "auto quit after transcoding" function by removing the rem "vlc:quit" at the end. "C:\Progra~1\VideoL~1\vlc.exe" %1 :sout=#transcode{vcodec=mp2v,vb=%VIDBR%,width=%WIDTH%,height=%HEIGHT%,acodec=mp3,ab=%AUDBR%,samplerate=44100,audio-sync}:std{access=file,mux=ps,dst=%1.mpg}