Reply To: Can’t play FLAC or OGG transcode but can play MP3

#14435
Anonymous
Inactive

Here’s the result from a FLAC

2007-11-21 17:38:33 (00000402): Got listen socket 12
2007-11-21 17:38:33 (00011c03): Thread 69:
2007-11-21 17:38:33 (00011c03): Request: GET /rsp/stream/11006 HTTP/1.0

2007-11-21 17:38:33 (00011c03): Thread 69: Read: User-Agent: Roku SoundBridge/3.0

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *User-Agent=Roku SoundBridge/3.0*
2007-11-21 17:38:33 (00011c03): Added *User-Agent=Roku SoundBridge/3.0*
2007-11-21 17:38:33 (00011c03): Thread 69: Read: Host: 10.0.0.3:3689

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *Host=10.0.0.3:3689*
2007-11-21 17:38:33 (00011c03): Added *Host=10.0.0.3:3689*
2007-11-21 17:38:33 (00011c03): Thread 69: Read: Accept: */*

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *Accept=*/**
2007-11-21 17:38:33 (00011c03): Added *Accept=*/**
2007-11-21 17:38:33 (00011c03): Thread 69: Read: Pragma: no-cache

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *Pragma=no-cache*
2007-11-21 17:38:33 (00011c03): Added *Pragma=no-cache*
2007-11-21 17:38:33 (00011c03): Thread 69: Read: accept-codecs: wma,mpeg,wav,mp4a,alac

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *accept-codecs=wma,mpeg,wav,mp4a,alac*
2007-11-21 17:38:33 (00011c03): Added *accept-codecs=wma,mpeg,wav,mp4a,alac*
2007-11-21 17:38:33 (00011c03): Thread 69: Read: rsp-version: 0.1

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *rsp-version=0.1*
2007-11-21 17:38:33 (00011c03): Added *rsp-version=0.1*
2007-11-21 17:38:33 (00011c03): Thread 69: Read: transcode-codecs: wav,mp3

2007-11-21 17:38:33 (00011c03): Thread 69: Adding header *transcode-codecs=wav,mp3*
2007-11-21 17:38:33 (00011c03): Added *transcode-codecs=wav,mp3*
2007-11-21 17:38:33 (00011c03): Thread 69: Read:

2007-11-21 17:38:33 (00011c03): Thread 69: Headers parsed!
2007-11-21 17:38:33 (00011c03): Checking to see if connection matches keep-alive
2007-11-21 17:38:33 (00011c03): Nope!
2007-11-21 17:38:33 (00011c03): Thread 69: Connection type HTTP/1.0

: Connection: non-persist
2007-11-21 17:38:33 (00011c03): Thread 69: Original URI: /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Thread 69: Translated URI: /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Thread 69: Preparing to find handler
2007-11-21 17:38:33 (00011c03): Checking /rsp/stream/11006 against handler for /
2007-11-21 17:38:33 (00011c03): Thread 69: URI Match!
2007-11-21 17:38:33 (00011c03): Thread 69: Time is 1195666713 seconds after epoch
2007-11-21 17:38:33 (00011c03): Thread 69: Setting time header
2007-11-21 17:38:33 (00011c03): Added *Date=Wed, 21 Nov 2007 17:38:33 GMT*
2007-11-21 17:38:33 (00011c03): Added *Connection=close*
2007-11-21 17:38:33 (00011c03): Added *Server=mt-daapd/svn-1696*
2007-11-21 17:38:33 (00011c03): Added *Content-Type=text/html*
2007-11-21 17:38:33 (00011c03): Added *Content-Language=en_us*
2007-11-21 17:38:33 (00011c03): Thread 69: Using non-default handler
2007-11-21 17:38:33 (00011c03): in main_auth
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Dispatching auth for /rsp/stream/11006 to plugin
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Dispatching /rsp/stream/11006 to rsp/svn-1696
2007-11-21 17:38:33 (00011c03): Checking if pw required for /rsp/stream/11006 as user
2007-11-21 17:38:33 (00011c03): Nope
2007-11-21 17:38:33 (00011c03): in main_handler
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Dispatching /rsp/stream/11006 to plugin
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Checking url /rsp/stream/11006
2007-11-21 17:38:33 (00011c03): Dispatching /rsp/stream/11006 to rsp/svn-1696
2007-11-21 17:38:33 (00011c03): Getting uri...
2007-11-21 17:38:33 (00011c03): Mallocing privinfo...
2007-11-21 17:38:33 (00011c03): Tokenizing url
2007-11-21 17:38:33 (00011c03): Found 5 elements
2007-11-21 17:38:33 (00011c03): Checking reponse 0
2007-11-21 17:38:33 (00011c03): Checking reponse 1
2007-11-21 17:38:33 (00011c03): Checking reponse 2
2007-11-21 17:38:33 (00011c03): Checking reponse 3
2007-11-21 17:38:33 (00011c03): Checking reponse 4
2007-11-21 17:38:33 (00011c03): Found it! Index: 4
2007-11-21 17:38:33 (00011c03): Executing: select * from songs where id=11006
2007-11-21 17:38:33 (00011c03): Entering config_set_status
2007-11-21 17:38:33 (00011c03): Exiting config_set_status
2007-11-21 17:38:33 (00011c03): Session 0: Streaming file '(01) New Order - True Faith '94.flac' to 10.0.0.8 (offset 0)
2007-11-21 17:38:33 (00011c03): Transcoding /disk1/UserAccess/FLACs/New Order - (The Best Of)/(01) New Order - True Faith '94.flac with ssc-script/svn-1696
2007-11-21 17:38:33 (00011c03): Executing /opt/sbin/mt-daapd-ssc.sh "/disk1/UserAccess/FLACs/New Order - "'('"The Best Of"')'"/"'('"01"')'" New Order - True Faith '94.flac" 0 335.533 "flac"
2007-11-21 17:38:33 (00011c03): Updating Content-Type from text/html to audio/wav
2007-11-21 17:38:33 (00011c03): Updating Connection from close to Close
2007-11-21 17:38:33 (00011c03): Emitting reponse header Content-Language: en_us
2007-11-21 17:38:33 (00011c03): Emitting reponse header Content-Type: audio/wav
2007-11-21 17:38:33 (00011c03): Emitting reponse header Server: mt-daapd/svn-1696
2007-11-21 17:38:33 (00011c03): Emitting reponse header Connection: Close
2007-11-21 17:38:33 (00011c03): Emitting reponse header Date: Wed, 21 Nov 2007 17:38:33 GMT
2007-11-21 17:38:33 (00011c03): Entering config_set_status
2007-11-21 17:38:33 (00011c03): Exiting config_set_status
2007-11-21 17:38:33 (00011c03): Executing: update songs set play_count=play_count + 1, time_played=1195666713 where id=11006
2007-11-21 17:38:33 (00011c03): Rows: 1
2007-11-21 17:38:33 (00011c03): Thread 69: Terminating
2007-11-21 17:38:33 (00011c03): Thread 69: Freeing request headers
2007-11-21 17:38:33 (00011c03): Thread 69: Freeing response headers
2007-11-21 17:38:33 (00011c03): Thread 69: Freeing request vars
2007-11-21 17:38:33 (00011c03): Thread 69: Closing fd
2007-11-21 17:38:33 (00011c03): With thread 69 exiting, 0 are still running
2007-11-21 17:38:37 (00000402): Got listen socket 12
2007-11-21 17:38:37 (00012003): Thread 70:

Comparing it to an MP3 output, there doesn’t seem to be a track length sent out for the FLAC

2007-11-21 17:39:21 (00014003): Updating Content-Type from text/html to audio/mp3
2007-11-21 17:39:21 (00014003): Added *Content-Length=9076009*
2007-11-21 17:39:21 (00014003): Updating Connection from close to Close
2007-11-21 17:39:21 (00014003): Emitting reponse header Content-Length: 9076009