Page 1 of 1

Transcoding quits prematurely

PostPosted: Fri Feb 03, 2012 1:16 pm
by michel-rose
Dear All,

Succesfully transcoding flac to wav on my Bravia television. Right out of the box.
Even cover art on the tv for some files.
Some room for improvement though.
Last part of the song is lost. In other words the song is shorter than it should be.
Bravia indicates that the song last for 4:18 (shown on the progress bar) but it quits at 3:20
Bravia indicates that the song last for 4:31 (shown on the progress bar) but it quits at 3:09
I have no idea what is causing this. I guess it could be that when serviio has finished transcoding, it assumes the song is ended and is going to the next song.

Attached the logfile for playing the two songs. The ...return code 1...... is created on start playing of the song (2 songs).
2012-02-02 20:16:37,504 WARN [**] Process /root/.serviio/opt/bin/ffmpeg has a return code of 1! This is a possible error.
2012-02-02 20:19:48,390 WARN [RendererManager] Error while retrieving renderer description: Cannot retrieve device description from http://192.168.2.1:55178/MediaRenderer/device.xml
2012-02-02 20:19:49,522 WARN [**] Process /root/.serviio/opt/bin/ffmpeg has a return code of 1! This is a possible error.

I hope this is helpful for improving serviio

Kind regards Michel

Re: Transcoding quits prematurely

PostPosted: Fri Feb 03, 2012 1:21 pm
by Cerberus
okkk?? bit more info please. please provide ffmpeg -i information on files that fail. and please attach (zip it up and attach to this thread) your serviio log file.

Re: Transcoding quits prematurely

PostPosted: Fri Feb 03, 2012 1:31 pm
by Illico
If you edit "profiles.xml" file read the Sony profiles section you will find this :

<Audio targetContainer="lpcm" forceInheritance="true">
<!-- To allow "pause" then "resume" functions and album art for TVs that support it - transcode to mp3 instead -->
<Matches container="asf" />
<Matches container="mp4" />
<Matches container="ogg" />
<Matches container="flac" />
<Matches container="adts" />
</Audio>


Could you try with <Audio targetContainer="mp3" forceInheritance="true"> ?

Re: Transcoding quits prematurely

PostPosted: Fri Feb 03, 2012 9:17 pm
by michel-rose
Cerberus wrote:okkk?? bit more info please. please provide ffmpeg -i information on files that fail. and please attach (zip it up and attach to this thread) your serviio log file.


Hello Cerberus,
This happens with all the flac files i select. Therefore i assume it is not the file that is causing the problem.
I will try to send the logfile asap. The only changes in the logfile while playing music was copied into the message above.

Kind regards
Michel

Re: Transcoding quits prematurely

PostPosted: Fri Feb 03, 2012 9:21 pm
by michel-rose
Illico wrote:If you edit "profiles.xml" file read the Sony profiles section you will find this :

<Audio targetContainer="lpcm" forceInheritance="true">
<!-- To allow "pause" then "resume" functions and album art for TVs that support it - transcode to mp3 instead -->
<Matches container="asf" />
<Matches container="mp4" />
<Matches container="ogg" />
<Matches container="flac" />
<Matches container="adts" />
</Audio>


Could you try with <Audio targetContainer="mp3" forceInheritance="true"> ?


Hello Illico,
I tried your proposal, just without the forceInheritance="true". This was not in the profile.
Nevertheless the bravia showed the flac files on the screen as mp3 and i was able to play them.
Although there were some pauses while playing (cpu >80%) the file played from the beginning untill the end.
converting from flac to wav using the command line tool takes a short time, so i think my QNap ts219 is capable of that.
Have you ever tried the same setup ? playing flac files on the bravia as lpcm ?

Kind regards
Michel Rose