Jukebox mode ignoring a custom transcoding command.

Need help? Post your questions here.

Moderator: moderators

Jukebox mode ignoring a custom transcoding command.

Postby gwel » Sat Feb 22, 2014 11:35 pm

Hello to you all,

first of all please forgive me for my English (I'm French). I come to you because of a little problem that I have. I wanted to listen to streamed radios with Subsonic and I ended making a bash script based on this one
http://forum.subsonic.org/forum/viewtopic.php?t=4058 (wich didn't work for me). So did I modify it to look like this:

Code: Select all
#!/bin/bash

PIPE="/tmp/subsonic-pipe"

if [ -p $PIPE ]; then
  pkill mplayer
  rm $PIPE
fi
mkfifo $PIPE

mplayer -quiet -really-quiet -ao wav -ao pcm:file=$PIPE -playlist "$1" &
ffmpeg -i $PIPE -ab "$2" -v 0 -f mp3 -

rm $PIPE


That works great, mplayer and ffmpeg being killed when not needed anymore, I can even hit the pause button and resume playback from where I paused it. BUT it only works from the web interface or the androïd app, not in jukebox mode. The subsonic log then gives me an error about ffmpeg not liking me m3u file. I discovered that in jukebox mode my script is not called anymore, instead of it the default ffmpeg transcoding command is executed, ignoring the mpstream one.

So the question is, how can I force subsonic to call my script when playing a m3u file in jukebox mode ?

Thanks in advance, Gwel.
gwel
 
Posts: 1
Joined: Sat Feb 22, 2014 11:16 pm

Return to Help

Who is online

Users browsing this forum: No registered users and 78 guests