Commit 5a25dfee authored by uraeus's avatar uraeus

Switch to user preset directory

parent 16f82f7f
presetdir = $(datadir)/gstreamer-0.10/presets
presetdir = $(datadir)/transmageddon/presets
preset_DATA = ffenc_ac3.prs GstFaac.prs GstVorbisEnc.prs \
ffenc_flv.prs GstLameMP3Enc.prs \
ffenc_h263p.prs GstXvidEnc.prs \
......
......@@ -52,6 +52,8 @@ class Transcoder(GObject.GObject):
self.containercaps=Gst.caps_from_string("application/x-id3")
self.container=Gst.caps_from_string("application/x-id3")
# set preset directory
Gst.preset_set_app_dir("/usr/share/transmageddon/presets/")
# Choose plugin based on Codec Name
# or switch to remuxing mode if any of the values are set to 'pastr'
......@@ -160,8 +162,7 @@ class Transcoder(GObject.GObject):
# put together remuxing caps to set on uridecodebin if doing
# passthrough on audio or video
print "audiopassthrough is " +str(self.audiopasstoggle)
print "videopassthrougth is " +str(self.videopasstoggle)
if self.audiopasstoggle or self.videopasstoggle:
self.remuxcaps = Gst.Caps.new_empty()
if self.audiopasstoggle:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment