[Tutor] Looking for Clues to Make a Program Produce avi Files Instead ...
David
david at abbottdavid.com
Wed Oct 15 17:32:49 CEST 2008
David wrote:
> You could use mencoder, part of mplayer;
> mencoder -oac mp3lame -ovc lavc -vf scale=0:0:0:0:0:0:qpal
> somemovfile.mov -o outavifile.avi
>
> Here is a program to convert ogg theora to avi;
>
> #!/usr/bin/python
> #Filename = ogg_to_avi.py
>
> import os,sys
>
> print '\n\togg theora video to avi video\n'
> ogg = raw_input('Enter the ogg file to convert: ')
> avi = raw_input('Enter the avi to be created: ')
>
> os.system("mencoder %s -ovc lavc -oac mp3lame -o %s" % (ogg, avi))
>
> if os.path.exists(avi):
> print '\n\tYour', avi, 'has been created.\n'
> sys.exit()
>
> else:
> print 'error, something went wrong!'
> sys.exit()
>
>
>
--
powered by Gentoo/GNU Linux
http://linuxcrazy.com
More information about the Tutor
mailing list