~tristan-brindle/oggconvert/trunk

« back to all changes in this revision

Viewing changes to OggConvert/ocv_main.py

  • Committer: Tristan Brindle
  • Date: 2008-09-12 22:41:32 UTC
  • Revision ID: t.c.brindle@gmail.com-20080912224132-tc1ozx0eibss4ug4
Just some minor things:

* Show a message in the progress bar for the first three seconds rather 
than being blank

* Reword the "authors" bit of the about dialogue so that the wrong 
people don't get e-mailed about OggConvert :)

* We've got a lovely SVG logo, so let's show it off in the about 
dialogue

* The transcoder now accepts any URI for output, as it does for input. 
This means that in theory it can save to remove locations. As with 
input, this mostly works, but is slightly confused by the fact that 
the GTK file selector uses GIO, but GStreamer uses Gnome-VFS (at least 
on my system). Hopefully future GStreamer versions will bump the rank of 
GIO so that gets used instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        self._outfile_folder = self._save_folder_button.get_filename()
132
132
        self._outfile_name = self._outfile_entry.get_text()
133
133
        self._outfile = os.path.join(self._outfile_folder, self._outfile_name)
 
134
        # Should use urlparse lib for this
 
135
        output_uri = "file://" + urllib.unquote(self._outfile)
134
136
 
135
137
        # Check destination is writable
136
138
        if not os.access(self._outfile_folder, os.W_OK):
168
170
        vquality = self._video_quality_slider.get_value()
169
171
        aquality = self._audio_quality_slider.get_value()
170
172
        tc = Transcoder(
171
 
            self._input_uri, self._outfile, format, vquality, aquality,
 
173
            self._input_uri, output_uri, format, vquality, aquality,
172
174
            container)
173
175
        pr = ProgressWindow(tc, self._input_uri, self._outfile)
174
176
        self._window.hide()
188
190
        if not self._input_uri == None:
189
191
            # gtk.FileChooser.get_uri returns an escaped string, which is not
190
192
            # what we want, so this hack uses urllib to change it back.
191
 
            self._input_uri = urllib.url2pathname(self._input_uri)
 
193
            self._input_uri = urllib.unquote(self._input_uri)
192
194
            gobject.idle_add(self._check_media,self._input_uri)
193
195
            
194
196
        folder = filechooser.get_current_folder()