Added support for preview the conversion

Now allows to choose how many cores to use during conversion
This commit is contained in:
Sergio Costas 2014-07-27 19:53:07 +02:00
parent 70fadeef22
commit cba0352d33
14 changed files with 334 additions and 92 deletions

View file

@ -5,7 +5,6 @@
<object class="GtkTextBuffer" id="debug_buffer"/>
<object class="GtkDialog" id="dialog_error">
<property name="width_request">640</property>
<property name="height_request">240</property>
<property name="can_focus">False</property>
<property name="modal">True</property>
<property name="window_position">center</property>
@ -53,8 +52,9 @@
<property name="label" translatable="yes">There was an error while creating the disc.</property>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="padding">31</property>
<property name="position">0</property>
</packing>
</child>
@ -70,7 +70,7 @@
<property name="orientation">vertical</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="height_request">200</property>
<property name="height_request">240</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">in</property>

View file

@ -174,22 +174,6 @@
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">baseline</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original video rate (Kbits/sec):</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
@ -217,48 +201,6 @@
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original audio rate (Kbits/sec):</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="original_videorate">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="original_audiorate">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label9">
<property name="visible">True</property>
@ -344,6 +286,64 @@
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="original_audiorate">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="original_videorate">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original audio rate (Kbits/sec):</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">baseline</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original video rate (Kbits/sec):</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
@ -1025,7 +1025,7 @@
</packing>
</child>
<child>
<object class="GtkRadioButton" id="size_720x480_ntsc">
<object class="GtkRadioButton" id="size_720x480">
<property name="label" translatable="yes">720x480</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -1042,7 +1042,7 @@
</packing>
</child>
<child>
<object class="GtkRadioButton" id="size_704x480_ntsc">
<object class="GtkRadioButton" id="size_704x480">
<property name="label" translatable="yes">704x480</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -1059,7 +1059,7 @@
</packing>
</child>
<child>
<object class="GtkRadioButton" id="size_480x480_ntsc">
<object class="GtkRadioButton" id="size_480x480">
<property name="label" translatable="yes">480x480</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -1076,7 +1076,7 @@
</packing>
</child>
<child>
<object class="GtkRadioButton" id="size_352x480_ntsc">
<object class="GtkRadioButton" id="size_352x480">
<property name="label" translatable="yes">352x480</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -1093,7 +1093,7 @@
</packing>
</child>
<child>
<object class="GtkRadioButton" id="size_352x240_ntsc">
<object class="GtkRadioButton" id="size_352x240">
<property name="label" translatable="yes">352x240</property>
<property name="visible">True</property>
<property name="can_focus">True</property>

View file

@ -357,6 +357,7 @@
<property name="receives_default">True</property>
<property name="yalign">0.4699999988079071</property>
<property name="image_position">top</property>
<signal name="clicked" handler="on_preview_file_clicked" swapped="no"/>
<child>
<object class="GtkBox" id="box11">
<property name="visible">True</property>

131
data/interface/wpreview.ui Normal file
View file

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkAdjustment" id="length">
<property name="lower">10</property>
<property name="upper">1000</property>
<property name="value">60</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkDialog" id="dialog_preview">
<property name="can_focus">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button1">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button2">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Preview video&lt;/b&gt;
Devede will create a preview with the selected parameters, so you will be able to check the video quality, audio sync and so on.</property>
<property name="use_markup">True</property>
<property name="justify">center</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Preview length:</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinbutton1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">length</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">button1</action-widget>
<action-widget response="1">button2</action-widget>
</action-widgets>
</object>
</interface>

View file

@ -3,6 +3,7 @@
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkWindow" id="progress">
<property name="width_request">640</property>
<property name="can_focus">False</property>
<property name="title" translatable="yes">Creating...</property>
<property name="resizable">False</property>
@ -16,6 +17,19 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Creating disc</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="padding">28</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="progress_frame">
<property name="visible">True</property>
@ -32,7 +46,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
<property name="position">1</property>
</packing>
</child>
<child>
@ -44,7 +58,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>
@ -60,7 +74,7 @@
<property name="expand">False</property>
<property name="fill">True</property>
<property name="padding">8</property>
<property name="position">2</property>
<property name="position">3</property>
</packing>
</child>
</object>