Commit cbe726fd authored by Christian Schaller's avatar Christian Schaller

finish up some of the preset stuff, still not 100%, but the baseline is falling into place

parent 9460321e
AUTOMAKE_OPTIONS = dist-bzip2
SUBDIRS = bin src common po debian
SUBDIRS = bin src common po debian presets
@INTLTOOL_DESKTOP_RULE@
......
......@@ -70,6 +70,7 @@ bin/Makefile
common/Makefile
common/m4/Makefile
src/Makefile
presets/Makefile
debian/Makefile
po/Makefile.in
transmageddon.spec
......
presetdir = $(datadir)/transmageddon/presets
preset_DATA = ipod.xml ps3.xml linux-computer.xml n800.xml
EXTRA_DIST = ipod.xml ps3.xml linux-computer.xml n800.xml
<?xml version="1.0"?>
<device>
<make>Apple</make>
<model>iPod</model>
<description>Profile for Apple iPod / iPhone</description>
<author>
<name>Joe Example</name>
<email>mr.example@example.org</email>
</author>
<version>1.0</version>
<icon>file://ipod.svg</icon>
<default>Normal</default>
<preset>
<name>Low</name> # This is a low quality output setting
<container>video/quicktime,variant=apple</container>
<extension>m4v</extension>
<audio>
<name>audio/mpeg,mpegversion=4</name>
<passes>
<pass>
quality_low,profile_low_complexity
</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>video/x-h264</name>
<passes>
<pass>
quality_low,profile_baseline
</pass>
</passes>
<width>320, 640</width>
<height>240, 480</height>
<rate>1, 25</rate>
</video>
</preset>
<preset>
<name>Normal</name>
<container>video/quicktime,variant=apple</container>
<extension>m4v</extension>
<audio>
<name>audio/mpeg,mpegversion=4</name>
<passes>
<pass>
quality_normal,profile_low_complexity
</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>video/x-h264</name>
<passes>
<pass>
quality_normal,profile_baseline
</pass>
</passes>
<width>320, 640</width>
<height>240, 480</height>
<rate>1, 30</rate>
</video>
</preset>
</device>
<?xml version="1.0"?>
<device>
<make>Generic</make>
<model>Linux Computer</model>
<description>Profile for Linux Computer</description>
<author>
<name>Christian Schaller</name>
<email>christian.schaller@collabora.co.uk</email>
</author>
<version>1.0</version>
<icon>file://computer.svg</icon>
<default>Normal</default>
<preset>
<name>Low</name>
<container>application/ogg</container>
<extension>ogg</extension>
<audio>
<name>audio/x-vorbis</name>
<passes>
<pass>bitrate=128000</pass>
</passes>
</audio>
<video>
<name>video/x-theora</name>
<passes>
<pass>pass=qual quantizer=27 subme=4 threads=0</pass>
</passes>
<width>320, 640</width>
<height>240, 480</height>
<rate>1, 25</rate>
</video>
</preset>
<preset>
<name>Normal</name>
<container>application/ogg</container>
<extension>ogg</extension>
<audio>
<name>audio/x-vorbis</name>
<passes>
<pass>bitrate=192000</pass>
</passes>
</audio>
<video>
<name>video/x-theora</name>
<passes>
<pass>pass=qual quantizer=21 me=umh subme=6 ref=3 bframes=3 threads=0</pass>
</passes>
<width>320, 1920</width>
<height>240, 1080</height>
<rate>1, 30</rate>
</video>
</preset>
<preset>
<name>Live Input</name>
<container>application/ogg</container>
<extension>ogg</extension>
<audio>
<name>audio/x-vorbis</name>
<passes>
<pass>bitrate=192000</pass>
</passes>
</audio>
<video>
<name>video/x-theora</name>
<passes>
<pass>pass=cbr bitrate=2048 subme=4 threads=0</pass>
</passes>
<width>320, 1920</width>
<height>240, 1080</height>
<rate>1, 30</rate>
</video>
</preset>
<preset>
<name>High</name>
<container>ffmux_mp4</container>
<extension>mp4</extension>
<audio>
<name>faac</name>
<passes>
<pass>bitrate=256000</pass>
</passes>
</audio>
<video>
<name>x264enc</name>
<passes>
<pass>pass=qual quantizer=18 me=umh subme=6 ref=3 bframes=3 8x8dct=1 threads=0</pass>
</passes>
<width>320, 1920</width>
<height>240, 1080</height>
<rate>1, 60</rate>
</video>
</preset>
</device>
<?xml version="1.0"?>
<device>
<make>Nokia</make>
<model>N800</model>
<description>Profile for Nokia 800</description>
<author>
<name>Christian Schaller</name>
<email>uraeus@gnome.org</email>
</author>
<version>1.0</version>
<icon>file://psp.svg</icon>
<default>Normal</default>
<preset>
<name>Low</name> # This is a low quality output setting
<container>video/quicktime,variant=iso</container>
<extension>mp4</extension>
<audio>
<name>audio/mpeg,mpegversion=1,layer=3</name>
<passes>
<pass>
quality_low,profile_low_complexity
</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>video/mpeg,mpegversion=4</name>
<passes>
<pass>
quality_low,profile_baseline
</pass>
</passes>
<width>320, 640</width>
<height>240, 480</height>
<rate>1, 25</rate>
</video>
</preset>
<preset>
<name>Normal</name>
<container>video/quicktime,variant=iso</container>
<extension>mp4</extension>
<audio>
<name>audio/mpeg,mpegversion=1,layer=3</name>
<passes>
<pass>
quality_normal,profile_low_complexity
</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>video/mpeg,mpegversion=4</name>
<passes>
<pass>
quality_normal,profile_baseline
</pass>
</passes>
<width>320, 640</width>
<height>240, 480</height>
<rate>1, 30</rate>
</video>
</preset>
</device>
<?xml version="1.0"?>
<device>
<make>Sony</make>
<model>Playstation 3</model>
<description>Profile for Playstation 3</description>
<author>
<name>Daniel G. Taylor</name>
<email>dan@programmer-art.org</email>
</author>
<version>1.0</version>
<icon>file://ps3.svg</icon>
<default>Normal</default>
<preset>
<name>Low</name>
<container>video/mpegts</container>
<extension>mp4</extension>
<audio>
<name>faac</name>
<passes>
<pass>bitrate=128000 profile=LC</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>x264enc</name>
<passes>
<pass>pass=cbr bitrate=1024 subme=4 threads=0</pass>
</passes>
<width>320, 720</width>
<height>240, 480</height>
<rate>1, 25</rate>
</video>
</preset>
<preset>
<name>Normal</name>
<container>video/mpegts</container>
<extension>mp4</extension>
<audio>
<name>audio/x-ac3</name>
<passes>
<pass>bitrate=196000 profile=LC</pass>
</passes>
<channels>1, 2</channels>
</audio>
<video>
<name>video/x-h264</name>
<passes>
<pass>pass=cbr bitrate=1536 me=umh subme=6 ref=2 threads=0</pass>
</passes>
<width>320, 1920</width>
<height>240, 1080</height>
<rate>1, 30</rate>
</video>
</preset>
</device>
......@@ -207,17 +207,34 @@ class TransmageddonUI (gtk.glade.XML):
devices = presets.get()
device = devices[devicename]
preset = device.presets["Normal"]
if preset.container == "video/quicktime,variant=apple":
if preset.container == "application/ogg":
self.containerchoice.set_active(0)
elif preset.container == "video/x-matroska":
self.containerchoice.set_active(1)
elif preset.container == "video/x-msvideo":
self.containerchoice.set_active(2)
elif preset.container == "video/mpegts":
self.containerchoice.set_active(3)
elif preset.container == "video/x-flv":
self.containerchoice.set_active(4)
elif preset.container == "video/quicktime,variant=apple":
self.containerchoice.set_active(5)
elif preset.container == "video/quicktime,variant=iso":
self.containerchoice.set_active(6)
elif preset.container == "video/quicktime,variant=3gpp":
self.containerchoice.set_active(7)
elif preset.container == "video/quicktime,variant=3gpp":
self.containerchoice.set_active(8)
else:
self.containerchoice.set_active(1)
print "failed to set container format"
self.codec_buttons[self.reverse_lookup(str(preset.acodec.name))].set_active(True)
self.codec_buttons[self.reverse_lookup(str(preset.vcodec.name))].set_active(True)
# containerchoice = preset.container,
videowidth = preset.vcodec.width,
videoheight = preset.vcodec.height
# videowidth = preset.vcodec.width,
# videoheight = preset.vcodec.height
# print videocodec + containerchoice + videowidth
# Create query on uridecoder to get values to populate progressbar
# Notes:
# Query interface only available on uridecoder, not decodebin2)
......
......@@ -41,6 +41,10 @@ Transmageddon Video Transcoding application.
%{_libdir}/transmageddon/*
%{_datadir}/pixmaps/transmageddon.png
%{_datadir}/applications/transmageddon.desktop
%{_datadir}/transmageddon/presets/ipod.xml
%{_datadir}/transmageddon/presets/linux-computer.xml
%{_datadir}/transmageddon/presets/n800.xml
%{_datadir}/transmageddon/presets/ps3.xml
%{_datadir}/locale
%changelog
......
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