You are here: Home » Topic » OGG ssc setup question

OGG ssc setup question

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #554
    jsievert
    Guest

    I am trying to set up mt-daapd version 3.0_pre1372 in Gentoo and I am having some trouble getting the transcodeing to work. From what I have seen in the fourm so far my config file just needs these two lines.

    ssc_codectypes = ogg,flac,alac
    ssc_prog = /usr/bin/mt-daapd-ssc.sh

    And then if I do a mt-daapd -f -d5 I should see a new thread being started fotr the transcode process. Instead all I am getting in Itunes is a quick scratch. Any ideas as to what I am missing?

    Thanks in advance….

    #6203
    risimmonsuk
    Participant

    To serve ogg files, you also need to put ogg in the filetypes list in the config file (ie along with mp3 etc), as well as in the ssc_codectypes section.

    Also your mt-daapd needs to have been built with –enable-ogg (and –enable-flac if you want flac also).

    HTH

    #6204
    rpedde
    Participant

    @jsievert wrote:

    I am trying to set up mt-daapd version 3.0_pre1372 in Gentoo and I am having some trouble getting the transcodeing to work. From what I have seen in the fourm so far my config file just needs these two lines.

    ssc_codectypes = ogg,flac,alac
    ssc_prog = /usr/bin/mt-daapd-ssc.sh

    And then if I do a mt-daapd -f -d5 I should see a new thread being started fotr the transcode process. Instead all I am getting in Itunes is a quick scratch. Any ideas as to what I am missing?

    Thanks in advance….

    Try a -d9, and set a logfile in the config. Then you’ll better see what’s going on, including what the command line is that it’s executing.

    You’ll want to make sure you have oggdec installed as well.

    — Ron

    #6205
    jsievert
    Guest

    Well I know I do have .ogg in the extension line.

    extensions = .mp3,.m4a,.m4p,.ogg

    I also do see the ogg files in itunes, just all I get is about a one second screech.

    As for haveing oggdec installed, I did check and it was there. Also I do have the vorbis use flag enabled.

    When I get home tonight I will enable -d9 and the log file and post info from both.

    Thanks for the hints!

    #6206
    jsievert
    Guest

    Got the log file with -d 9, here is the part where it finds the song and starts the stream.

    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Original URI: daap://192.168.100.102:3689/databases/1/items/3923.ogg
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Translated URI: /databases/1/items/3923.ogg
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Preparing to find handler
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: URI Match!
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Time is 1157215130 seconds after epoch
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Setting time header
    2006-09-02 11:38:50 (b5a8aba0): Added *Date=Sat, 2 Sep 2006 16:38:50 GMT*
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Using non-default handler
    2006-09-02 11:38:50 (b5a8aba0): Added *Accept-Ranges=bytes*
    2006-09-02 11:38:50 (b5a8aba0): Added *DAAP-Server=mt-daapd/svn-1372*
    2006-09-02 11:38:50 (b5a8aba0): Added *Content-Type=application/x-dmap-tagged*
    2006-09-02 11:38:50 (b5a8aba0): Added *Cache-Control=no-cache*
    2006-09-02 11:38:50 (b5a8aba0): Added *Expires=-1*
    2006-09-02 11:38:50 (b5a8aba0): Executing: select * from songs where id=3923
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Length of file (remaining) is 11135911
    2006-09-02 11:38:50 (b5a8aba0): Updating Content-Type from application/x-dmap-tagged to audio/ogg
    2006-09-02 11:38:50 (b5a8aba0): Added *Content-Length=11135911*
    2006-09-02 11:38:50 (b5a8aba0): Added *Connection=Close*
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Connection: Close
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Content-Length: 11135911
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Expires: -1
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Cache-Control: no-cache
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Content-Type: audio/ogg
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header DAAP-Server: mt-daapd/svn-1372
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Accept-Ranges: bytes
    2006-09-02 11:38:50 (b5a8aba0): Emitting reponse header Date: Sat, 2 Sep 2006 16:38:50 GMT
    2006-09-02 11:38:50 (b5a8aba0): Entering config_set_status
    2006-09-02 11:38:50 (b5a8aba0): Exiting config_set_status
    2006-09-02 11:38:50 (b5a8aba0): Session 0: Streaming file ‘2Pac – Troublesome 96′.ogg’ to 192.168.100.45 (offset 0)
    2006-09-02 11:38:50 (b5a8aba0): Finished streaming file to remote: 196608 bytes
    2006-09-02 11:38:50 (b5a8aba0): Entering config_set_status
    2006-09-02 11:38:50 (b5a8aba0): Exiting config_set_status
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Terminating
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Freeing request headers
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Freeing response headers
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Freeing request vars
    2006-09-02 11:38:50 (b5a8aba0): Thread 1: Closing fd
    2006-09-02 11:38:50 (b5a8aba0): With thread 1 exiting, 1 are still running

    Hope that helps, let me know if you need any more info.

    Thanks again.

    #6207
    rpedde
    Participant

    @jsievert wrote:

    Got the log file with -d 9, here is the part where it finds the song and starts the stream.

    Doesn’t look like you are using the script transcoder. Check your [plugins] section, and make sure you have “ssc-script.so” listed as a plugin.

    It should look like:

    [plugins]
    plugin_dir = /path/to/plugin/dir
    plugins=rsp.so,ssc-script.so

    — Ron

    #6208
    jsievert
    Guest

    Getting closer!
    I added :

    [plugins]
    plugin_dir = /usr/share/mt-daapd/plugins/
    plugins = rsp.so,ssc-script.so

    And this is what I got in the log files.

    Session 0: Streaming file ’50 Cent – In My Hood.ogg’ to 192.168.100.45 (offset 0)
    Transcoding /data/Music/50 Cent/The Massacre/50 Cent – In My Hood.ogg with ssc-script/svn-1372
    Executing /usr/bin/mt-daapd-ssc.sh “/data/Music/50 Cent/The Massacre/50 Cent – In My Hood.ogg” 0 231.000 “ogg”
    Updating Content-Type from application/x-dmap-tagged to audio/wav
    Added *Connection=Close*
    Emitting reponse header Connection: Close
    Emitting reponse header Expires: -1
    Emitting reponse header Cache-Control: no-cache
    Emitting reponse header Content-Type: audio/wav
    Emitting reponse header DAAP-Server: mt-daapd/svn-1372
    Emitting reponse header Accept-Ranges: bytes
    Emitting reponse header Date: Sat, 2 Sep 2006 23:46:04 GMT
    wavstreamer: Write failed.
    Error writing to file: Broken pipe
    Got CLD signal. Reaping
    Entering config_set_status
    Exiting config_set_status
    Thread 2: Terminating
    Thread 2: Freeing request headers
    Thread 2: Freeing response headers
    Thread 2: Freeing request vars
    Thread 2: Closing fd

    Looks like their is a problem with wavstreamer. Any more ideas?

    Thanks

    #6209
    rpedde
    Participant

    @jsievert wrote:

    Looks like their is a problem with wavstreamer. Any more ideas?

    Don’t think so. What client are you using? Looks like it doesn’t play .wav files.

    — Ron

    #6210
    jsievert
    Guest

    iTunes 6.0.5 on Mac OS X

    #6211
    rpedde
    Participant

    @jsievert wrote:

    iTunes 6.0.5 on Mac OS X

    so much for that idea.

    You might check the transcode script (/usr/bin/mt-daapd-ssc.sh) and make sure it has a full path to oggdec.

    That’s about all I can think of.

    #6212
    jsievert
    Guest

    Not sure what you guys did but I just upgraded to 0.3.0_pre1376 and everything started working.

    Keep up the GREAT work!!!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Setup Issues’ is closed to new topics and replies.