You are here: Home » Topic » on the fly conversion doesnt work

on the fly conversion doesnt work

This topic contains 20 replies, has 3 voices, and was last updated by  mas 10 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #885

    mas
    Participant

    Using version svs-1433 on an unslung 6.7 NSLU system. Thats the newest that the feed from fireflymediaserver provides for the NSLU.

    When I try to playback an ogg (oggdec and so is installed via ipkg) then I get to see this in the log:

    2006-12-12 01:49:40 (000c0804): Session 0: Streaming file ’01. To the Moon & Back – [Savage Garden].ogg’ to 192.168.2.5 (offset 0)

    No error or so. But nothing arrives at itunes or winamp with msldaap plugin. I use the default config file that came with the svs (with adapted musicpath and .ogg in the fileextensions of course). Shouldnt that do conversion then?
    It also tells me is trying to playback a wav on the client, but just nothing arrives.

    Any ideas?

    #7827

    rpedde
    Participant

    @mas wrote:

    Using version svs-1433 on an unslung 6.7 NSLU system. Thats the newest that the feed from fireflymediaserver provides for the NSLU.

    When I try to playback an ogg (oggdec and so is installed via ipkg) then I get to see this in the log:

    2006-12-12 01:49:40 (000c0804): Session 0: Streaming file ’01. To the Moon & Back – [Savage Garden].ogg’ to 192.168.2.5 (offset 0)

    No error or so. But nothing arrives at itunes or winamp with msldaap plugin. I use the default config file that came with the svs (with adapted musicpath and .ogg in the fileextensions of course). Shouldnt that do conversion then?
    It also tells me is trying to playback a wav on the client, but just nothing arrives.

    Any ideas?

    It’s not even trying to transcode. either ogg isn’t in your ssc_codecs, or you dont’ have the ssc-script plugin loaded.

    — Ron

    #7828

    mas
    Participant

    Well this is in the config:

    extensions = .mp3,.m4a,.m4p,.ogg,.flac,.url,.alac
    ssc_codectypes = ogg,flac,alac
    ssc_prog = /opt/sbin/mt-daapd-ssc.sh

    [plugins]
    plugin_dir = /share/hdd/conf/firefly/plugins
    plugins = rsp.so,ssc-script.so

    And yes, I moved the firefly webroot + plugins to /share/hdd/conf/firefly and /opt/bin/mt-daapd-ssc.sh is the location of the script.
    I also just looked into that script and verified the path to oggdec is right.

    So dunno why it wouldnt transcode. It also appeared as if iTunes was waiting for a wav stream when I tried to playbakc the ogg.

    #7829

    rpedde
    Participant

    @mas wrote:

    Well this is in the config:

    extensions = .mp3,.m4a,.m4p,.ogg,.flac,.url,.alac
    ssc_codectypes = ogg,flac,alac
    ssc_prog = /opt/sbin/mt-daapd-ssc.sh

    [plugins]
    plugin_dir = /share/hdd/conf/firefly/plugins
    plugins = rsp.so,ssc-script.so

    And yes, I moved the firefly webroot + plugins to /share/hdd/conf/firefly and /opt/bin/mt-daapd-ssc.sh is the location of the script.
    I also just looked into that script and verified the path to oggdec is right.

    So dunno why it wouldnt transcode. It also appeared as if iTunes was waiting for a wav stream when I tried to playbakc the ogg.

    Ah, sorry, you are probably right. I thought it said “transcoding” not “streaming” when it was transcoding. I guess I have to fix that. 🙂

    Check that /opt/sbin/mt-daapd-ssc.sh is executable and the shebang is right — I think it uses /opt/bin/bash, so check that. Also, try adding explicit paths to oggdec rather than just assuming it’s on the path.

    Guess I could fix that too.

    – Ron

    #7830

    mas
    Participant

    ls -la /opt/sbin/mt-daapd*
    -rwxr-xr-x 1 root root 279092 Nov 19 23:22 /opt/sbin/mt-daapd
    -rwxr-xr-x 1 root root 1200 Nov 19 23:22 /opt/sbin/mt-daapd-ssc.sh

    #!/opt/bin/bash
    WAVSTREAMER=/opt/bin/wavstreamer
    OGGDEC=/opt/bin/oggdec

    ls -la /opt/bin/oggdec
    -rwxr-xr-x 1 root root 8992 Nov 6 21:43 /opt/bin/oggdec

    ls -la /opt/bin/wavstreamer
    -rwxr-xr-x 1 root root 8212 Nov 19 23:22 /opt/bin/wavstreamer

    … hmmm looks all right.

    #7831

    mas
    Participant

    I case you know what I can do to debug it pls let me know…

    #7832

    rpedde
    Participant

    @mas wrote:

    I case you know what I can do to debug it pls let me know…

    Wow, everything looks right.

    Might help to put your debuglevel to 9 and see what that tells you. It should show you the actual command it’s running to play that song.

    Also, connect with iTunes and verify that the .ogg files show good metadata (title, artist, etc) and that when you do a “get info” on a song, it shows it to be a .wav file.

    #7833

    mas
    Participant

    1. Holy shit, -d 9 explodes the logfile. 1.5 MB for the startup alone. Also all goes down to a crawl. 12 Minutes for startup and connecting with a client again causes headache while watching the logs.

    Anyway, heres the log from one attempt to play an ogg. I connected with GetItTogether as I hate to install iTunes. Can dig up my laptop with iTunes installed if its needed but this should tell all that there is and its long:

    2006-12-17 07:37:12 (00000400): SocketDataReady got a packet from 192.168.2.3 to 224.0.0.251 on interface 192.168.2.2/ixp0/2
    2006-12-17 07:37:12 (00001404): Thread 2: Freeing request headers
    2006-12-17 07:37:12 (00000400): Received Query from 192.168.2.3 :5353 to 224.0.0.251 :5353 on 0x0005C468 with 1 Questi
    on, 1 Answer, 0 Authorities, 0 Additionals
    2006-12-17 07:37:12 (00001404): Thread 2: Freeing response headers
    2006-12-17 07:37:12 (00000400): AddRecordToResponseList: _daap._tcp.local. (PTR) already in list
    2006-12-17 07:37:12 (00001404): Thread 2: Freeing request vars
    2006-12-17 07:37:13 (00000400): AddRecordToResponseList: Mabuse Music Server._daap._tcp.local. (SRV) already in list
    2006-12-17 07:37:13 (00001404): Thread 2: got request
    2006-12-17 07:37:13 (00000400): AddRecordToResponseList: Mabuse Music Server._daap._tcp.local. (TXT) already in list
    2006-12-17 07:37:13 (00001404): Request: GET /databases/1/items/3958.wav?session-id=3 HTTP/1.1
    2006-12-17 07:37:13 (00000400): AddRecordToResponseList: schnecke.local. (Addr) already in list
    2006-12-17 07:37:13 (00001404): Thread 2: Read: Host: 192.168.2.2:3689/
    2006-12-17 07:37:13 (00000400): select(7, 1960987.985351)
    2006-12-17 07:37:13 (00001404): Thread 2: Adding header *Host=192.168.2.2:3689/*
    2006-12-17 07:37:13 (00001404): Added *Host=192.168.2.2:3689/*
    2006-12-17 07:37:13 (00001404): Thread 2: Read: Accept: */*
    2006-12-17 07:37:13 (00001404): Thread 2: Adding header *Accept=*/**
    2006-12-17 07:37:13 (00001404): Added *Accept=*/**
    2006-12-17 07:37:13 (00001404): Thread 2: Read: Cache-Control: no-cache
    2006-12-17 07:37:13 (00001404): Thread 2: Adding header *Cache-Control=no-cache*
    2006-12-17 07:37:13 (00001404): Added *Cache-Control=no-cache*
    2006-12-17 07:37:13 (00001404): Thread 2: Read: User-Agent: GIT/0.2 (Windows; N)
    2006-12-17 07:37:13 (00001404): Thread 2: Adding header *User-Agent=GIT/0.2 (Windows; N)*
    2006-12-17 07:37:13 (00001404): Added *User-Agent=GIT/0.2 (Windows; N)*
    2006-12-17 07:37:13 (00001404): Thread 2: Read: Client-DAAP-Version: 3.0
    2006-12-17 07:37:13 (00001404): Thread 2: Adding header *Client-DAAP-Version=3.0*
    2006-12-17 07:37:13 (00001404): Added *Client-DAAP-Version=3.0*
    2006-12-17 07:37:14 (00001404): Thread 2: Read: Client-DAAP-Access-Index: 2
    2006-12-17 07:37:14 (00001404): Thread 2: Adding header *Client-DAAP-Access-Index=2*
    2006-12-17 07:37:14 (00001404): Added *Client-DAAP-Access-Index=2*
    2006-12-17 07:37:14 (00001404): Thread 2: Read: Client-DAAP-Validation: 485D003536386E4163085922B6B9CF14
    2006-12-17 07:37:14 (00001404): Thread 2: Adding header *Client-DAAP-Validation=485D003536386E4163085922B6B9CF14*
    2006-12-17 07:37:14 (00001404): Added *Client-DAAP-Validation=485D003536386E4163085922B6B9CF14*
    2006-12-17 07:37:14 (00001404): Thread 2: Read: Authorization: Basic R2V0X0l0X1RvZ2V0aGVyOmhvaG9obw==
    2006-12-17 07:37:14 (00001404): Thread 2: Adding header *Authorization=Basic R2V0X0l0X1RvZ2V0aGVyOmhvaG9obw==*
    2006-12-17 07:37:14 (00001404): Added *Authorization=Basic R2V0X0l0X1RvZ2V0aGVyOmhvaG9obw==*
    2006-12-17 07:37:14 (00001404): Thread 2: Read: Client-DAAP-Request-ID: 1
    2006-12-17 07:37:14 (00001404): Thread 2: Adding header *Client-DAAP-Request-ID=1*
    2006-12-17 07:37:14 (00001404): Added *Client-DAAP-Request-ID=1*
    2006-12-17 07:37:14 (00001404): Thread 2: Read: Connection: Close
    2006-12-17 07:37:14 (00001404): Thread 2: Adding header *Connection=Close*
    2006-12-17 07:37:14 (00001404): Added *Connection=Close*
    2006-12-17 07:37:14 (00001404): Thread 2: Read:
    2006-12-17 07:37:14 (00001404): Thread 2: Headers parsed!

    2006-12-17 07:37:14 (00001404): Checking to see if connection matches close
    2006-12-17 07:37:14 (00001404): And it DOES!
    2006-12-17 07:37:14 (00001404): Thread 2: Connection type HTTP/1.1
    : Connection: non-persist
    2006-12-17 07:37:14 (00001404): Thread 2: parsing GET args
    2006-12-17 07:37:15 (00001404): Thread 2: Entering ws_getgetvars (session-id=3)
    2006-12-17 07:37:15 (00001404): Thread 2: Adding arg session-id = 3
    2006-12-17 07:37:15 (00001404): Added *session-id=3*
    2006-12-17 07:37:15 (00001404): Thread 2: Done parsing GET/POST args!
    2006-12-17 07:37:15 (00001404): Thread 2: Original URI: /databases/1/items/3958.wav
    2006-12-17 07:37:15 (00001404): Thread 2: Translated URI: /databases/1/items/3958.wav
    2006-12-17 07:37:15 (00001404): Thread 2: Preparing to find handler
    2006-12-17 07:37:15 (00001404): Thread 2: URI Match!
    2006-12-17 07:37:15 (00001404): Thread 2: Time is 1166337435 seconds after epoch
    2006-12-17 07:37:15 (00001404): Thread 2: Setting time header
    2006-12-17 07:37:15 (00001404): Added *Date=Sun, 17 Dec 2006 06:37:15 GMT*
    2006-12-17 07:37:15 (00001404): Added *Connection=close*
    2006-12-17 07:37:15 (00001404): Added *Server=mt-daapd/svn-1433*
    2006-12-17 07:37:15 (00001404): Added *Content-Type=text/html*
    2006-12-17 07:37:15 (00001404): Added *Content-Language=en_us*
    2006-12-17 07:37:15 (00001404): Thread 2: Using non-default handler
    2006-12-17 07:37:15 (00001404): in main_auth
    2006-12-17 07:37:15 (00001404): Checking url /databases/1/items/3958.wav
    2006-12-17 07:37:15 (00001404): Dispatching auth for /databases/1/items/3958.wav to plugin
    2006-12-17 07:37:15 (00001404): Checking url /databases/1/items/3958.wav
    2006-12-17 07:37:15 (00001404): Dispatching /databases/1/items/3958.wav to daap/svn-1433
    2006-12-17 07:37:16 (00001404): in main_handler
    2006-12-17 07:37:16 (00001404): Checking url /databases/1/items/3958.wav
    2006-12-17 07:37:16 (00001404): Dispatching /databases/1/items/3958.wav to plugin
    2006-12-17 07:37:16 (00001404): Checking url /databases/1/items/3958.wav
    2006-12-17 07:37:16 (00001404): Dispatching /databases/1/items/3958.wav to daap/svn-1433
    2006-12-17 07:37:16 (00001404): Getting uri…
    2006-12-17 07:37:16 (00001404): Mallocing privinfo…
    2006-12-17 07:37:16 (00001404): Added *Accept-Ranges=bytes*
    2006-12-17 07:37:16 (00001404): Added *DAAP-Server=firefly/svn-1433*
    2006-12-17 07:37:16 (00001404): Updating Content-Type from text/html to application/x-dmap-tagged
    2006-12-17 07:37:16 (00001404): Added *Cache-Control=no-cache*
    2006-12-17 07:37:16 (00001404): Added *Expires=-1*
    2006-12-17 07:37:16 (00001404): Index (null): offset 0, limit 999999
    2006-12-17 07:37:16 (00001404): Tokenizing url
    2006-12-17 07:37:16 (00001404): Found 17 elements
    2006-12-17 07:37:16 (00001404): Checking reponse 0
    2006-12-17 07:37:16 (00001404): Checking reponse 1
    2006-12-17 07:37:16 (00001404): Checking reponse 2

    2006-12-17 07:37:16 (00001404): Checking reponse 3
    2006-12-17 07:37:16 (00001404): Checking reponse 4
    2006-12-17 07:37:16 (00001404): Checking reponse 5
    2006-12-17 07:37:17 (00001404): Checking reponse 6
    2006-12-17 07:37:17 (00001404): Checking reponse 7
    2006-12-17 07:37:17 (00001404): Checking reponse 8
    2006-12-17 07:37:17 (00001404): Checking reponse 9
    2006-12-17 07:37:17 (00001404): Found it! Index: 9
    2006-12-17 07:37:17 (00001404): Executing: select * from songs where id=3958
    2006-12-17 07:37:17 (00001404): Entering config_set_status
    2006-12-17 07:37:17 (00001404): Exiting config_set_status
    2006-12-17 07:37:17 (00001404): Session 0: Streaming file ’01. To the Moon & Back – [Savage Garden].ogg’ to 192.168.2.3 (offs
    et 0)
    2006-12-17 07:37:17 (00001404): Transcoding /share/hdd/data/Music/Savage Garden/Savage Garden/01. To the Moon & Back – [Savag
    e Garden].ogg with ssc-script/svn-1433
    2006-12-17 07:37:17 (00001404): Executing /opt/sbin/mt-daapd-ssc.sh “/share/hdd/data/Music/Savage Garden/Savage Garden/01. To
    the Moon “‘&'” Back – [Savage Garden].ogg” 0 341.000 “ogg”
    2006-12-17 07:37:17 (00001404): Updating Content-Type from application/x-dmap-tagged to audio/wav
    2006-12-17 07:37:17 (00001404): Updating Connection from close to Close
    2006-12-17 07:37:17 (00001404): Emitting reponse header Expires: -1
    2006-12-17 07:37:17 (00001404): Emitting reponse header Cache-Control: no-cache
    2006-12-17 07:37:17 (00001404): Emitting reponse header DAAP-Server: firefly/svn-1433
    2006-12-17 07:37:18 (00001404): Emitting reponse header Accept-Ranges: bytes
    2006-12-17 07:37:18 (00001404): Emitting reponse header Content-Language: en_us
    2006-12-17 07:37:18 (00001404): Emitting reponse header Content-Type: audio/wav
    2006-12-17 07:37:18 (00001404): Emitting reponse header Server: mt-daapd/svn-1433
    2006-12-17 07:37:18 (00001404): Emitting reponse header Connection: Close
    2006-12-17 07:37:18 (00001404): Emitting reponse header Date: Sun, 17 Dec 2006 06:37:15 GMT
    2006-12-17 07:37:18 (00001404): Entering config_set_status
    2006-12-17 07:37:18 (00001404): Exiting config_set_status
    2006-12-17 07:37:18 (00001404): Thread 2: Terminating
    2006-12-17 07:37:18 (00001404): Thread 2: Freeing request headers
    2006-12-17 07:37:18 (00001404): Thread 2: Freeing response headers
    2006-12-17 07:37:18 (00001404): Thread 2: Freeing request vars
    2006-12-17 07:37:18 (00001404): Thread 2: Closing fd
    2006-12-17 07:37:18 (00001404): With thread 2 exiting, 0 are still running

    I think thats all.

    #7834

    mas
    Participant

    Ok, when I try to manually execute

    /opt/sbin/mt-daapd-ssc.sh /share/hdd/data/Music/Savage Garden/Savage Garden/01. To the Moon & Back – [Savage Garden].ogg 0 341.000 “ogg”

    then it fills my screen with garbage which likely is the wav stream.

    And trying to duplicate the exact same escaping and executing

    /opt/sbin/mt-daapd-ssc.sh “/share/hdd/data/Music/Savage Garden/Savage Garden/01. To the Moon “‘&'” Back – [Savage Garden].ogg” 0 341.000 “ogg”

    also garbages my screen. So the commands seem to work but somehow nothing arrives. Why?

    #7835

    rpedde
    Participant

    @mas wrote:

    also garbages my screen. So the commands seem to work but somehow nothing arrives. Why?

    Because GIT doesn’t play .wav files.

    iTunes should play it though, but I’m not sure why the daap plugin for winamp wouldn’t though.

    #7836

    mas
    Participant

    Well the problem is iTunes does NOT play it as well. I had only used GIT as I didnt have iTunes on the other PC.

    iTunes sees this (properties):
    Type: wav-audio (remote) [entfernt in german, I think it means remote as it shows the same for mpeg files which do play]
    Stream: 1408 kbit/sec
    Rate: 44,100 kHz
    Changed: 10.12. etc

    BTW if the names look strange I translated this from German iTunes interface. But it gives these values. Doesnt show an error but simply doesnt play.I can even jump to a position but it does nothing, no sound and progress bar doesnt advance.

    #7837

    rpedde
    Participant

    @mas wrote:

    Well the problem is iTunes does NOT play it as well. I had only used GIT as I didnt have iTunes on the other PC.

    iTunes sees this (properties):
    Type: wav-audio (remote) [entfernt in german, I think it means remote as it shows the same for mpeg files which do play]
    Stream: 1408 kbit/sec
    Rate: 44,100 kHz
    Changed: 10.12. etc

    BTW if the names look strange I translated this from German iTunes interface. But it gives these values. Doesnt show an error but simply doesnt play.I can even jump to a position but it does nothing, no sound and progress bar doesnt advance.

    If you do “oggdec” on the nslu2, does it say:

    OggDec 1.0 (Tremor)

    Specifically, does it mention Tremor? If not, then you want to uninstall vorbis-tools and install ivorbis-tools. You should have ivorbis-tools though — it’s a prereq for nightlies and conflicts with vorbis-tools.

    Unless I botched the conflicts and requires or something.

    #7838

    mas
    Participant

    This is the output of oggdec:

    oggdec
    OggDec 1.0 (Tremor)
    Usage: oggdec [flags] file1.ogg [file2.ogg … fileN.ogg]

    Supported flags:
    –quiet, -Q Quiet mode. No console output.
    –help, -h Produce this help message.
    –version, -v Print out version number.
    –raw, -R Raw (headerless) output.
    –output, -o Output to given filename. May only be used
    if there is only one input file



    This is installed (all with vorbis in name thats installed):

    ivorbis-tools 1.0-2 1.0-2 Tools to allow you to play, encode, and manage Ogg Vorbis files. This version is hacked to use the Tremor integer decoder. delete

    libvorbis 1.1.2-3 1.1.2-3 Ogg Vorbis compressed audio format. delete

    libvorbisidec cvs-20050221-2 cvs-20050221-2 libvorbisidec is the integer-only ogg decoder library, AKA Tremor delete

    The normal vorbis-tools is also listed in the package list but not installed. As it should if I understand you right.

    #7839

    rpedde
    Participant

    @mas wrote:

    The normal vorbis-tools is also listed in the package list but not installed. As it should if I understand you right.

    Correct. Everything looks right. You have the right packages, it works by hand…. I can’t even think of what might be wrong.

    Well, one last thing, I guess… you could su to “nobody” and run the program like that. I can’t imagine why it wouldn’t work, but that’s the only thing that’s different. If that doesn’t work, I can’t imagine what it could be.

    Everything looks right.

    #7840

    mas
    Participant

    Hehe Ron,

    that su nobody is a problem. I have busybox installed here and it seems that stupid thing has no su installed. This is what a su gives:

    # su
    TinyLogin v0.80 (2004.09.28-10:25+0000) multi-call binary — GPL2

    Usage: tinylogin [function] [arguments]…
    or: [function] [arguments]…

    TinyLogin is a multi-call binary that combines several tiny Unix
    utilities for handling logins, user authentication, changing passwords,
    and otherwise maintaining users and groups on an embedded system. Most
    people will create a link to TinyLogin for each function they wish to
    use, and TinyLogin will act like whatever it was invoked as.

    Currently defined functions:
    tinylogin, getty, login, passwd

    The mt-daapd seem also not to run as nobody but as guest – ps gives:

    19354 guest 504 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    19355 guest 2120 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    19356 guest 2120 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    19357 guest 2120 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    19359 guest 2120 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    19665 guest 2120 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf
    19736 guest 2120 S N /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf

    You think that could be the problem?

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in to reply to this topic.