View Single Post
Old 09-20-2006, 06:22 PM   #20 (permalink)
danimal4326
Knows Where the Search Button Is
 
Join Date: Aug 2006
Model: 8100
Carrier: T-Mobile
Posts: 38
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm using the command line version above, but i've created a Batch script that sits on my desktop. To convert, all i need to do is drave a video file to is and it converts automagically:

Create a new text file on the desktop, and paste the below code to it. Save this as Convert Video.bat or similar.

You will need to adjust the paths below. The first one is the path to mencoder.exe and the second is the folder to put the converted video.

The script will take a file "my_video.mpeg" and re-encode it for the 8100 moving it to a folder and naming it "my_video.avi

My scripts puts it into a folder on the desktop called Video.. The tricky part was using the "%~n1" variable. This will give you just the filename of the file dropped onto the batsh file, without path and extension.

Code:
@echo off

echo %1

C:\Progra~1\eRight~1\SUPER\mencoder\mencoder.exe -vf scale=320:240 %1 -o "D:\Profiles\w13760.FSL\Desktop\Video\%~n1.avi" -of avi -ofps 24 -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vbitrate=250:acodec=mp3:abitrate=64

PAUSE
Offline   Reply With Quote