Dvb script gui/guicode: Unterschied zwischen den Versionen
Escho (Diskussion | Beiträge) (Fehler beim Hochladen bereinigt) |
Escho (Diskussion | Beiträge) (Fertig) |
||
Zeile 1: | Zeile 1: | ||
+ | {{Box Test|| | ||
+ | OpenSuse 11.0 (32Bit) mit KDE 3.9.x <br> | ||
+ | OpenSuse 11.0 (32Bit) mit KDE 4.1 | ||
+ | }} | ||
+ | |||
+ | {{dvb_script_gui_navibox}} | ||
+ | |||
<pre> | <pre> | ||
+ | |||
<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> | <!DOCTYPE UI><UI version="3.0" stdsetdef="1"> | ||
<class>GUI</class> | <class>GUI</class> | ||
Zeile 243: | Zeile 251: | ||
</property> | </property> | ||
<property name="text"> | <property name="text"> | ||
− | <string> | + | <string>Clear</string> |
</property> | </property> | ||
<property name="associations" stdset="0"> | <property name="associations" stdset="0"> | ||
Zeile 290: | Zeile 298: | ||
</property> | </property> | ||
<attribute name="title"> | <attribute name="title"> | ||
− | <string> | + | <string>Video-DVD</string> |
</attribute> | </attribute> | ||
<grid> | <grid> | ||
Zeile 346: | Zeile 354: | ||
</property> | </property> | ||
<property name="text"> | <property name="text"> | ||
− | <string> | + | <string>Brennen</string> |
</property> | </property> | ||
<property name="checked"> | <property name="checked"> | ||
Zeile 363: | Zeile 371: | ||
</property> | </property> | ||
<property name="text"> | <property name="text"> | ||
− | <string> | + | <string>Sichern</string> |
</property> | </property> | ||
<property name="associations" stdset="0"> | <property name="associations" stdset="0"> | ||
Zeile 402: | Zeile 410: | ||
</property> | </property> | ||
<property name="text"> | <property name="text"> | ||
− | <string> | + | <string>Brennen</string> |
</property> | </property> | ||
<property name="associations" stdset="0"> | <property name="associations" stdset="0"> | ||
Zeile 441: | Zeile 449: | ||
</property> | </property> | ||
<property name="text"> | <property name="text"> | ||
− | <string> | + | <string>Bedrucken</string> |
</property> | </property> | ||
<property name="associations" stdset="0"> | <property name="associations" stdset="0"> | ||
Zeile 468: | Zeile 476: | ||
</property> | </property> | ||
<property name="text"> | <property name="text"> | ||
− | <string> | + | <string>Go</string> |
</property> | </property> | ||
<property name="populationText"> | <property name="populationText"> | ||
Zeile 520: | Zeile 528: | ||
</property> | </property> | ||
<attribute name="title"> | <attribute name="title"> | ||
− | <string> | + | <string>Daten-DVD</string> |
</attribute> | </attribute> | ||
<grid> | <grid> | ||
Zeile 747: | Zeile 755: | ||
</property> | </property> | ||
<attribute name="title"> | <attribute name="title"> | ||
− | <string> | + | <string>Videoclip</string> |
</attribute> | </attribute> | ||
<grid> | <grid> | ||
Zeile 1.045: | Zeile 1.053: | ||
hauptverzeichnis=`cat ~/.dvb_script_gui.ini/pfad_hauptverzeichnis` | hauptverzeichnis=`cat ~/.dvb_script_gui.ini/pfad_hauptverzeichnis` | ||
scriptpfad=${hauptverzeichnis}/script/scriptcode.sh | scriptpfad=${hauptverzeichnis}/script/scriptcode.sh | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
${scriptpfad} "${uebergabe}" | ${scriptpfad} "${uebergabe}" | ||
− | + | </string> | |
</stringlist> | </stringlist> | ||
</property> | </property> | ||
Zeile 1.133: | Zeile 1.135: | ||
<layoutdefaults spacing="6" margin="11"/> | <layoutdefaults spacing="6" margin="11"/> | ||
</UI> | </UI> | ||
+ | |||
</pre> | </pre> | ||
+ | |||
+ | {{Box Test|| | ||
+ | OpenSuse 11.0 (32Bit) mit KDE 3.9.x <br> | ||
+ | OpenSuse 11.0 (32Bit) mit KDE 4.1 | ||
+ | }} | ||
+ | |||
+ | {{dvb_script_gui_navibox}} | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | #!/bin/bash | ||
+ | |||
+ | #++++++++++++++++++++++++++++++++++++++++++++++++++++++++BESCHREIBUNG +++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
+ | |||
+ | #Name: dvb_script_gui_installation | ||
+ | #Version: 0.0.4 | ||
+ | #Erstellungsdatum: 18.10.2008 | ||
+ | #Autor: escho (www.linux-club.de) | ||
+ | #Funktion: Installation und Initialisierung des Programms dvb_script_gui | ||
+ | #Benutzung auf eigene Gefahr | ||
+ | |||
+ | #°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°Initialisierung°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° | ||
+ | |||
+ | defaultwerte_laden () | ||
+ | { | ||
+ | echo "Benutzerdefinierte Default-Werte laden" | ||
+ | aufnahmeordner=~/Aufnahme | ||
+ | schablonenordner=~/Druckschablonen | ||
+ | clipordner=~/Videoclips | ||
+ | } | ||
+ | |||
+ | verzeichnisstruktur_inifiles () | ||
+ | { | ||
+ | echo "Erstellen der Initialisierungs-Verzeichnisstruktur" | ||
+ | |||
+ | mkdir ~/.dvb_script_gui.ini | ||
+ | |||
+ | touch ~/.dvb_script_gui.ini/fortschrittfenster | ||
+ | touch ~/.dvb_script_gui.ini/debugfenster | ||
+ | touch ~/.dvb_script_gui.ini/pfad_hauptverzeichnis | ||
+ | touch ~/.dvb_script_gui.ini/X.ini.film | ||
+ | |||
+ | echo ${aufnahmeordner} > ~/.dvb_script_gui.ini/aufnahmeordner | ||
+ | echo ${schablonenordner} > ~/.dvb_script_gui.ini/schablonenordner | ||
+ | echo ${clipordner} > ~/.dvb_script_gui.ini/clipordner | ||
+ | |||
+ | mkdir ~/.dvb_script_gui.ini/hilfsprogramme | ||
+ | } | ||
+ | |||
+ | hauptverzeichnis_festlegen () | ||
+ | { | ||
+ | echo "Auswahl des Hauptverzeichnisses" | ||
+ | auswahl=`kdialog --caption "Name des Hauptverzeichnisses eingeben" --inputbox ~/ DVB_Script` | ||
+ | if [ $? = 0 ] | ||
+ | then | ||
+ | hauptverzeichnis=~/`echo $auswahl | tr -d " "` | ||
+ | if [ -e ${hauptverzeichnis} ] | ||
+ | then | ||
+ | kdialog --passivepopup "Verzeichnis existiert schon! | ||
+ | Das Verzeichnis löschen oder ein anderes Verzeichnis wählen! | ||
+ | Installation wird abgebrochen!" 60 | ||
+ | exit | ||
+ | else | ||
+ | echo ${hauptverzeichnis} > ~/.dvb_script_gui.ini/pfad_hauptverzeichnis | ||
+ | return | ||
+ | fi | ||
+ | |||
+ | else | ||
+ | kdialog -- error "Abbruch durch den Benutzer! Installation wird abgebrochen!" | ||
+ | fi | ||
+ | } | ||
+ | |||
+ | verzeichnisstruktur_hauptfiles () | ||
+ | { | ||
+ | echo "Erstellen der Haupt-Verzeichnisstruktur" | ||
+ | |||
+ | mkdir ${hauptverzeichnis} | ||
+ | |||
+ | mkdir ${hauptverzeichnis}/gui | ||
+ | touch ${hauptverzeichnis}/gui/guicode.kmdr | ||
+ | |||
+ | mkdir ${hauptverzeichnis}/script | ||
+ | touch ${hauptverzeichnis}/script/scriptcode.sh | ||
+ | |||
+ | mkdir ${hauptverzeichnis}/save | ||
+ | mkdir ${hauptverzeichnis}/screenshot | ||
+ | |||
+ | mkdir ${hauptverzeichnis}/temp | ||
+ | mkdir ${hauptverzeichnis}/temp/tmp1 | ||
+ | mkdir ${hauptverzeichnis}/temp/tmp2 | ||
+ | mkdir ${hauptverzeichnis}/temp/struktur | ||
+ | |||
+ | if [ ! -e ${aufnahmeordner} ] ; then mkdir ${aufnahmeordner} ; fi | ||
+ | if [ ! -e ${schablonenordner} ] ; then mkdir ${schablonenordner} ; fi | ||
+ | if [ ! -e ${clipordner} ] ; then mkdir ${clipordner} ; fi | ||
+ | } | ||
+ | |||
+ | ini_file_pjx () | ||
+ | { | ||
+ | echo "X.ini für ProjectX erzeugen" | ||
+ | echo \ | ||
+ | "# Application | ||
+ | Application.Agreement=1 | ||
+ | Application.Language=de | ||
+ | |||
+ | # WindowPosition | ||
+ | WindowPosition.Main.Height=670 | ||
+ | WindowPosition.Main.Width=866 | ||
+ | WindowPosition.Main.X=500 | ||
+ | WindowPosition.Main.Y=0 | ||
+ | |||
+ | # OptionPanel | ||
+ | OptionPanel.NormalLog=0 | ||
+ | OptionPanel.closeOnEnd=1" \ | ||
+ | >~/.dvb_script_gui.ini/X.ini.film | ||
+ | } | ||
+ | |||
+ | hilfsprogramme_abfragen () | ||
+ | { | ||
+ | name[0]=mplex | ||
+ | name[1]=tcrequant | ||
+ | name[2]=dvdauthor | ||
+ | name[3]=ProjectX.jar | ||
+ | name[4]=normalize | ||
+ | name[5]=ffmpeg | ||
+ | name[6]=growisofs | ||
+ | name[7]=vlc | ||
+ | name[8]=mplayer | ||
+ | |||
+ | echo "Suche der Hilfsprogramme, kann etwas dauern!" | ||
+ | echo "" | ||
+ | |||
+ | for ((i=0 ; i<9 ; i++)) | ||
+ | do | ||
+ | touch ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i] | ||
+ | pfad[i]=`cat ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i]` | ||
+ | |||
+ | if [ ! -e ${pfad[i]}/${name[i]} ] | ||
+ | then | ||
+ | echo "${name[i]} wird gesucht" | ||
+ | gefundene_pfade=`find /bin $HOME /opt /usr -type f -name ${name[i]} -printf "%h " 2>/dev/null` | ||
+ | pfadzahl=`echo "$gefundene_pfade" | wc -w` | ||
+ | |||
+ | case "$pfadzahl" in | ||
+ | |||
+ | 0) kdialog -passivepopup "Das Programm wurde nicht gefunden. Bitte zuerst installieren." 60 | ||
+ | exit ;; | ||
+ | |||
+ | 1) echo $gefundene_pfade > ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i] ;; | ||
+ | |||
+ | *) auswahl=`kdialog --caption "${name[i]}" --combobox "Bitte Pfad auswählen" $gefundene_pfade --default $gefundene_pfade` | ||
+ | if [ $? = 0 ] | ||
+ | then | ||
+ | echo ${auswahl} > ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i] | ||
+ | else | ||
+ | kdialog -- passivepopup "Abbruch durch den Benutzer! Installation wird abgebrochen!" 60 | ||
+ | exit | ||
+ | fi ;; | ||
+ | esac | ||
+ | fi | ||
+ | done | ||
+ | } | ||
+ | |||
+ | desktop_datei_anlegen () | ||
+ | { | ||
+ | echo "Desktop-Datei erzeugen in ~/Desktop" | ||
+ | echo \ | ||
+ | "[Desktop Entry] | ||
+ | Comment[de]= | ||
+ | Comment= | ||
+ | Exec=kmdr-executor ${hauptverzeichnis}/gui/guicode.kmdr | ||
+ | GenericName[de]= | ||
+ | GenericName= | ||
+ | Icon=kcmperformance | ||
+ | MimeType= | ||
+ | Name[de]= | ||
+ | Name= | ||
+ | Path= | ||
+ | StartupNotify=true | ||
+ | Terminal=false | ||
+ | TerminalOptions= | ||
+ | Type=Application | ||
+ | X-DBUS-ServiceName= | ||
+ | X-DBUS-StartupType= | ||
+ | X-KDE-SubstituteUID=false | ||
+ | X-KDE-Username= | ||
+ | X-SuSE-translate=true" \ | ||
+ | > ~/Desktop/DVB-Script | ||
+ | } | ||
+ | |||
+ | hinweis () | ||
+ | { | ||
+ | echo "" | ||
+ | echo "Die Installation ist fertig. Nun müssen noch die Programmdateien an die richtigen Stellen kopiert werden." | ||
+ | echo "Wie das funktioniert und noch einiges mehr, das steht im LC-Wiki:" | ||
+ | echo "http://wiki.linux-club.de/opensuse/Dvb_script_gui/anleitung" | ||
+ | echo "" | ||
+ | echo "Viel Spass beim ausprobieren" | ||
+ | } | ||
+ | |||
+ | #°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°Hauptprogramm°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° | ||
+ | |||
+ | echo "Installationsroutine für das DVB-Script" ; echo "" | ||
+ | |||
+ | defaultwerte_laden | ||
+ | verzeichnisstruktur_inifiles | ||
+ | hauptverzeichnis_festlegen | ||
+ | verzeichnisstruktur_hauptfiles | ||
+ | ini_file_pjx | ||
+ | hilfsprogramme_abfragen | ||
+ | desktop_datei_anlegen | ||
+ | hinweis | ||
+ | |||
+ | echo "" ; echo "Installation beendet" | ||
+ | |||
+ | kdialog --msgbox "fertig" | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | [[Multimedia|Zurück zur Multimedia-Übersicht]] | ||
+ | [[Category:Multimedia]] |
Version vom 19. Oktober 2008, 19:42 Uhr
Diese Beschreibung wurde mit folgenden Distributionen getestet: |
OpenSuse 11.0 (32Bit) mit KDE 3.9.x |
Vom DVB zur DVD, die GUI: Anleitungen - Installation - GUI-Kommanderscript - Arbeitsscript - Dokumentation |
<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> <class>GUI</class> <widget class="Dialog"> <property name="name"> <cstring>GUI</cstring> </property> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>1032</width> <height>869</height> </rect> </property> <property name="maximumSize"> <size> <width>10000</width> <height>10000</height> </size> </property> <property name="baseSize"> <size> <width>1024</width> <height>768</height> </size> </property> <property name="caption"> <string>GUI für das dvb_wiki_script oder Vom DVB zur DVD und einiges mehr</string> </property> <property name="iconText"> <string></string> </property> <property name="sizeGripEnabled"> <bool>false</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> <string></string> </stringlist> </property> <property name="useInternalParser"> <bool>true</bool> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="GroupBox" row="1" column="0"> <property name="name"> <cstring>rahmen</cstring> </property> <property name="sizePolicy"> <sizepolicy> <hsizetype>5</hsizetype> <vsizetype>3</vsizetype> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="font"> <font> <pointsize>12</pointsize> <bold>1</bold> </font> </property> <property name="title"> <string>Log</string> </property> <property name="alignment"> <set>AlignCenter</set> </property> <property name="associations" stdset="0"> <stringlist> <string></string> </stringlist> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="TextBrowser" row="0" column="0"> <property name="name"> <cstring>fenster1</cstring> </property> <property name="minimumSize"> <size> <width>490</width> <height>350</height> </size> </property> <property name="font"> <font> </font> </property> <property name="associations" stdset="0"> <stringlist> <string></string> </stringlist> </property> </widget> </grid> </widget> <widget class="GroupBox" row="1" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>GroupBox2</cstring> </property> <property name="sizePolicy"> <sizepolicy> <hsizetype>5</hsizetype> <vsizetype>5</vsizetype> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="title"> <string>Debug - Log</string> </property> <property name="alignment"> <set>AlignCenter</set> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="ButtonGroup" row="0" column="0"> <property name="name"> <cstring>ButtonGroup2</cstring> </property> <property name="minimumSize"> <size> <width>60</width> <height>60</height> </size> </property> <property name="title"> <string></string> </property> <property name="exclusive"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> </stringlist> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="RadioButton" row="0" column="0"> <property name="name"> <cstring>RadioButton_Ein</cstring> </property> <property name="text"> <string>Ein</string> </property> <property name="checked"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> </stringlist> </property> </widget> <widget class="RadioButton" row="1" column="0"> <property name="name"> <cstring>RadioButton_Aus</cstring> </property> <property name="text"> <string>Aus</string> </property> <property name="checked"> <bool>false</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> </stringlist> </property> </widget> </grid> </widget> <widget class="TextEdit" row="1" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>TextEdit_Debug_Log</cstring> </property> <property name="minimumSize"> <size> <width>470</width> <height>350</height> </size> </property> <property name="vScrollBarMode"> <enum>Auto</enum> </property> <property name="hScrollBarMode"> <enum>Auto</enum> </property> <property name="readOnly"> <bool>true</bool> </property> </widget> <widget class="ExecButton" row="0" column="2"> <property name="name"> <cstring>ExecButton_Clear</cstring> </property> <property name="minimumSize"> <size> <width>60</width> <height>60</height> </size> </property> <property name="text"> <string>Clear</string> </property> <property name="associations" stdset="0"> <stringlist> <string>RadioButton_Aus.setChecked(true) Timer_Debug.cancel TextEdit_Debug_Log.clear </string> </stringlist> </property> </widget> <spacer row="0" column="1"> <property name="name"> <cstring>Spacer19</cstring> </property> <property name="orientation"> <enum>Horizontal</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>331</width> <height>0</height> </size> </property> </spacer> </grid> </widget> <widget class="TabWidget" row="0" column="0"> <property name="name"> <cstring>TabWidget1</cstring> </property> <property name="sizePolicy"> <sizepolicy> <hsizetype>5</hsizetype> <vsizetype>5</vsizetype> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <widget class="QWidget"> <property name="name"> <cstring>tab</cstring> </property> <attribute name="title"> <string>Video-DVD</string> </attribute> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="ButtonGroup" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>ButtonGroup_Video_DVD</cstring> </property> <property name="title"> <string></string> </property> <property name="exclusive"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> </stringlist> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="Label" row="0" column="0"> <property name="name"> <cstring>Label1</cstring> </property> <property name="font"> <font> <italic>1</italic> </font> </property> <property name="text"> <string>DVB (mpeg2): Schneiden, Authoring und ...</string> </property> </widget> <widget class="RadioButton" row="1" column="0"> <property name="name"> <cstring>RadioButton_11</cstring> </property> <property name="text"> <string>Brennen</string> </property> <property name="checked"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(11)</string> </stringlist> </property> </widget> <widget class="RadioButton" row="2" column="0"> <property name="name"> <cstring>RadioButton_12</cstring> </property> <property name="text"> <string>Sichern</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(12)</string> </stringlist> </property> </widget> <spacer row="3" column="0"> <property name="name"> <cstring>Spacer7</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>25</height> </size> </property> </spacer> <widget class="Label" row="4" column="0"> <property name="name"> <cstring>Label2</cstring> </property> <property name="text"> <string>Gesicherte DVD-Struktur ...</string> </property> </widget> <widget class="RadioButton" row="5" column="0"> <property name="name"> <cstring>RadioButton_13</cstring> </property> <property name="text"> <string>Brennen</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(13)</string> </stringlist> </property> </widget> <spacer row="6" column="0"> <property name="name"> <cstring>Spacer7_2</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>26</height> </size> </property> </spacer> <widget class="Label" row="7" column="0"> <property name="name"> <cstring>Label3</cstring> </property> <property name="text"> <string>Video-DVD ...</string> </property> </widget> <widget class="RadioButton" row="8" column="0"> <property name="name"> <cstring>RadioButton_81</cstring> </property> <property name="text"> <string>Bedrucken</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(81)</string> </stringlist> </property> </widget> </grid> </widget> <widget class="ExecButton" row="0" column="2"> <property name="name"> <cstring>ExecButton_Start_Video_DVD</cstring> </property> <property name="minimumSize"> <size> <width>60</width> <height>60</height> </size> </property> <property name="font"> <font> <bold>1</bold> </font> </property> <property name="text"> <string>Go</string> </property> <property name="populationText"> <string></string> </property> <property name="associations" stdset="0"> <stringlist> <string>ButtonGroup_Video_DVD.text</string> </stringlist> </property> </widget> <spacer row="1" column="2"> <property name="name"> <cstring>Spacer13_2</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>208</height> </size> </property> </spacer> <spacer row="0" column="1"> <property name="name"> <cstring>Spacer15</cstring> </property> <property name="orientation"> <enum>Horizontal</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>155</width> <height>0</height> </size> </property> </spacer> </grid> </widget> <widget class="QWidget"> <property name="name"> <cstring>tab</cstring> </property> <attribute name="title"> <string>Daten-DVD</string> </attribute> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="ButtonGroup" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>ButtonGroup_Daten_DVD</cstring> </property> <property name="title"> <string></string> </property> <property name="exclusive"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> </stringlist> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="Label" row="0" column="0"> <property name="name"> <cstring>Label4</cstring> </property> <property name="font"> <font> <italic>1</italic> </font> </property> <property name="text"> <string>DVB (mpeg2): Schneiden, Wandeln zu TS und ...</string> </property> </widget> <widget class="RadioButton" row="1" column="0"> <property name="name"> <cstring>RadioButton_21</cstring> </property> <property name="text"> <string>Brennen</string> </property> <property name="checked"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(21)</string> </stringlist> </property> </widget> <widget class="Label" row="4" column="0"> <property name="name"> <cstring>Label5</cstring> </property> <property name="text"> <string>Gesicherte TS-Files ...</string> </property> </widget> <widget class="Label" row="7" column="0"> <property name="name"> <cstring>Label6</cstring> </property> <property name="text"> <string>Daten-DVD ...</string> </property> </widget> <widget class="RadioButton" row="8" column="0"> <property name="name"> <cstring>RadioButton_82</cstring> </property> <property name="text"> <string>Bedrucken</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(82)</string> </stringlist> </property> </widget> <widget class="RadioButton" row="5" column="0"> <property name="name"> <cstring>RadioButton_23</cstring> </property> <property name="text"> <string>Brennen</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(23)</string> </stringlist> </property> </widget> <widget class="RadioButton" row="2" column="0"> <property name="name"> <cstring>RadioButton_22</cstring> </property> <property name="text"> <string>Sichern</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(22)</string> </stringlist> </property> </widget> <spacer row="3" column="0"> <property name="name"> <cstring>Spacer9</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>30</height> </size> </property> </spacer> <spacer row="6" column="0"> <property name="name"> <cstring>Spacer10</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>31</height> </size> </property> </spacer> </grid> </widget> <widget class="ExecButton" row="0" column="2"> <property name="name"> <cstring>ExecButton_Start_Video_DVD_2</cstring> </property> <property name="minimumSize"> <size> <width>60</width> <height>60</height> </size> </property> <property name="font"> <font> <bold>1</bold> </font> </property> <property name="text"> <string>Go</string> </property> <property name="associations" stdset="0"> <stringlist> <string>ButtonGroup_Daten_DVD.text</string> </stringlist> </property> </widget> <spacer row="1" column="2"> <property name="name"> <cstring>Spacer12</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>208</height> </size> </property> </spacer> <spacer row="0" column="1"> <property name="name"> <cstring>Spacer13</cstring> </property> <property name="orientation"> <enum>Horizontal</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>120</width> <height>0</height> </size> </property> </spacer> </grid> </widget> <widget class="QWidget"> <property name="name"> <cstring>tab</cstring> </property> <attribute name="title"> <string>Videoclip</string> </attribute> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="ButtonGroup" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>ButtonGroup_Videoclip</cstring> </property> <property name="sizePolicy"> <sizepolicy> <hsizetype>0</hsizetype> <vsizetype>5</vsizetype> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="title"> <string></string> </property> <property name="exclusive"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string></string> </stringlist> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>11</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="Label" row="0" column="0"> <property name="name"> <cstring>Label7</cstring> </property> <property name="font"> <font> <italic>1</italic> </font> </property> <property name="text"> <string>Videoclip (mpeg2): Schneiden und speichern ...</string> </property> </widget> <widget class="RadioButton" row="2" column="0"> <property name="name"> <cstring>RadioButton_32</cstring> </property> <property name="text"> <string>AC3</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(32)</string> </stringlist> </property> </widget> <widget class="Label" row="6" column="0"> <property name="name"> <cstring>Label8</cstring> </property> <property name="font"> <font> <italic>1</italic> </font> </property> <property name="text"> <string>Videoclip (mpeg1) speichern ...</string> </property> <property name="alignment"> <set>AlignVCenter</set> </property> </widget> <widget class="RadioButton" row="7" column="0"> <property name="name"> <cstring>RadioButton_34</cstring> </property> <property name="text"> <string>MP2</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(34)</string> </stringlist> </property> </widget> <widget class="RadioButton" row="8" column="0"> <property name="name"> <cstring>RadioButton_38</cstring> </property> <property name="text"> <string>MP2 normalisiert</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(38)</string> </stringlist> </property> </widget> <widget class="RadioButton" row="4" column="0"> <property name="name"> <cstring>RadioButton_37</cstring> </property> <property name="text"> <string>MP2 normalisiert</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(37)</string> </stringlist> </property> </widget> <spacer row="5" column="0"> <property name="name"> <cstring>Spacer11</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>30</height> </size> </property> </spacer> <widget class="RadioButton" row="3" column="0"> <property name="name"> <cstring>RadioButton_33</cstring> </property> <property name="text"> <string>MP2</string> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(33)</string> </stringlist> </property> </widget> <widget class="RadioButton" row="1" column="0"> <property name="name"> <cstring>RadioButton_31</cstring> </property> <property name="text"> <string>Alle Tonspuren</string> </property> <property name="checked"> <bool>true</bool> </property> <property name="associations" stdset="0"> <stringlist> <string></string> <string>Script.execute(31)</string> </stringlist> </property> </widget> </grid> </widget> <widget class="ExecButton" row="0" column="2"> <property name="name"> <cstring>ExecButton_Start_Video_DVD_3</cstring> </property> <property name="minimumSize"> <size> <width>60</width> <height>60</height> </size> </property> <property name="font"> <font> <bold>1</bold> </font> </property> <property name="text"> <string>Go</string> </property> <property name="associations" stdset="0"> <stringlist> <string>ButtonGroup_Videoclip.text</string> </stringlist> </property> </widget> <spacer row="1" column="2"> <property name="name"> <cstring>Spacer13_2_4</cstring> </property> <property name="orientation"> <enum>Vertical</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>0</width> <height>210</height> </size> </property> </spacer> <spacer row="0" column="1"> <property name="name"> <cstring>Spacer16</cstring> </property> <property name="orientation"> <enum>Horizontal</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>130</width> <height>0</height> </size> </property> </spacer> </grid> </widget> </widget> <widget class="QLayoutWidget" row="0" column="1"> <property name="name"> <cstring>Layout1</cstring> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>0</number> </property> <property name="spacing"> <number>6</number> </property> <widget class="Timer" row="2" column="0"> <property name="name"> <cstring>Timer_Debug</cstring> </property> <property name="associations" stdset="0"> <stringlist> <string>refresh_fenster2.execute</string> </stringlist> </property> <property name="interval"> <number>500</number> </property> </widget> <widget class="ScriptObject" row="2" column="1"> <property name="name"> <cstring>refresh_fenster2</cstring> </property> <property name="text"> <string>fen2</string> </property> <property name="associations" stdset="0"> <stringlist> <string>input=(env("HOME")+"/.dvb_script_gui.ini/debugfenster") text=file_read(input) TextEdit_Debug_Log.setText(text) TextEdit_Debug_Log.scrollToBottom</string> </stringlist> </property> </widget> <widget class="ScriptObject" row="0" column="1"> <property name="name"> <cstring>Script</cstring> </property> <property name="text"> <string>Script</string> </property> <property name="associations" stdset="0"> <stringlist> <string>#!/bin/bash uebergabe=`echo @Self.item(0)` hauptverzeichnis=`cat ~/.dvb_script_gui.ini/pfad_hauptverzeichnis` scriptpfad=${hauptverzeichnis}/script/scriptcode.sh ${scriptpfad} "${uebergabe}" </string> </stringlist> </property> </widget> <widget class="ScriptObject" row="1" column="1"> <property name="name"> <cstring>refresh_fenster1</cstring> </property> <property name="text"> <string>fen1</string> </property> <property name="associations" stdset="0"> <stringlist> <string>input=(env("HOME")+"/.dvb_script_gui.ini/fortschrittfenster") text=file_read(input) fenster1.setText(text)</string> </stringlist> </property> </widget> <widget class="Timer" row="1" column="0"> <property name="name"> <cstring>Timer_Log</cstring> </property> <property name="associations" stdset="0"> <stringlist> <string>refresh_fenster1.execute</string> </stringlist> </property> <property name="interval"> <number>500</number> </property> </widget> </grid> </widget> <spacer row="0" column="2"> <property name="name"> <cstring>Spacer16_2</cstring> </property> <property name="orientation"> <enum>Horizontal</enum> </property> <property name="sizeType"> <enum>Expanding</enum> </property> <property name="sizeHint"> <size> <width>341</width> <height>0</height> </size> </property> </spacer> </grid> </widget> <connections> <connection> <sender>RadioButton_Ein</sender> <signal>pressed()</signal> <receiver>Timer_Debug</receiver> <slot>execute()</slot> </connection> <connection> <sender>GUI</sender> <signal>widgetOpened()</signal> <receiver>Timer_Log</receiver> <slot>execute()</slot> </connection> <connection> <sender>RadioButton_Aus</sender> <signal>pressed()</signal> <receiver>Timer_Debug</receiver> <slot>cancel()</slot> </connection> <connection> <sender>GUI</sender> <signal>widgetOpened()</signal> <receiver>Timer_Debug</receiver> <slot>execute()</slot> </connection> </connections> <layoutdefaults spacing="6" margin="11"/> </UI>
Diese Beschreibung wurde mit folgenden Distributionen getestet: |
OpenSuse 11.0 (32Bit) mit KDE 3.9.x |
Vom DVB zur DVD, die GUI: Anleitungen - Installation - GUI-Kommanderscript - Arbeitsscript - Dokumentation |
#!/bin/bash #++++++++++++++++++++++++++++++++++++++++++++++++++++++++BESCHREIBUNG +++++++++++++++++++++++++++++++++++++++++++++++++++++++ #Name: dvb_script_gui_installation #Version: 0.0.4 #Erstellungsdatum: 18.10.2008 #Autor: escho (www.linux-club.de) #Funktion: Installation und Initialisierung des Programms dvb_script_gui #Benutzung auf eigene Gefahr #°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°Initialisierung°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° defaultwerte_laden () { echo "Benutzerdefinierte Default-Werte laden" aufnahmeordner=~/Aufnahme schablonenordner=~/Druckschablonen clipordner=~/Videoclips } verzeichnisstruktur_inifiles () { echo "Erstellen der Initialisierungs-Verzeichnisstruktur" mkdir ~/.dvb_script_gui.ini touch ~/.dvb_script_gui.ini/fortschrittfenster touch ~/.dvb_script_gui.ini/debugfenster touch ~/.dvb_script_gui.ini/pfad_hauptverzeichnis touch ~/.dvb_script_gui.ini/X.ini.film echo ${aufnahmeordner} > ~/.dvb_script_gui.ini/aufnahmeordner echo ${schablonenordner} > ~/.dvb_script_gui.ini/schablonenordner echo ${clipordner} > ~/.dvb_script_gui.ini/clipordner mkdir ~/.dvb_script_gui.ini/hilfsprogramme } hauptverzeichnis_festlegen () { echo "Auswahl des Hauptverzeichnisses" auswahl=`kdialog --caption "Name des Hauptverzeichnisses eingeben" --inputbox ~/ DVB_Script` if [ $? = 0 ] then hauptverzeichnis=~/`echo $auswahl | tr -d " "` if [ -e ${hauptverzeichnis} ] then kdialog --passivepopup "Verzeichnis existiert schon! Das Verzeichnis löschen oder ein anderes Verzeichnis wählen! Installation wird abgebrochen!" 60 exit else echo ${hauptverzeichnis} > ~/.dvb_script_gui.ini/pfad_hauptverzeichnis return fi else kdialog -- error "Abbruch durch den Benutzer! Installation wird abgebrochen!" fi } verzeichnisstruktur_hauptfiles () { echo "Erstellen der Haupt-Verzeichnisstruktur" mkdir ${hauptverzeichnis} mkdir ${hauptverzeichnis}/gui touch ${hauptverzeichnis}/gui/guicode.kmdr mkdir ${hauptverzeichnis}/script touch ${hauptverzeichnis}/script/scriptcode.sh mkdir ${hauptverzeichnis}/save mkdir ${hauptverzeichnis}/screenshot mkdir ${hauptverzeichnis}/temp mkdir ${hauptverzeichnis}/temp/tmp1 mkdir ${hauptverzeichnis}/temp/tmp2 mkdir ${hauptverzeichnis}/temp/struktur if [ ! -e ${aufnahmeordner} ] ; then mkdir ${aufnahmeordner} ; fi if [ ! -e ${schablonenordner} ] ; then mkdir ${schablonenordner} ; fi if [ ! -e ${clipordner} ] ; then mkdir ${clipordner} ; fi } ini_file_pjx () { echo "X.ini für ProjectX erzeugen" echo \ "# Application Application.Agreement=1 Application.Language=de # WindowPosition WindowPosition.Main.Height=670 WindowPosition.Main.Width=866 WindowPosition.Main.X=500 WindowPosition.Main.Y=0 # OptionPanel OptionPanel.NormalLog=0 OptionPanel.closeOnEnd=1" \ >~/.dvb_script_gui.ini/X.ini.film } hilfsprogramme_abfragen () { name[0]=mplex name[1]=tcrequant name[2]=dvdauthor name[3]=ProjectX.jar name[4]=normalize name[5]=ffmpeg name[6]=growisofs name[7]=vlc name[8]=mplayer echo "Suche der Hilfsprogramme, kann etwas dauern!" echo "" for ((i=0 ; i<9 ; i++)) do touch ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i] pfad[i]=`cat ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i]` if [ ! -e ${pfad[i]}/${name[i]} ] then echo "${name[i]} wird gesucht" gefundene_pfade=`find /bin $HOME /opt /usr -type f -name ${name[i]} -printf "%h " 2>/dev/null` pfadzahl=`echo "$gefundene_pfade" | wc -w` case "$pfadzahl" in 0) kdialog -passivepopup "Das Programm wurde nicht gefunden. Bitte zuerst installieren." 60 exit ;; 1) echo $gefundene_pfade > ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i] ;; *) auswahl=`kdialog --caption "${name[i]}" --combobox "Bitte Pfad auswählen" $gefundene_pfade --default $gefundene_pfade` if [ $? = 0 ] then echo ${auswahl} > ~/.dvb_script_gui.ini/hilfsprogramme/pfad[$i] else kdialog -- passivepopup "Abbruch durch den Benutzer! Installation wird abgebrochen!" 60 exit fi ;; esac fi done } desktop_datei_anlegen () { echo "Desktop-Datei erzeugen in ~/Desktop" echo \ "[Desktop Entry] Comment[de]= Comment= Exec=kmdr-executor ${hauptverzeichnis}/gui/guicode.kmdr GenericName[de]= GenericName= Icon=kcmperformance MimeType= Name[de]= Name= Path= StartupNotify=true Terminal=false TerminalOptions= Type=Application X-DBUS-ServiceName= X-DBUS-StartupType= X-KDE-SubstituteUID=false X-KDE-Username= X-SuSE-translate=true" \ > ~/Desktop/DVB-Script } hinweis () { echo "" echo "Die Installation ist fertig. Nun müssen noch die Programmdateien an die richtigen Stellen kopiert werden." echo "Wie das funktioniert und noch einiges mehr, das steht im LC-Wiki:" echo "http://wiki.linux-club.de/opensuse/Dvb_script_gui/anleitung" echo "" echo "Viel Spass beim ausprobieren" } #°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°Hauptprogramm°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° echo "Installationsroutine für das DVB-Script" ; echo "" defaultwerte_laden verzeichnisstruktur_inifiles hauptverzeichnis_festlegen verzeichnisstruktur_hauptfiles ini_file_pjx hilfsprogramme_abfragen desktop_datei_anlegen hinweis echo "" ; echo "Installation beendet" kdialog --msgbox "fertig"