Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Song fails to play
22-05-2018, 18:05
Post: #1
Song fails to play
Hi - I am using minimstreamer to transcode flac files to L16 as my client, an Oppo universal disc player, can't handle flacs.

In most cases this is working file, but I have a few files that won't play. I have tried copying the file, renaming, re-encoding with ffmpeg and sox, and changing some tag values, but no dice. Some files in the same directory play fine, some don't.

Can anyone shed some light on what is going on?

Log snippet below... this repeats several times before going to the next song.

Code:
08:21:44.710 Thread-1213: ContentDirectory action: Browse 0$albums$*a19$*i265
08:21:44.710 Thread-1213:  version=1, adapter=192.168.1.75, uriPrefix=http://192.168.1.75:9791/fb1a5b0f-97aa-4893-a9ff-6dc8760bbdd5/Upnp/resource/, clientEndpoint=192.168.1.107:57784
08:21:44.710 Thread-1213:  BrowseFlag=BrowseMetadata StartingIndex=0 RequestedCount=1 Filter=res,res@resolution,res@protocolInfo,res@size,res@duration,res@bitrate,res​@sampleFrequency,res@bitsPerSample,res@nrAudioChannels,res@protection,dc:creator​,dc:date,upnp:genre,upnp:album,upnp:originalTrackNumber,upnp:channelNr,upnp:sche​duledStartTime,upnp:scheduledEndTime,upnp:icon,upnp:albumArtURI,upnp:artist,cont​ainer@childCount SortCriteria=
08:21:44.711 Thread-1213: using resource URI prefix http://192.168.1.75:9790/
08:21:44.711 Thread-1213: browsing metadata of object com.minimserver.Server$TrackItem@389f02f
08:21:44.711 Thread-1213: ContentDirectory response: Browse 0$albums$*a19$*i265
08:21:44.711 Thread-1213:  NumberReturned=1 TotalMatches=1 UpdateID=0
08:21:44.732 Thread-1214: ContentDirectory action: Browse 0$albums$*a19$*i265
08:21:44.732 Thread-1214:  version=1, adapter=192.168.1.75, uriPrefix=http://192.168.1.75:9791/fb1a5b0f-97aa-4893-a9ff-6dc8760bbdd5/Upnp/resource/, clientEndpoint=192.168.1.107:57785
08:21:44.732 Thread-1214:  BrowseFlag=BrowseMetadata StartingIndex=0 RequestedCount=1 Filter=res,res@resolution,res@protocolInfo,res@size,res@duration,res@bitrate,res​@sampleFrequency,res@bitsPerSample,res@nrAudioChannels,res@protection,dc:creator​,dc:date,upnp:genre,upnp:album,upnp:originalTrackNumber,upnp:channelNr,upnp:sche​duledStartTime,upnp:scheduledEndTime,upnp:icon,upnp:albumArtURI,upnp:artist,cont​ainer@childCount SortCriteria=
08:21:44.732 Thread-1214: using resource URI prefix http://192.168.1.75:9790/
08:21:44.732 Thread-1214: browsing metadata of object com.minimserver.Server$TrackItem@3df5011f
08:21:44.732 Thread-1214: ContentDirectory response: Browse 0$albums$*a19$*i265
08:21:44.732 Thread-1214:  NumberReturned=1 TotalMatches=1 UpdateID=0
08:21:44.764 Thread-7: HTTPService: accepted incoming connection
08:21:44.765 Thread-7: HTTPService: waiting for incoming connection
08:21:44.765 Thread-6: HTTPService: received request, Socket[addr=/192.168.1.107,port=57786,localport=9790]
08:21:44.765 Thread-6: HTTPService: adding connection org.jminim.lib.HTTPConnection@70385f40
08:21:44.765 Thread-2540: HTTPConnection: writer thread waiting for request
08:21:44.765 Thread-2541: HTTPConnection: reading HTTP request
08:21:44.790 Thread-2541: GET /minimserver/*/Music/Brandi*20Carlile*20-*20By*20the*20Way,*20I*20Forgive*20You*20(2018)/01*20-*20Every*20Time*20I*20Hear*20That*20Song.flac/$!transcode.L16 HTTP/1.1
08:21:44.790 Thread-2541: HOST: 192.168.1.75:9790, DATE: Fri, 01 Aug 2008 00:05:35 GMT, CONNECTION: Keep-Alive, USER-AGENT: OPPO PLAYER, transferMode.dlna.org: Streaming, RANGE: bytes=0-42538271
08:21:44.790 Thread-2541: HTTPConnection: reading HTTP request
08:21:44.790 Thread-2540: HTTPConnection: writer thread processing request
08:21:44.790 Thread-2540: ServerRequestHandler: factory=com.minimstreamer.Streamer$ResourceFactory@776aec5c resourcePath=/mnt/archive/media/Music/Brandi Carlile - By the Way, I Forgive You (2018)/01 - Every Time I Hear That Song.flac relativePath=Brandi Carlile - By the Way, I Forgive You (2018)/01 - Every Time I Hear That Song.flac fileMimeType=FLAC streamMimeType=L16 streamSampleBits=16 streamSampleRate=0
08:21:44.791 Thread-2540: Streamer.createResource: resourcePath=/mnt/archive/media/Music/Brandi Carlile - By the Way, I Forgive You (2018)/01 - Every Time I Hear That Song.flac relativePath=Brandi Carlile - By the Way, I Forgive You (2018)/01 - Every Time I Hear That Song.flac fileMimeType=FLAC streamMimeType=L16 streamSampleBits=16 streamSampleRate=0
08:21:44.791 Thread-2540: FLACResource: transcodeType is FLAC16_L16
08:21:44.791 Thread-2540: FLACResource: 01 - Every Time I Hear That Song.flac startByte=0 startSample=0
08:21:44.792 Thread-2540: StreamerResourceBase.ProxyOutputStream: preBufferBytes=0
08:21:44.792 Thread-2540: HTTP/1.1 206 Partial Content, Content-Range: bytes 0-42538271/42538272, Accept-Ranges: bytes, Date: Tue, 22 May 2018 12:21:44 GMT, Content-Length: 42538272, Content-Type: audio/L16;rate=44100;channels=2, Connection: keep-alive, Last-Modified: Sun, 20 May 2018 14:25:08 GMT, transferMode.dlna.org: Streaming
08:21:44.792 Thread-2540: StreamerResourceBase.ProxyOutputStream: flushing 1 buffer, 0 bytes
08:21:44.792 Thread-2540: writing data: total=42538272 from file Brandi Carlile - By the Way, I Forgive You (2018)/01 - Every Time I Hear That Song.flac
08:21:44.914 Thread-2541: HTTPConnection: end of input stream data
08:21:44.914 Thread-2541: StreamerResourceBase: forced socket close: Socket[addr=/192.168.1.107,port=57786,localport=9790]
08:21:44.915 Thread-2541: HTTPService: removing connection org.jminim.lib.HTTPConnection@70385f40
08:21:44.915 Thread-2540: FLACResource: close
08:21:44.916 Thread-2540: FLACResource: closeDecoder
08:21:44.916 Thread-2540: StreamerResourceBase: closeInputStream
08:21:44.916 Thread-2540: StreamerResourceBase: close
08:21:44.919 Thread-2540: StreamerResourceBase: terminating reader thread
08:21:44.919 Thread-2540: StreamerResourceBase: interrupt during join call
08:21:44.919 Thread-2540: StreamerResourceBase: closeInputStream
08:21:44.919 Thread-2540: HTTPConnection: SocketException writing HTTP response to Socket[addr=/192.168.1.107,port=57786,localport=9790]
08:21:44.919 Thread-2540: HTTPConnection: writer thread interrupted
08:21:44.921 Thread-2542: StreamerResourceBase.waitForEmpty caught InterruptedException
08:21:44.921 Thread-2542: FLACResource: reader thread interrupted
Find all posts by this user
Quote this message in a reply
22-05-2018, 19:14 (This post was last modified: 22-05-2018 19:15 by Cebolla.)
Post: #2
RE: Song fails to play
Don't have an Oppo device, but one thing to check would be the album art tag or equivalent. My Pioneer N-50 streamer fails to play audio files with images that are too big for it to cope with.
Find all posts by this user
Quote this message in a reply
22-05-2018, 20:20
Post: #3
RE: Song fails to play
(22-05-2018 19:14)Cebolla Wrote:  Don't have an Oppo device, but one thing to check would be the album art tag or equivalent. My Pioneer N-50 streamer fails to play audio files with images that are too big for it to cope with.

There don't seem to be any embedded image tags (output of metaflac below). There is a cover image in the directory, but is is only 100K. I removed it and that had no impact.

Code:
metaflac --l ./01\ -\ Every\ Time\ I\ Hear\ That\ Song.flac
METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4096 samples
  maximum blocksize: 4096 samples
  minimum framesize: 1014 bytes
  maximum framesize: 13060 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 10634568
  MD5 signature: 31263f6f05e228b1ac651b7671d7c00f
METADATA block #1
  type: 3 (SEEKTABLE)
  is last: false
  length: 450
  seek points: 25
    point 0: sample_number=0, stream_offset=0, frame_samples=4096
    point 1: sample_number=438272, stream_offset=950039, frame_samples=4096
    point 2: sample_number=880640, stream_offset=2013057, frame_samples=4096
    point 3: sample_number=1318912, stream_offset=3046369, frame_samples=4096
    point 4: sample_number=1761280, stream_offset=4214380, frame_samples=4096
    point 5: sample_number=2203648, stream_offset=5362664, frame_samples=4096
    point 6: sample_number=2641920, stream_offset=6557869, frame_samples=4096
    point 7: sample_number=3084288, stream_offset=7705168, frame_samples=4096
    point 8: sample_number=3526656, stream_offset=8818156, frame_samples=4096
    point 9: sample_number=3964928, stream_offset=9917400, frame_samples=4096
    point 10: sample_number=4407296, stream_offset=11108022, frame_samples=4096
    point 11: sample_number=4849664, stream_offset=12282402, frame_samples=4096
    point 12: sample_number=5287936, stream_offset=13485681, frame_samples=4096
    point 13: sample_number=5730304, stream_offset=14698589, frame_samples=4096
    point 14: sample_number=6172672, stream_offset=15738766, frame_samples=4096
    point 15: sample_number=6610944, stream_offset=16791465, frame_samples=4096
    point 16: sample_number=7053312, stream_offset=17877647, frame_samples=4096
    point 17: sample_number=7495680, stream_offset=19063210, frame_samples=4096
    point 18: sample_number=7933952, stream_offset=20228390, frame_samples=4096
    point 19: sample_number=8376320, stream_offset=21443469, frame_samples=4096
    point 20: sample_number=8818688, stream_offset=22627993, frame_samples=4096
    point 21: sample_number=9256960, stream_offset=23862427, frame_samples=4096
    point 22: sample_number=9699328, stream_offset=25126404, frame_samples=4096
    point 23: sample_number=10141696, stream_offset=26400489, frame_samples=4096
    point 24: sample_number=10579968, stream_offset=27173756, frame_samples=4096
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: true
  length: 260
  vendor string: reference libFLAC 1.3.2 20170101
  comments: 10
    comment[0]: ALBUM=By the Way, I Forgive You
    comment[1]: ALBUMARTIST=Brandi Carlile
    comment[2]: ARTIST=Brandi Carlile
    comment[3]: DATE=2018
    comment[4]: DISCNUMBER=1
    comment[5]: GENRE=Folk
    comment[6]: TITLE=Every Time I Hear That Song
    comment[7]: DISCTOTAL=1
    comment[8]: TRACKTOTAL=10
    comment[9]: TRACKNUMBER=01
Find all posts by this user
Quote this message in a reply
22-05-2018, 21:51
Post: #4
RE: Song fails to play
What machine are you using to run MinimServer/MinimStreamer?
Find all posts by this user
Quote this message in a reply
22-05-2018, 22:01
Post: #5
RE: Song fails to play
(22-05-2018 21:51)simoncn Wrote:  What machine are you using to run MinimServer/MinimStreamer?

Pretty standard PC running Ubuntu Linux and the newest oracle java runtime.

Almost all files work fine - even 24bit files get transcoded ok.
Find all posts by this user
Quote this message in a reply
23-05-2018, 09:30
Post: #6
RE: Song fails to play
(22-05-2018 22:01)mmcc73 Wrote:  Pretty standard PC running Ubuntu Linux and the newest oracle java runtime.

Almost all files work fine - even 24bit files get transcoded ok.

It sounds like the files that don't work might have some issue with how they are encoded. Please upload one of these files (small if possible) to my FTP server. I will send you a PM with the server details.
Find all posts by this user
Quote this message in a reply
26-05-2018, 23:11
Post: #7
RE: Song fails to play
(23-05-2018 09:30)simoncn Wrote:  It sounds like the files that don't work might have some issue with how they are encoded. Please upload one of these files (small if possible) to my FTP server. I will send you a PM with the server details.

I just uploaded one. See PM for the name.
Find all posts by this user
Quote this message in a reply
26-05-2018, 23:19
Post: #8
RE: Song fails to play
(23-05-2018 09:30)simoncn Wrote:  It sounds like the files that don't work might have some issue with how they are encoded.

I just converted the file from flac to wav and back to flac using ffmpeg and I'm still seeing the same behavior. Very puzzling... I'll be interested to hear what you are able to find out.
Find all posts by this user
Quote this message in a reply
27-05-2018, 20:31 (This post was last modified: 27-05-2018 20:34 by simoncn.)
Post: #9
RE: Song fails to play
Thanks for this. I have tried it with my renderer (a Melco N1) and the transcoded L16 stream is playing OK. It seems there is something in this file that is causing a problem for the OPPO renderer. This is consistent with the log output that you posted, which shows MinimServer starting to write the L16 data and the renderer closing the connection shortly afterwards.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)