Page 1 of 1

MKV problems on Samsung 46D

PostPosted: Sun Dec 01, 2013 9:33 am
by erilod
Hi!

I just reinstalled Serviio after a disk crash and now I cant get my MKV-files to run on my Samsung UE46D6207. It worked before.
I installed Serviio GUI and I can see that it detects the TV and that the setting is Samsung TV / player (C/D/E/F-series) so that should be fine.
From inside my TV I can browse the files and when I press "information", it shows the MKV-files has mime type video/mpeg...
When successfully playing these files from the Samsung AllShare application, the mime type is video/x-mkv. So I guess I found the cause of the error???

I've taken a quick look at the /etc/serviio/profiles.xml and (I think I've) found that it should be giving it mime type video/x-mkv. So why isn't it?

  Code:
...
<Profile id="7" name="Samsung TV / player (C/D/E/F-series)" extendsProfileId="1">
...
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
            <MediaFormatProfile mime-type="audio/x-flac">FLAC</MediaFormatProfile>
        </MediaFormatProfiles>
...


Could it be that Serviio doesn't realize that it is a MATROSKA file even though its file ends with .mkv?
I am now trying to run Serviio 1.3.1 and before I ran 1.1. This worked on my old installation...

Any advice is appreciated. I don't want to try to edit the profiles-file before getting your input. ;)

Thanks!

Re: MKV problems on Samsung 46D

PostPosted: Mon Dec 02, 2013 8:08 am
by erilod
This is the log from when I try to play an .mkv file:

  Code:
2013-12-02 07:29:04,794 WARN  [ProcessExecutor] Process /usr/bin/ffmpeg has a return code of 1! This is a possible error. Detailed output follows.
ffmpeg version 0.8.9-6:0.8.9-1, Copyright (c) 2000-2013 the Libav developers
built on Nov  3 2013 00:54:50 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Expected number for threads but found: auto
2013-12-02 07:29:14,785 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/tmp/Serviio/transcoding-temp-9168-7-GINAL.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-9168-7-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
        at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
        at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:134)
        at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:110)
        at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:153)
        at org.serviio.delivery.GETMethodProcessor.retrieveResource(GETMethodProcessor.java:121)
        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:81)
        at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
        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)


In there it say something about ffmpeg not working properly.
When playing mpegs it works though... And nothing is written to the log...

Any ideas of what I should do?

PS. This is probably not a Samsung issue. Is it possible to move this trhread to a different part of the forum?

Re: MKV problems on Samsung 46D

PostPosted: Mon Dec 02, 2013 9:12 am
by DenyAll
I think you need to update your ffmpeg. It looks like the version you are using is old and doesn't support the options that Serviio is now using.

Re: MKV problems on Samsung 46D

PostPosted: Mon Dec 02, 2013 9:39 am
by erilod
Ok. Do you know how?

I run a head-less Linux Debian (wheezy) server.
I've updated the sources.list to include all public packages before installing serviio according to this page:
http://wiki.serviio.org/doku.php?id=howto:linux:install:debian
Everything is up to date.

In this instruction linked below there's a note saying:
Beware that Debian has decided to switch to libav http://www.libav.org. If you decide to use ffmpeg from deb-multimedia.org you can no longer use libav and programs relying on it.

I think this is why the log says that ffmpeg is deprecated.

Is it possible to run Serviio with libav instead? Is there a howto for this?

Re: MKV problems on Samsung 46D

PostPosted: Mon Dec 02, 2013 9:25 pm
by zip
No, has to be FFmpeg. You might have to build it from sources.

Re: MKV problems on Samsung 46D

PostPosted: Tue Dec 03, 2013 2:00 pm
by erilod
It seems like most issues are due to ffmpeg. :evil:

I struggled with this guide to do the build from source: Ubuntu Compilation Guide
On my second attempt and some creative rearranging, I finally got it to work. :D

Thanks for your great support! You are doing an excelent job.