Savvy

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(23 dazwischenliegende Versionen von 18 Benutzern werden nicht angezeigt)
Zeile 10: Zeile 10:
 
* id3-tag Vergabe
 
* id3-tag Vergabe
 
* anheben der Lautstärke mittels normalize
 
* anheben der Lautstärke mittels normalize
 
 
==Hardwareanforderungen==
 
==Hardwareanforderungen==
 
Keine.
 
Keine.
  
 
==Softwareanforderungen==
 
==Softwareanforderungen==
mplayer, lame, libmpeg2, normalize (optional)
+
* {{wikipedia|mplayer}}
 +
* {{wikipedia|lame}}
 +
* libmpeg2
 +
* normalize (optional)
  
 
==Installation==
 
==Installation==
MPlayer siehe [[mp3-plugin]]/[[mplayer-plugin]]
+
MPlayer siehe [[mplayer-plugin]]
 
<pre>cd $SOURCEDIR
 
<pre>cd $SOURCEDIR
tar xvzf mpeg2dec-0.3.1.tar.gz
+
tar xvzf mpeg2dec-<VERSION>.tar.gz
cd mpeg2dec-0.3.1
+
cd mpeg2dec-<VERSION>
 
./configure --prefix=/usr/local
 
./configure --prefix=/usr/local
 
make
 
make
Zeile 27: Zeile 29:
  
 
cd -
 
cd -
tar jxvf normalize-0.7.6.tar.bz2
+
tar jxvf normalize-<VERSION>.tar.bz2
cd normalize-0.7
+
cd normalize-<VERSION>
 
./configure --prefix=/usr/local
 
./configure --prefix=/usr/local
 
make
 
make
 
make install
 
make install
 
 
cd -
 
cd -
tar xvzf savvy-0.12.tgz
+
</pre>
cd savvy.0.12
+
Um savvy mit mpeg2dec-0.4.0 übersetzen zu können, müssen die Sourcen gepatcht werden.
chmod +x compile
+
 
 +
Patch ist hier zu finden: http://vdrportal.de/board/thread.php?threadid=20154
 +
<pre>
 +
tar xvzf savvy-<VERSION>.tgz
 +
cd savvy.<VERSION>
 +
zcat savvy.0.12b.diff.gz | patch -p1
 +
</pre>
 +
In '''src/video.c''' Zeile 602 ist noch eine Änderung nötig:
 +
<pre>
 +
- case -1:
 +
+ case STATE_BUFFER:
 +
</pre>
 +
Nun sollte sich savvy übersetzen lassen.
 +
<pre>
 +
chmod 777 compile
 
./compile</pre>
 
./compile</pre>
Tip: Wichtig hierbei das "savvy" parallel, zu mpeg2dec-0.3.1 entpackt wurde, anderen falls ist "compile" anzupassenm:
+
Tip: Wichtig hierbei das "savvy" parallel, zu mpeg2dec-0.4.0 entpackt wurde, anderen falls ist "compile" anzupassen:
 
<pre># Set this according to your folder containing the (compiled) libmpeg
 
<pre># Set this according to your folder containing the (compiled) libmpeg
mpeg2decFolder=../mpeg2dec-0.3.1
+
mpeg2decFolder=../mpeg2dec-0.4.0
 
               ^^^^^^^^^^^^^^^^^</pre>
 
               ^^^^^^^^^^^^^^^^^</pre>
 
==Konfiguration==
 
==Konfiguration==
Savvy startet man am besten aus der [[reccmds.conf]] herraus.
+
Savvy startet man am besten aus der [[reccmds.conf]] heraus.
 +
 +
Starte savvy  : /usr/local/bin/[[savvy.sh]] -start
 +
Beende savvy? : /usr/local/bin/[[savvy.sh]] -kill
  
Ein Shell Skript, um savvy "anzuschuppsen" könnte wie folgt aussehen [[savvy.sh]], zum Testen sollte man jedoch von der [[Kommandozeile]] gebrauch machen.
+
Zum Testen sollte man jedoch von der {{wikipedia|Kommandozeile}} gebrauch machen.
 +
 
 +
Einstellungen werden in '''settings''' vorgenommen, viel zu "schrauben" gibt es nicht, wer möchte kann Definieren wo savvy die Dateien speichert.
 +
<pre>
 +
#Temporary data path (~double the size of the capture file is needed!)
 +
#Warning: Currently no spaces or other special characters allowed!
 +
#Note: remember the last "/"!
 +
./tmp/
 +
^^^^^^
 +
#
 +
#
 +
#MP3 Data path (The folder, where resulting files should be created)
 +
#Warning: Currently no spaces or other special characters allowed!
 +
#Note: remember the last "/"!
 +
./mp3/
 +
^^^^^^
 +
</pre>
  
 
==Probleme==
 
==Probleme==
Keine bekannt.
+
Siehe: http://vdrportal.de/board/thread.php?threadid=20154
  
==Links==
+
==Optionen==
{|
+
 
| [1]
+
{| border=1 cellpadding=2 cellspacing=0
| http://mplayerhq.hu
+
|- bgcolor=#efefef
| MPlayer Homepage
+
!...
 +
!Beschreibung
 
|-
 
|-
| [2]
+
| '''-v[vvv]'''
| http://www.mp3dev.org
+
| Verbose output (You may add multiple v's)
| Lame, A mp3 encoder
+
 
|-
 
|-
| [3]
+
| '''-indy'''
| http://libmpeg2.sourceforge.net
+
| Don't use track list "./gettheclip.html"
| Mpeg2dec Homepage
+
 
|-
 
|-
| [4]
+
| '''-t'''
| http://www1.cs.columbia.edu/~cvaill/normalize
+
| Shows the track list
| Normalize Homepage
+
 
|-
 
|-
| [5]
+
| '''-a'''
| http://savvy.sourceforge.net
+
| Create a special audio stream
| Homepage von "savvy"
+
|-
 +
| '''-w'''
 +
| Interprete AudioStream as wave file
 +
|-
 +
| '''-nd'''
 +
| Don't delete temporate files
 +
|-
 +
| '''-nn'''
 +
| Don't run "normalize"
 +
|-
 +
| '''-sc'''
 +
| Save cut infos after checking to "./cutfile"
 +
|-
 +
| '''-lc'''
 +
| Load and execute cutfile "./cutfile"
 
|}
 
|}
 +
 +
==Links==
 +
# [http://mplayerhq.hu MPlayer]
 +
# [http://www.mp3dev.org Lame]
 +
# [http://libmpeg2.sourceforge.net Mpeg2dec]
 +
# [http://www1.cs.columbia.edu/~cvaill/normalize Normalize]
 +
# [http://savvy.sourceforge.net Homepage von Savvy]
 +
 +
[[Kategorie:Veraltete Software]]
 +
{{i18n|Savvy}}

Aktuelle Version vom 1. September 2013, 14:46 Uhr

Inhaltsverzeichnis

[Bearbeiten] Beschreibung

Savvy (S)avvy (A)udio file (V)ia (V)ideo clip (Y)anker

Savvy ist in der Lage, aus einer Aufnahme der Get the Clip-Sendung (tm) von Viva Plus (tm) die einzelnen Clips zu erkennen und als mp3-Datei abzuspeichern.

Features:

  • akzeptiert eine VDR-Aufnahme als Ausgangsmaterial
  • erkennt per OCR den Interpreten und den Titel des Lieds
  • abgleich der OCR-Erkennung mit der HTML-Seite der Sendung
  • id3-tag Vergabe
  • anheben der Lautstärke mittels normalize

[Bearbeiten] Hardwareanforderungen

Keine.

[Bearbeiten] Softwareanforderungen

[Bearbeiten] Installation

MPlayer siehe mplayer-plugin

cd $SOURCEDIR
tar xvzf mpeg2dec-<VERSION>.tar.gz
cd mpeg2dec-<VERSION>
./configure --prefix=/usr/local
make
make install

cd -
tar jxvf normalize-<VERSION>.tar.bz2
cd normalize-<VERSION>
./configure --prefix=/usr/local
make
make install
cd -

Um savvy mit mpeg2dec-0.4.0 übersetzen zu können, müssen die Sourcen gepatcht werden.

Patch ist hier zu finden: http://vdrportal.de/board/thread.php?threadid=20154

tar xvzf savvy-<VERSION>.tgz
cd savvy.<VERSION>
zcat savvy.0.12b.diff.gz | patch -p1

In src/video.c Zeile 602 ist noch eine Änderung nötig:

- case -1:
+ case STATE_BUFFER:

Nun sollte sich savvy übersetzen lassen.

chmod 777 compile
./compile

Tip: Wichtig hierbei das "savvy" parallel, zu mpeg2dec-0.4.0 entpackt wurde, anderen falls ist "compile" anzupassen:

# Set this according to your folder containing the (compiled) libmpeg
mpeg2decFolder=../mpeg2dec-0.4.0
               ^^^^^^^^^^^^^^^^^

[Bearbeiten] Konfiguration

Savvy startet man am besten aus der reccmds.conf heraus.

Starte savvy  : /usr/local/bin/savvy.sh -start
Beende savvy? : /usr/local/bin/savvy.sh -kill

Zum Testen sollte man jedoch von der Kommandozeile gebrauch machen.

Einstellungen werden in settings vorgenommen, viel zu "schrauben" gibt es nicht, wer möchte kann Definieren wo savvy die Dateien speichert.

#Temporary data path (~double the size of the capture file is needed!)
#Warning: Currently no spaces or other special characters allowed!
#Note: remember the last "/"!
./tmp/
^^^^^^
#
#
#MP3 Data path (The folder, where resulting files should be created)
#Warning: Currently no spaces or other special characters allowed!
#Note: remember the last "/"!
./mp3/
^^^^^^

[Bearbeiten] Probleme

Siehe: http://vdrportal.de/board/thread.php?threadid=20154

[Bearbeiten] Optionen

... Beschreibung
-v[vvv] Verbose output (You may add multiple v's)
-indy Don't use track list "./gettheclip.html"
-t Shows the track list
-a Create a special audio stream
-w Interprete AudioStream as wave file
-nd Don't delete temporate files
-nn Don't run "normalize"
-sc Save cut infos after checking to "./cutfile"
-lc Load and execute cutfile "./cutfile"

[Bearbeiten] Links

  1. MPlayer
  2. Lame
  3. Mpeg2dec
  4. Normalize
  5. Homepage von Savvy
In anderen Sprachen