#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Location
    Raleigh NC
    Posts
    89
    Rep Power
    10

    psp video program


    I dont know how many know what pspvideo9 does but for windows it converst video formats from whatever they are to mp4 for use on a psp. Currently there is no simple program to do this in linux so I figured I would start by writing a front end for ffmpeg and that would be the simplest solution. anyway here is the code so far:
    Code:
    import os
    import sys
    
    print"/t /t PSPLIN 1.0"
    
    print "Enter Video File For Conversion"
    host_video_1 = raw_input(': ')
    print "Enter Filename For Exported Video"
    export_video_1 = raw_input(': ')
    
    print "/n Video Is Currently Being Exported..."
    os.system('ffmpeg -i '<host_video_1> '-an -b 300 -vcodec mpeg4 '<export_video_1>)
    print "Congradulations! Video Exported"
    
    raw_input ("\n\nPress The Enter Key To Exit.")
    anyway trying to execute this very very simple version of the program it returns a syntax error in the os.system line at the host_video_1 portion. I have tried everyway imaginable to add these lines into that but still it returns a syntax error. Any suggestions?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Location
    Colorado, USA
    Posts
    68
    Rep Power
    10

    try this


    try it this way

    Code:
    import os
    import sys
    
    print"/t /t PSPLIN 1.0"
    
    print "Enter Video File For Conversion"
    host_video_1 = raw_input(': ')
    print "Enter Filename For Exported Video"
    export_video_1 = raw_input(': ')
    
    print "/n Video Is Currently Being Exported..."
    os.system('ffmpeg -i ' + host_video_1 + '-an -b 300 -vcodec mpeg4 ' + export_video_1)
    print "Congradulations! Video Exported"
    
    raw_input ("\n\nPress The Enter Key To Exit.")

IMN logo majestic logo threadwatch logo seochat tools logo