Page 1 of 1

Please don't transcode. I already have that stream

PostPosted: Wed Sep 05, 2012 10:11 pm
by Nihilator
I am using Serviio 1.0.1 and my PS3 is playing a Matroska (MKV) file with the following three streams:

H.264 AVC (-map 0:0)
DTS Core (-map 0:1)
AC-3 (-map 0:2)

The problem is this:

My PS3 is setup to use the Serviio "Playstation 3" profile. This profile wants to transcode my DTS Core (-map 0:1) stream to AC-3, instead of passing my existing AC-3 (-map 0:2) stream straight through without any transcoding. How do I change the following code to correct this problem:

  Code:
         <!--
            remux MKV with any video to MPEG2TS and possibly change audio to ac3, also AVI and FLV with H264
         -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="matroska" />
            <Matches container="avi" vCodec="h264" />
            <Matches container="flv" vCodec="h264" />
            <Matches container="3gp" vCodec="h264" />
         </Video>


If I remove the DTS Core stream from the Matroska (MKV) container, then the existing AC-3 stream is passed on through (no transcoding). Does the "Playstation 3" profile only look for "-map 0:1" and does not look for other audio tracks in the container (ex: "-map 0:2", "-map 0:3", "-map 0:4", etc...) when transcoding? Does DTS get priority and it does not care if you have an existing "AC-3" stream in the container?

Note:
The Matroska file (above) was created with the "MKVtoolnix GUI" application and the DTS-Core track (-map 0:1) was set to "Yes" in regards to the "Default track flag". I don't know if this will be any help to anybody in resolving my issue, but I thought I would throw it out there. Probably doesn't matter.

Re: Please don't transcode. I already have that stream

PostPosted: Thu Sep 06, 2012 11:45 am
by zip
Serviio currently only sees the first audio track, this should be addressed in future.

You can remux the file so that the AC3 is the first stream if you want to keep both tracks in the file, for now.

Re: Please don't transcode. I already have that stream

PostPosted: Thu Sep 06, 2012 11:48 am
by zip
Nihilator wrote:If I remove the DTS Core stream from the Matroska (MKV) container, then the existing AC-3 stream is passed on through (no transcoding).

I assume it just gets remuxed to mpegts with the streams untouched?

I created a ticket for this. https://bitbucket.org/xnejp03/serviio/i ... ranscoding

Re: Please don't transcode. I already have that stream

PostPosted: Thu Sep 06, 2012 3:00 pm
by Nihilator
zip wrote:
Nihilator wrote:If I remove the DTS Core stream from the Matroska (MKV) container, then the existing AC-3 stream is passed on through (no transcoding).

I assume it just gets remuxed to mpegts with the streams untouched?

I created a ticket for this. https://bitbucket.org/xnejp03/serviio/i ... ranscoding


Yes, your assumption is right. The streams are remuxed into a mpegts container and the streams remain untouched.

Re: Please don't transcode. I already have that stream

PostPosted: Tue Sep 11, 2012 2:05 pm
by ansonkemp
I am also looking for a solution to this problem. It seems a waste of resources to transcode a file when the supported audio stream is already in the container, but it is the second audio stream encountered by serviio and is ignored.