sinthgunt
index
/home/tjansson/Documents/Programmering/sinthgunt/sinthgunt.py

This is a program to ease the use of ffmpeg on Ubuntu based machines

 
Modules
       
xml.etree.ElementTree
gobject
gtk
os
pygtk
subprocess
sys
time
urllib

 
Classes
       
sinthgunt

 
class sinthgunt
     Methods defined here:
__init__(self)
Reads the information from glade file and connects the buttons with
the functions.
aboutdialog(self, widget)
Defines the about information about the program.
activate(self, widget)
This function starts the selected operation of the current selected
file.
checkfile(self)
This function is executed many times to check on the progress of
the conversion.
download(self, url, output)
Copy the contents of a file from a given URL to a local file.
download_youtube(self)
This function finds the flash video source and title from the youtube page entered by the user.
ffmpeg_getcodecs(self)
This function determines which codecs the user has installed by looking at the output from "ffmpeg -formats"
ffmpeg_getinfo(self, widget)
This function finds the information about the current selected
file. Displays number of frames, audio codec and video codec.
 
Get ffmpeg info function. For determining which version of ffmpeg the
user has installed.
file_getinfo(self)
This function finds the information about the current selected
file. Displays number of frames, audio codec and video codec.
load_conf_file(self)
This function reads the configuration xml-file and populates the
Preset menu with the conversion options.
menuopenfile(self, widget)
Defines the filters used when selecting new file.
menuopenyoutube(self, widget)
Dialog that allows the user to enter a YouTube url. Once the user presses the 'ok' button, the download will begin
menuradiobuttonselect(self, widget)
Function that detects which menu radio button has been selected.
no_file_selected_dialog(self, widget)
If no file have been selected to send to ffmpeg this warning will
be displayed.
parseXML(self)
Parses the XML file to gather the different conversion presets into
        categories which will be inserted into the gui. 
(planned) In the future, this function should also test wether the preset will work with the version of ffmpeg avaliable to the user. The result should be included in the array presets e.g. by using row = [' ',' ',' ',' ',[],'encoding=True','decoding=False'] syntax. 
This would significantly improve the clarity of the load_conf_file(self) function.
quit_program(self, widget)
When the program is closed the stop function and the logfile is
updated and program is terminated.
setinput(self, widget)
This function generates the thumbnail and saves it to the /tmp
folder. It also extracts the information about the movie from ffmpeg
and provides it to the screen.
setoutput(self, widget)
This functions gets the output filename from the GUI and provides
it for the rest of the program.
stop(self, widget)
Tried to kill the conversion process before it is done.
unsupported_codec_dialog(self, widget)
If an unsupported codec has been selected this warning will
be displayed.

 
Data
        DATA_DIR = '/usr/share/sinthgunt/'
logfile = <open file '/home/tjansson/.sinthgunt.log', mode 'a' at 0x83a0608>
logfile_filename = '/home/tjansson/.sinthgunt.log'
logo_filename = '/usr/share/sinthgunt/logo.png'