Page 1 of 1

[SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Tue Jul 30, 2013 8:53 pm
by Eclipse612
Hi everybody, my first post here! First of all, I just started using serviio and what a great piece of software it is! I'm finding it very useful, and this forum has already helped me in solving a couple of issues, so thanks to the developers and the community!

I've got a SONY Bravia KDL-40EX653 (2012 series). I had troubles playing .mkv videos (I had the "server unavailable" issue) but found out that getting the latest version of ffmpeg from specific repositories did the trick. The thing is, I'd like my .srt subtitles to work with these .mkv files. So far I've noticed this:

1. With subtitles disabled, subtitles are not shown, and that's just fine I guess.
2. If enable subtitles (both with or without "enable extraction of embedded subtitles") the video plays fine, but still no subtitles
3. If I enable "burned-in subtitles" (both with or without "enable extraction of embedded subtitles") the video does not play anymore, and I go back to the "server temporarily unavailable" issue. In this last case, the log says:

2013-07-30 22:51:09,248 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /home/stefano/Video/Game.Of.Thrones.S03.Season.3.COMPLETE.720p.HDTV.x264-PublicHD/Game.of.Thrones.S03E01.REPACK.720p.HDTV.x264-EVOLVE.mkv
2013-07-30 22:51:09,248 DEBUG [ProcessExecutor] Starting ffmpeg -threads auto -i /home/stefano/Video/Game.Of.Thrones.S03.Season.3.COMPLETE.720p.HDTV.x264-PublicHD/Game.of.Thrones.S03E01.REPACK.720p.HDTV.x264-EVOLVE.mkv -y -c:v mpeg2video -b:v 17000k -maxrate:v 17000k -bufsize:v 17000k -vf subtitles=filename='/home/stefano/Video/Game.Of.Thrones.S03.Season.3.COMPLETE.720p.HDTV.x264-PublicHD/Game.of.Thrones.S03E01.REPACK.720p.HDTV.x264-EVOLVE.srt':original_size=1280x720 -r 24000/1001 -g 15 -c:a copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-49039-sony2012-ORIGINAL-0028657e4937ba55b25e10546ee4e899.stf
2013-07-30 22:51:09,311 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error. Detailed output follows.
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s (default)
[buffer @ 0xcaffe0] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
No such filter: 'subtitles'
Error opening filters!
2013-07-30 22:51:09,311 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2013-07-30 22:51:16,752 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:131)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:108)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.GETMethodProcessor.retrieveResource(GETMethodProcessor.java:120)
at org.serviio.delivery.GETMethodProcessor.buildDeliveryContainer(GETMethodProcessor.java:48)
at org.serviio.delivery.AbstractMethodProcessor.handleRequest(AbstractMethodProcessor.java:100)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:80)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:85)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:77)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:192)


Also, other mkv files where no .srt file is present still play fine.
Thanks in advance for your help! Looking forward to keep exploring serviio!

Re: Sony Bravia 2012 + MKV + srt

PostPosted: Wed Jul 31, 2013 7:26 am
by Illico
What is your OS system? linux ?
I think you have to update your ffmpeg package.Be carefull of configuration used to compile ffmpeg.
http://wiki.serviio.org/doku.php?id=howto:linux:install

Re: Sony Bravia 2012 + MKV + srt

PostPosted: Wed Jul 31, 2013 2:42 pm
by Varemenos
I have the same issue on win7, my tv is KDL-32HX750

Re: Sony Bravia 2012 + MKV + srt

PostPosted: Wed Jul 31, 2013 2:50 pm
by Eclipse612
Hello. Yes, I'm running Serviio on Linux (Mint Maya, which comes from Ubuntu Precise)

I downloaded FFMPEG from this repository:

https://launchpad.net/~jon-severinsson/+archive/ffmpeg

I see that the latest version there is 0.10.7, while 1.1.1 is on your website, so I can try to switch to that version. I hope I'm not messing up the video codec configuration on my PC :-). I'll try it tonight.

Anyway, which of the three "subtitles" options should be turned on to correctly play .srt subtitles on a .mkv file?

Re: Sony Bravia 2012 + MKV + srt

PostPosted: Wed Jul 31, 2013 9:30 pm
by Eclipse612
I got it working by following the guide you posted! I used ffmpeg v1.1.1 and all is good now! Thanks for the help!

Re: [SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Thu Aug 22, 2013 8:19 pm
by wweeii
I got exact the same issue on my sony smart TV.
Could you please provide your solution in detail?
For example: how do you update your ffmpeg?

thank you

Re: [SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Fri Aug 23, 2013 7:55 am
by Illico

Re: [SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Fri Aug 23, 2013 3:20 pm
by wweeii
Illico wrote:http://wiki.serviio.org/doku.php?id=howto:linux:install


I really appreciate your quick response and all the information provided.

I read the information you provided, however, it's way too difficult for me.
I saw lots of command line in the page while I even don't know how to execute this command.

Where can I find the old version of ffmpeg and remove it? How to remove it?
Where can I get all the software required for compiling and install them? How to install?
I even don't know what's "compile" stands for?
In other word, I'm the idiot in this field.

It would be nice if somebody can get me out of here and fix the issue.

many thanks

Re: [SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Fri Aug 23, 2013 3:51 pm
by Illico
Are you on windows or linux system ?

Re: [SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Fri Aug 23, 2013 4:10 pm
by wweeii
Illico wrote:Are you on windows or linux system ?


I installed the serviio on the NAS, synology ds213j, which I believe it based on linux platform.

Re: [SOLVED]Sony Bravia 2012 + MKV + srt

PostPosted: Fri Aug 23, 2013 5:59 pm
by Illico
Sorry, I'm not a linux user. But you can see the Nas installation section here : viewforum.php?f=14