I've had some good luck converting videos the past couple of days with
this script I hacked up (clearly some room for improvement):
#!/usr/bin/python
import sys
import os
abitrate = 128
vbitrate = 512
for input in sys.argv[1:]:
output = input[:-3] + "mp4"
command = "mencoder -of lavf -lavfopts format=mp4 -vf-add
dsize=480:352:2:16 -vf-add scale=0:0 -oac lavc -ovc lavc -lavcopts
aglobal=1:vglobal=1:acodec=libfaac:abitrate=" + str(abitrate) +
":vcodec=libx264:vbitrate=" + str(vbitrate) + ":keyint=25 -o " +
output + " " + input
os.system(command)
On Oct 23, 2:25 pm, Nikkelitous <[EMAIL PROTECTED]> wrote:
> I've been trying to encode videos to work in thevideoplayer under
> Linux but haven't been able to get any to work. I can get audio fine,
> but no options I can find work withvideo. I have them at 480x320 and
> have tried both smaller and larger. I've been using the MP4 file
> format. I've only tried mencoder but I've tried all the H263 and H264
> options.
>
> Does anyone have any idea how to encode the videos to work using
> Linux? I'd prefer mencoder or ffmpeg but I could use other tools if
> necessary. I would definitely prefer a command line option as I've
> got a lot of files, but a GUI one can tide me over so is welcome as
> well.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---