Page 1 of 1

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

PostPosted: Tue Mar 08, 2011 5:19 am
by wotg
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

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

PostPosted: Tue Mar 08, 2011 9:32 am
by zip
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.

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

PostPosted: Mon Mar 14, 2011 2:37 pm
by mustafacat
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??

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

PostPosted: Mon Mar 14, 2011 2:54 pm
by zip
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?

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

PostPosted: Mon Mar 14, 2011 3:16 pm
by Illico
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>

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

PostPosted: Mon Mar 14, 2011 3:51 pm
by patters
@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.

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

PostPosted: Tue Mar 15, 2011 7:50 pm
by mustafacat
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.

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

PostPosted: Wed Mar 16, 2011 1:43 am
by wotg
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

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

PostPosted: Wed Mar 16, 2011 9:32 am
by zip
There is a bug in 0.5.1 regarding MKV/AAC. It's fixed in 0.5.2 which will be out this week.

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

PostPosted: Sun Mar 20, 2011 1:03 am
by ac_carshop
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