FAQ  •  Register  •  Login

Trancode multi-channels dts to multi-channels ac3/aac

<<

wotg

Streaming enthusiast

Posts: 28

Joined: Sun Jan 02, 2011 1:30 am

Post Tue Mar 08, 2011 5:19 am

Trancode multi-channels dts to multi-channels ac3/aac

In the Sony Bluray's profile, mkv files with dts audio are transcoded into mpegts files with 2 channels ac3. Could the targe audio codec be changed into multi-channels ac3/aac?

Cheers,

wotg
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 08, 2011 9:32 am

Re: Trancode multi-channels dts to multi-channels ac3/aac

can you post ffmpeg -i of the mkv? normally transcoding into ac3 would keep the channels unless you enable Downmixing to stereo in the console.
<<

mustafacat

Serviio newbie

Posts: 14

Joined: Sat Mar 05, 2011 11:34 pm

Post Mon Mar 14, 2011 2:37 pm

Re: Trancode multi-channels dts to multi-channels ac3/aac

not necessarily, I assigned the console to keep original, yet all my DTS files are transcoded into 2 channels AC3 in the BDP however in my bravia it is transcoded into 5.1 AC3.. why not to play the DTS directly, i have a home theatre that supports the DTS !!
again with serviio 0.51 even the AAC are transcoded into AC3 !! in the previous version the AAC used to be played directly by the BDP but transcoded by the bravia tv.. !! sony is poorly supported by serviio, I dont know why??
Sony Bravia 3D KDL40NX710 - Sony BDP S470 - Sony Home theatre 5.1. Running Servio 1.2.1 on hp Pavilion ee 1225 through a wired connection.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Mar 14, 2011 2:54 pm

Re: Trancode multi-channels dts to multi-channels ac3/aac

talk to patters about the profile or look at profiles.xml - he made some comments there which should help you tweak it to your purposes.
regarding changing channel number, can you enable detailed logging and look at the ffmpeg command used for transcoding?

sony is poorly supported by serviio, I dont know why??

How about becoming a betatester and help making it better rather than complaining?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Mar 14, 2011 3:16 pm

Re: Trancode multi-channels dts to multi-channels ac3/aac

This is explained on profiles.xml, you can remove all matroska transcoding like this:
  Code:
   <Profile id="10" name="Sony BD Player" extendsProfileId="1">
      <!-- Since Serviio 0.5.1 this profile is multiregion -->
      <Detection>
         <HttpHeaders>
            <X-AV-Client-Info>.*Blu-ray Disc Player.*</X-AV-Client-Info>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="audio/mpeg" name="MP3">WMA_BASE</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/mpeg" name="MP3">WMA_FULL</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/divx">MATROSKA</MediaFormatProfile>
         <!-- To avoid needing region-specific profiles, avi must be set to mpeg mime type (US players require this) -->
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVI</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_MP_SD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_MP_HD_720p_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_MP_HD_1080i_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_HP_HD_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_MP4_LPCM</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">MPEG4_P2_MP4_ASP_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">MPEG4_P2_MP4_SP_L6_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">MPEG4_P2_MP4_NDSD</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AAC_MULT5_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AAC_MULT5_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_MPEG1_L3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AAC_MULT5_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AAC_MULT5_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_MPEG1_L3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AAC_MULT5_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AAC_MULT5_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_MPEG1_L3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HD_DTS_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HD_DTS_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HD_50_LPCM_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HP_SD_MPEG1_L2_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HP_SD_MPEG1_L2_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HP_HD_MPEG1_L2_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_HP_HD_MPEG1_L2_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_AAC_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_AAC_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">MPEG4_P2_TS_ASP_MPEG1_L3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">VC1_TS_AP_L1_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">VC1_TS_AP_L2_AC3_ISO</MediaFormatProfile>
      </MediaFormatProfiles>
      <Transcoding>
         <Video targetContainer="mpegts">
            <Matches container="mp4" vCodec="h264" />
         </Video>
         <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="asf" />
            <Matches container="flv" />
            <!-- digital camera video formats -->
            <Matches container="avi" vCodec="mjpeg" />
            <Matches container="mp4" vCodec="mjpeg" />
         </Video>
         <Audio targetContainer="lpcm">
            <Matches container="mp4" />
            <Matches container="flac" />
            <Matches container="ogg" />
         </Audio>
      </Transcoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
      <LimitImageResolution>false</LimitImageResolution>
   </Profile>
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Mon Mar 14, 2011 3:51 pm

Re: Trancode multi-channels dts to multi-channels ac3/aac

@mustafacat - If your Sudanese equipment is NTSC-based (not sure) then you'll also need to change:
  Code:
<MediaFormatProfile mime-type="video/divx">MATROSKA</MediaFormatProfile>

to:
  Code:
<MediaFormatProfile mime-type="video/mpeg">MATROSKA</MediaFormatProfile>


You will then have to put up with all the crappy firmware problems with this player's native mkv support: stuttering at bit rates over about 12Mbps - even on wired connections - inability to ffwd/rew without stuttering. dts audio will work though.

I have double-checked the profiles.xml included with the release version of 0.5.1 and aac audio is definitely not being transcoded to ac3. You may be dealing with a file with several audio tracks, and Serviio will pick the first one.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

mustafacat

Serviio newbie

Posts: 14

Joined: Sat Mar 05, 2011 11:34 pm

Post Tue Mar 15, 2011 7:50 pm

Re: Trancode multi-channels dts to multi-channels ac3/aac

Thanks Guys for the support.
I would love to be betatester, but i'm not sure if i would be of great help to you ..!!
how can I be a betatester?? I officially want to be a beta tester.
I have a European profile.
I would love to help in the subtitle thing, I really wonder if PS3MS can do it then you guys will be able to, because servio is ways ways better than PS3MS.
anyway, I will apply the changes and feed you back of the results.
Sony Bravia 3D KDL40NX710 - Sony BDP S470 - Sony Home theatre 5.1. Running Servio 1.2.1 on hp Pavilion ee 1225 through a wired connection.
<<

wotg

Streaming enthusiast

Posts: 28

Joined: Sun Jan 02, 2011 1:30 am

Post Wed Mar 16, 2011 1:43 am

Re: Trancode multi-channels dts to multi-channels ac3/aac

Thanks zip. Your suggestion worked!

I had unintentionally ticked the "Downmixing to stereo" option. Uncheck the option solved my problem.

On another issue, I have problem in streaming "some" mkv files to my sony (European profile) - If I streamed them as mkv formats, my Sony reported "Unsupported codec" error message; If I rewarpped them as mpegts, they could be played on my Sony. 2 of these problematic files have the following ffmpeg output:

"[matroska,webm @ 015fcf00] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (5994/250)
Input #0, matroska,webm, from 'chan.mkv':
Duration: 01:55:37.51, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 640x368, PAR 1:1 DAR 40:23, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(chi): Audio: aac, 48000 Hz, 2 channels (FC), s16
Metadata:
title : CHT
Stream #0.2(chi): Audio: aac, 48000 Hz, 2 channels (FC), s16
Metadata:
title : Karaoke"


Another one:

"[matroska,webm @ 015fcf00] max_analyze_duration reached
[matroska,webm @ 015fcf00] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (20000000/417083) -> 23.98 (20000000/834166)
Input #0, matroska,webm, from 'her.mkv':
Duration: 01:36:37.97, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264, yuv420p, 608x336, PAR 1:1 DAR 38:21, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(chi): Audio: aac, 48000 Hz, 2 channels (FC), s16
Metadata:
title : Õø¢Þ»¡
Stream #0.2(chi): Audio: aac, 48000 Hz, 2 channels (FC), s16
Metadata:
title : þ▓ñÞ»¡
Stream #0.3(chi): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : chs
Stream #0.4(chi): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : cht
Stream #0.5(eng): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : eng"

Any idea what caused the problem?

wotg
Last edited by wotg on Wed Mar 16, 2011 2:00 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Mar 16, 2011 9:32 am

Re: Trancode multi-channels dts to multi-channels ac3/aac

There is a bug in 0.5.1 regarding MKV/AAC. It's fixed in 0.5.2 which will be out this week.
<<

ac_carshop

Serviio newbie

Posts: 7

Joined: Thu Jan 20, 2011 12:53 am

Post Sun Mar 20, 2011 1:03 am

Re: Trancode multi-channels dts to multi-channels ac3/aac

zip,

I have a large number of mkv files with AAC audio and am seeing the issue reported in this thread on my Sony BDP-S370. I'd be happy to beta 0.5.2 if you like.

Sincerely,
Allen

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 19 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.