Post Tue Jun 19, 2012 4:35 pm

BD-670 .mkvs and AC-3 5.1 stereo

Hi all,
So I have been playing around with the profiles and I do have a configuration that works, but unfortunately I need to re-encode mkvs in order to get it to work and would rather keep the mkvs as pure as possible.

  • .mkv using vcodec=h264 and acodec=dca play fine (blu-ray stream)
  • .mkv vcodec=mpeg2video and acodec=dca transcode to mpegts with audio=ac3 and I get 5.1
  • .mkv vcodec=mpeg2video and acoded=ac3 will not play transcode to mpegts. Only option is to set targetACodec=mp3 which loses 5.1 channels.

Here is the snippet I am using:

  Code:
<Profile id="23" name="LG BD player" extendsProfileId="1">
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
        </MediaFormatProfiles>
      <Transcoding>
        <!-- re-encode mpeg-2 DTS audio to AC3 -->
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="matroska" vCodec="mpeg2video" aCodec="dca" />
        </Video>
       <!-- ac3 streams are coming in as invalid when 5.1 - only mp3 seems to work -->
        <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" vCodec="mpeg2video" aCodec="ac3" />
        </Video>
      </Transcoding>
   </Profile>


Now, I have used handbrake as well as ffmpeg directly to try and re-encode the DVD mkv files to h264 video encoded streams with ac3 or dca audio codecs, but this sucks for two reasons:
(a) I am encoding the video stream again (I am assuming that MakeMKV is doing a pretty straight cut of the Video VOBs on initial encode) and while I have hardware to do the encoding (E-3 XEON quad-core processor with 16GB or ram) I am concerned about getting a good enough (ie. near equivalent) video stream while maintaining the 5.1 audio.
(b) As well, since my other device is a Sony BD player, this means any movie played there needs to be transcoded again beyond the audio codec. (since only the mpegts streams are supported)

Anyone have a solution or idea? Can we share some of the configs for this device? I have seen many different but so far only the one I posted above has worked to date on the mpeg2video streams.

-Jason