Savvy

From VDR Wiki
Revision as of 20:43, 22 November 2004 by Monroe (talk | contribs) (german wiki)
Jump to navigation Jump to search

Description

Savvy stands for Savvy Audio file Via Video clip Yanker

Savvy can extract clips from a recording of the Get the Clip broadcast of VIVA Plus(tm) and save them as MP3 files.

Features:

  • Accepts a VDR recording a source
  • Recognises the interpret an title of the clip through OCR
  • Synchronise the rcognition with the HTML page oof the broadcast
  • ID3 tag creation
  • Volume normalisation

Hardware requirements

Software requirements

  • MPlayer
  • lame
  • libmpeg2
  • normalize (optional)

Installation

For MPlayer see mplayer-plugin

To install libmpeg2

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

and normalise

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

To compile savvy with libmpeg2 version 0.4.0 (mpeg2dec-0.4.0) the sources have to be patched.

The patch can be found here.

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

In src/video.c line 602 has to be altered

- case -1:
+ case STATE_BUFFER:

Now, savvy should compile without errors

chmod 777 compile
./compile

Tip: It's important to decompress savvy in parallel to mpeg2dec-0.4.0, otherwise compile is to be adjusted

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

Configuration

Savvy is best started from within the reccmds.conf

 
Start savvy : /usr/local/bin/savvy.sh
Stop savvy? : killall savvy

For testing purposes one should make use of the commandline.

Settings are stored in settings. But there is not much to alter.

#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/
^^^^^^

Problems

See here

Options

Parameter Description
-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"

Links

[1] http://savvy.sourceforge.net savvy homepage
[2] http://mplayerhq.hu MPlayer homepage
[3] http://www.mp3dev.org Lame, a mp3 encoder
[4] http://libmpeg2.sourceforge.net Mpeg2dec (libmpeg2) homepage
[5] http://www1.cs.columbia.edu/~cvaill/normalize Normalize homepage