Help with python

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Linkiboy, Aug 22, 2008.

Aug 22, 2008

Help with python by Linkiboy at 2:39 AM (619 Views / 0 Likes) 0 replies

  1. Linkiboy
    OP

    Member Linkiboy GBAtemp Testing Area

    Joined:
    May 14, 2006
    Messages:
    4,888
    Country:
    United States
    I'm too lazy to register at a programming forum and since we have a bunch of knowledgeable programmers here I thought it wouldn't hurt to ask.

    Code:
    import sys
    import os
    
    comm=os.popen("ffmpeg -i mymovie.avi -b 2048k -vcodec libxvid -acodec aac mymovie.mov")
    
    while 1:
    ÂÂÂÂÂÂÂÂfor line in comm.read():
    ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprint line
    What this code is SUPPOSED to do is run ffmpeg to convert a video file, and output it(the conversion log) on the screen. The conversion goes fine, file is outputted correctly, but I don't get any output(log) on the screen.

    On a side note, what library/codec would I use for MPEG-4?
     

Share This Page