Page 1 of 1

Keep Original audio No effect in DTS to AC3 Samsung B

PostPosted: Mon Mar 04, 2013 8:37 pm
by Sigmus
Hello,

I reach seriio lookin for on-the-fly transcoding server to my "old" Samsung B serie TV, after going through other software I think I've finally found.

The problem I have is with the files with DTS audio, my TV does not support them and for some reason with the profile of Samsung B DLNA the audio not work.
Looking at the log file I see that, despite having activated "keep original" in audio channels and saved, serviio transcode DTS 5.1 channel in AC3 2ch I guess the TV does not support this.

This is the command line for ffmpeg on the serviio.log file (I add aBitrate aSamplerate to profiles.xml for testing)
  Code:
[ProcessExecutor] Starting C:\...\lib/ffmpeg.exe -fflags +genpts -threads auto -i C:\...\720p.x264.mkv -y -c:v copy -bsf:v h264_mp4toannexb -mpegts_m2ts_mode 1 -c:a ac3 -b:a 448k -ar 44100 -ac 2 -map 0:3 -map 0:0 -sn -f mpegts C:\...\TEMP\Serviio\transcoding-temp-21-2-ORIGINAL.stf

and the profiles.xml of Samsung B is
  Code:
</DeviceDescription>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
        </MediaFormatProfiles>
        <H264LevelCheck>FILE_ATTRIBUTES</H264LevelCheck>
        <Transcoding>
           <!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
         <Video targetContainer="m2ts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="448" aSamplerate="44100">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         </Video>
         <!-- transcode MKV with DST/FLAC audio to AC3, remux into mpeg2ts -->
            <!-- transcode H264 MP4 files with LPCM audio -->
            <Video targetContainer="m2ts" targetACodec="ac3" aBitrate="448" aSamplerate="44100">
                <Matches container="matroska" vCodec="h264" aCodec="dca" />         
                <Matches container="mp4" vCodec="h264" aCodec="lpcm" />
                <Matches container="matroska" vCodec="h264" aCodec="flac" />
                <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
                <Matches container="matroska" vCodec="h264" aCodec="truehd" />
                <Matches container="mpegts" vCodec="h264" aCodec="truehd" />
                <Matches container="matroska" vCodec="vc1" />
                <Matches container="avi" vCodec="h264" />
                <Matches container="mpegts" aCodec="mp2" />
                <Matches container="flv" vCodec="h264" />
                <Matches container="ogg" vCodec="mpeg4" />
                <Matches container="3gp" aCodec="amrnb" />   
                <Matches container="wtv" vCodec="h264" />
            </Video>
            <!-- transcode unsupported codec/container combinations into mpeg2ts -->
            <Video targetContainer="m2ts" targetACodec="ac3" targetVCodec="mpeg2video">
                <Matches container="asf" vCodec="wmv2" />
                <Matches container="matroska" vCodec="mpeg2video" />
                <Matches container="matroska" vCodec="vp8" />
                <Matches container="avi" vCodec="mjpeg" />
                <Matches container="avi" vCodec="dvvideo" />
                <Matches container="mp4" vCodec="dvvideo" />
                <Matches container="mp4" vCodec="mjpeg" />
                <Matches container="flv" />
                <Matches container="ogg" />
                <Matches container="rm" />               
            </Video>
            <!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->
            <Video targetContainer="m2ts" targetACodec="ac3" forceVTranscoding="true">
                <Matches container="asf" vCodec="mpeg2video" />
                <Matches container="asf" vCodec="mpeg1video" />
            </Video>
            <Video targetContainer="m2ts">
                <Matches container="wtv" />
            </Video>
            <!-- transcode audio only for wmv with wmapro -->
            <Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
                <Matches container="asf" aCodec="wmapro" />
            </Video>
            <Audio targetContainer="lpcm">
                <Matches container="asf" />
                <Matches container="mp4" />
                <Matches container="flac" />
                <Matches container="ogg" />
                <Matches container="adts" />
            </Audio>
        </Transcoding>

Another hint to see that the audio channel parameter does not work is that every time I restart the service, the parameters of audio channels and cpu back to its initial state as if I had never saved.

I hope someone can help me.

Thanks and sorry for my english-google. :)

Re: Keep Original audio No effect in DTS to AC3 Samsung B

PostPosted: Mon Mar 04, 2013 9:10 pm
by koan00
Looks like it could be the same issue I reported here: https://bitbucket.org/xnejp03/serviio/i ... -channels'

Should be fixed in the next version of serviio.

Re: Keep Original audio No effect in DTS to AC3 Samsung B

PostPosted: Tue Mar 05, 2013 7:05 am
by slavic
Hi,

I probably came up with the same issue.
I have Philips 2012 Home Theater and it plays all movies I have. But it has one strange limitation. Player plays .mkv with DTS 5.1 track as 2.0 stereo. But everything is fine with AC3 tracks - it produces 5.1 sound.
So, I am using Serviio with very simple profile for my Philips. It simply transcodes DTS to AC3 and does nothing else.

But the issue is that transcoded audio gets downmixed by Serviio from 5.1 to 2.0. The profile is good, because player shows that the audio is "Dolby Digital Multichannel". I think this is because of the setting "keep original" not getting saved.

Re: Keep Original audio No effect in DTS to AC3 Samsung B

PostPosted: Tue Mar 05, 2013 1:47 pm
by Sigmus
Ok, so I wait for the new version comes out.

Thanks to all.

Re: Keep Original audio No effect in DTS to AC3 Samsung B

PostPosted: Tue Mar 05, 2013 5:27 pm
by zip

Re: Keep Original audio No effect in DTS to AC3 Samsung B

PostPosted: Wed Mar 06, 2013 5:46 am
by slavic
zip wrote:temp workaround : viewtopic.php?f=5&t=9496#p64600

Thanks a lot, it worked.