-
Notifications
You must be signed in to change notification settings - Fork 1
/
sinthgunt.html
116 lines (90 loc) · 9.48 KB
/
sinthgunt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module sinthgunt</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>sinthgunt</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/tjansson/Documents/Programmering/sinthgunt/sinthgunt.py">/home/tjansson/Documents/Programmering/sinthgunt/sinthgunt.py</a></font></td></tr></table>
<p><tt>This is a program to ease the use of ffmpeg on Ubuntu based machines</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="xml.etree.ElementTree.html">xml.etree.ElementTree</a><br>
<a href="gobject.html">gobject</a><br>
<a href="gtk.html">gtk</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="pygtk.html">pygtk</a><br>
<a href="subprocess.html">subprocess</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
<a href="time.html">time</a><br>
<a href="urllib.html">urllib</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="sinthgunt.html#sinthgunt">sinthgunt</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="sinthgunt">class <strong>sinthgunt</strong></a></font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="sinthgunt-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Reads the information from glade file and connects the buttons with<br>
the functions.</tt></dd></dl>
<dl><dt><a name="sinthgunt-aboutdialog"><strong>aboutdialog</strong></a>(self, widget)</dt><dd><tt>Defines the about information about the program.</tt></dd></dl>
<dl><dt><a name="sinthgunt-activate"><strong>activate</strong></a>(self, widget)</dt><dd><tt>This function starts the selected operation of the current selected<br>
file.</tt></dd></dl>
<dl><dt><a name="sinthgunt-checkfile"><strong>checkfile</strong></a>(self)</dt><dd><tt>This function is executed many times to check on the progress of<br>
the conversion.</tt></dd></dl>
<dl><dt><a name="sinthgunt-download"><strong>download</strong></a>(self, url, output)</dt><dd><tt>Copy the contents of a file from a given URL to a local file.</tt></dd></dl>
<dl><dt><a name="sinthgunt-download_youtube"><strong>download_youtube</strong></a>(self)</dt><dd><tt>This function finds the flash video source and title from the youtube page entered by the user.</tt></dd></dl>
<dl><dt><a name="sinthgunt-ffmpeg_getcodecs"><strong>ffmpeg_getcodecs</strong></a>(self)</dt><dd><tt>This function determines which codecs the user has installed by looking at the output from "ffmpeg -formats"</tt></dd></dl>
<dl><dt><a name="sinthgunt-ffmpeg_getinfo"><strong>ffmpeg_getinfo</strong></a>(self, widget)</dt><dd><tt>This function finds the information about the current selected<br>
file. Displays number of frames, audio codec and video codec.<br>
<br>
Get ffmpeg info function. For determining which version of ffmpeg the<br>
user has installed.</tt></dd></dl>
<dl><dt><a name="sinthgunt-file_getinfo"><strong>file_getinfo</strong></a>(self)</dt><dd><tt>This function finds the information about the current selected<br>
file. Displays number of frames, audio codec and video codec.</tt></dd></dl>
<dl><dt><a name="sinthgunt-load_conf_file"><strong>load_conf_file</strong></a>(self)</dt><dd><tt>This function reads the configuration xml-file and populates the<br>
Preset menu with the conversion options.</tt></dd></dl>
<dl><dt><a name="sinthgunt-menuopenfile"><strong>menuopenfile</strong></a>(self, widget)</dt><dd><tt>Defines the filters used when selecting new file.</tt></dd></dl>
<dl><dt><a name="sinthgunt-menuopenyoutube"><strong>menuopenyoutube</strong></a>(self, widget)</dt><dd><tt>Dialog that allows the user to enter a YouTube url. Once the user presses the 'ok' button, the download will begin</tt></dd></dl>
<dl><dt><a name="sinthgunt-menuradiobuttonselect"><strong>menuradiobuttonselect</strong></a>(self, widget)</dt><dd><tt>Function that detects which menu radio button has been selected.</tt></dd></dl>
<dl><dt><a name="sinthgunt-no_file_selected_dialog"><strong>no_file_selected_dialog</strong></a>(self, widget)</dt><dd><tt>If no file have been selected to send to ffmpeg this warning will<br>
be displayed.</tt></dd></dl>
<dl><dt><a name="sinthgunt-parseXML"><strong>parseXML</strong></a>(self)</dt><dd><tt>Parses the XML file to gather the different conversion presets into<br>
categories which will be inserted into the gui. <br>
(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. <br>
This would significantly improve the clarity of the <a href="#sinthgunt-load_conf_file">load_conf_file</a>(self) function.</tt></dd></dl>
<dl><dt><a name="sinthgunt-quit_program"><strong>quit_program</strong></a>(self, widget)</dt><dd><tt>When the program is closed the stop function and the logfile is<br>
updated and program is terminated.</tt></dd></dl>
<dl><dt><a name="sinthgunt-setinput"><strong>setinput</strong></a>(self, widget)</dt><dd><tt>This function generates the thumbnail and saves it to the /tmp<br>
folder. It also extracts the information about the movie from ffmpeg<br>
and provides it to the screen.</tt></dd></dl>
<dl><dt><a name="sinthgunt-setoutput"><strong>setoutput</strong></a>(self, widget)</dt><dd><tt>This functions gets the output filename from the GUI and provides<br>
it for the rest of the program.</tt></dd></dl>
<dl><dt><a name="sinthgunt-stop"><strong>stop</strong></a>(self, widget)</dt><dd><tt>Tried to kill the conversion process before it is done.</tt></dd></dl>
<dl><dt><a name="sinthgunt-unsupported_codec_dialog"><strong>unsupported_codec_dialog</strong></a>(self, widget)</dt><dd><tt>If an unsupported codec has been selected this warning will<br>
be displayed.</tt></dd></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>DATA_DIR</strong> = '/usr/share/sinthgunt/'<br>
<strong>logfile</strong> = <open file '/home/tjansson/.sinthgunt.log', mode 'a' at 0x83a0608><br>
<strong>logfile_filename</strong> = '/home/tjansson/.sinthgunt.log'<br>
<strong>logo_filename</strong> = '/usr/share/sinthgunt/logo.png'</td></tr></table>
</body></html>