Loggytronic Forum

VOMP => VOMP General / MVP => Topic started by: jfoterek on February 14, 2010, 19:03:13

Poll
Question: What i have to do , to play Flac Audio Files
Option 1: newbe votes: 0
Option 2: newbe votes: 0
Option 3: newbe votes: 0
Title: Mplayer with Flac Audio
Post by: jfoterek on February 14, 2010, 19:03:13
Hi all,

I have installed vompserver 0.3.1.1.all works perfect. The Mediaplayer option play MP3 it shows Pictures an other thinks. But now i heard that the new CVS version of Mplayer supports Flac AudioSo I installed this new version to my VDR system. I put the right things in the vomp.conf to see the Flac files in the list on my Media Mvp. But when i want to play one of my Flac files , nothing happens. I know that there is olso a short shell Script called test1.sh, that Adreas Vogel has written.
Who knows what i have to write into this Script , to play Flac Audio files. Maybe someone can help me.

Regards

Jürgen
Title: Re: Mplayer with Flac Audio
Post by: avvdr on February 22, 2010, 18:23:44
Hi Jürgen,
basicall you have to add some code the the script to handle the particular extension of the flac files.
So 2 steps:
1. add the extension to vomp.conf to be handled with a script
2. add something to e.g. test.sh to call mencoder with your file (just look e.g. how wav files are handled) - maybe simply add a function

handleFlac() {
  mencoder ....alotofoptions -o $FIFO "$1" 2>/dev/null &
  MPID=$!
}

and insert somewhere at around line 353ff:

flac|FLAC)
  createFifo
  handleFlac "$1"
  startReader
  waitFkt
  ;;


For testing call test.sh with the name of a flac file and pipe the output to some player (e.g. xine).

Regards
Andreas