MinimServer Forum

Full Version: One flac24 Track does not play!?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have ripped the audio tracks of a DVD (Porcupine Tree, Anesthetize) to flac. All tracks are playing fine, but track number 3 (My Ashes) does not play. My naim uniti only reports "Error" and skips it. Playing it locally on a Nexus 5 Phone using Bubble UPnP does not do anything. It even does not report an error. But playing the file with the "play" command (I think from the sox package) or with audacious on Linux (kubuntu) does play it fine.

Before I try to convert the file back and forth somehow I would like to ask what the problem could be? Should I check something out in case it is a problem in minimserver?

I took a look into the info logfile of minimserver, but the file was not reported there as e.g. having an error in scanning.

Then I turned on the debug level and tried to play the file in BubbleUPnP locally again:

Code:
11:52:52.933 Thread-24: Monitor response: SaveProperty
11:52:52.933 Thread-24:  ErrorMsg=
11:52:52.939 Thread-20: Monitor action: SaveProperty
11:52:52.939 Thread-20:  version=1, adapter=192.168.178.84, uriPrefix=http://192.168.178.84:9791/ad767748-e235-424b-8252-014e0eede2a5/Upnp/resource/, clientEndpoint=192.168.178.30:53372
11:52:52.939 Thread-20:  ComponentName= PropertyName=logLevel PropertyValue=debug
11:52:52.940 Thread-20: saveProperty: compName=null propName=logLevel propValue=debug
11:52:52.944 Thread-20: Monitor response: SaveProperty
11:52:52.944 Thread-20:  ErrorMsg=
11:52:55.371 Thread-8: HTTPService: accepted incoming connection
11:52:55.372 Thread-8: HTTPService: waiting for incoming connection
11:52:55.372 Thread-7: HTTPService: received request, Socket[addr=/192.168.178.61,port=39371,localport=9790]
11:52:55.373 Thread-7: HTTPService: adding connection org.jminim.lib.HTTPConnection@17b61e6
11:52:55.374 Thread-72: HTTPConnection: writer thread waiting for request
11:52:55.376 Thread-73: HTTPConnection: reading HTTP request
11:52:55.376 Thread-73: GET /minimserver/*/music/cd_collection/rock_alternative/Porcupine*20Tree/2010*20-*20Anesthetize*20-*20DVD*2048kHz*2016bit/03*20-*20My*20Ashes.flac/$!transcode.wav HTTP/1.1
11:52:55.377 Thread-73: Host: 192.168.178.84:9790, Connection: Keep-Alive, User-Agent: BubbleUPnP UPnP/1.1, Accept-Encoding: gzip,deflate
11:52:55.377 Thread-73: HTTPConnection: reading HTTP request
11:52:55.378 Thread-72: HTTPConnection: writer thread processing request
11:52:55.378 Thread-72: ServerRequestHandler: factory=com.minimstreamer.Streamer$ResourceFactory@1def03a resourcePath=/volume1/music/cd_collection/rock_alternative/Porcupine Tree/2010 - Anesthetize - DVD 48kHz 16bit/03 - My Ashes.flac relativePath=cd_collection/rock_alternative/Porcupine Tree/2010 - Anesthetize - DVD 48kHz 16bit/03 - My Ashes.flac fileMimeType=FLAC streamMimeType=WAVE streamSampleBits=0 streamSampleRate=0
11:52:55.378 Thread-72: Streamer.createResource: resourcePath=/volume1/music/cd_collection/rock_alternative/Porcupine Tree/2010 - Anesthetize - DVD 48kHz 16bit/03 - My Ashes.flac relativePath=cd_collection/rock_alternative/Porcupine Tree/2010 - Anesthetize - DVD 48kHz 16bit/03 - My Ashes.flac fileMimeType=FLAC streamMimeType=WAVE streamSampleBits=0 streamSampleRate=0
11:52:55.379 Thread-72: FLACResource: transcodeType is FLAC24_WAV24
11:52:55.379 Thread-72: $$$ FLACResource: open, start=0
11:52:55.379 Thread-72: FLACResource: 03 - My Ashes.flac startByte=0 startSample=0
11:52:55.380 Thread-72: $$$ FLACResource: audioStart=7348
11:52:55.380 Thread-72: $$$ FLACResource: bitStreamPosition=7348 inputStreamPosition=8282
11:52:55.380 Thread-72: $$$ FLACResource: upperSample=13597696 lowerSample=0 upperOffset=129714506 lowerOffset=0
11:52:55.380 Thread-72: $$$ FLACResource: reading frames
11:52:55.394 Thread-72: $$$ FLACResource: initial frameSampleNumber=0 sampleOffset=0
11:52:55.394 Thread-72: $$$ FLACResource: byteOffset=0
11:52:55.400 Thread-72: FLACResource: writeData, total=244758572
11:52:55.402 Thread-72: HTTP/1.1 200 OK, Accept-Ranges: bytes, Date: Sat, 23 May 2015 11:52:55 GMT, Content-Length: 244758572, Content-Type: audio/x-wav, Connection: keep-alive, Last-Modified: Sat, 08 Nov 2014 20:04:47 GMT
11:52:55.417 Thread-73: HTTPConnection: end of input stream data
11:52:55.417 Thread-73: HTTPConnection: closing Socket[addr=/192.168.178.61,port=39371,localport=9790]
11:52:55.418 Thread-73: HTTPService: removing connection org.jminim.lib.HTTPConnection@17b61e6
11:52:55.418 Thread-72: FLACResource: close
11:52:55.419 Thread-72: FLACResource: closeDecoder
11:52:55.419 Thread-72: ServerResourceBase: close
11:52:55.419 Thread-72: HTTPConnection: SocketException writing HTTP response to Socket[addr=/192.168.178.61,port=39371,localport=9790]
11:52:55.419 Thread-72: HTTPConnection: writer thread interrupted
11:52:58.665 Thread-23: Monitor action: SaveProperty
11:52:58.665 Thread-23:  version=1, adapter=192.168.178.84, uriPrefix=http://192.168.178.84:9791/ad767748-e235-424b-8252-014e0eede2a5/Upnp/resource/, clientEndpoint=192.168.178.30:53377
11:52:58.665 Thread-23:  ComponentName= PropertyName=logLevel PropertyValue=info
11:52:58.666 Thread-23: saveProperty: compName=null propName=logLevel propValue=info

Transcoding is configured like: "aac : wav24, alac : wav24, flac : wav24, mp3 : wav24, * : wav24"

Used Versions:
minimserver: 0.8.3 update 65
minimstreamer: 0.5.12
Ok, sorry for the alert. I think I have found the reason.

The DVD came with two audio streams
1) 48000 Hz, stereo, s16
2) 48000 Hz, 5.1, s32

Nearly all tracks had the stereo stream in the same stream number, but 3 tracks had the both streams swapped. (Why are the producers doing this?) Track number 3 is one of these that are 5.1 s32 flac. I have to rip the correct streams again out of the ripped vob files.
Reference URL's