FAQ  •  Register  •  Login

[SOLVED] Can anybody tell me why this MKV is transcoded?

<<

herouth

Serviio newbie

Posts: 9

Joined: Tue Oct 01, 2013 10:39 pm

Post Thu Oct 17, 2013 10:21 pm

[SOLVED] Can anybody tell me why this MKV is transcoded?

Hi. I have a Sony Bravia KDL-42W635, and I use the 2013 profile from this post.

The mediainfo for the file is:

  Code:
General
Unique ID                                : 246292835526284220300242963293272304884 (0xB94A4652EC65E0AA8E7427017BA46CF4)
Complete name                            : 01 - Land of Visible Pain.mkv
Format                                   : Matroska
Format version                           : Version 1
File size                                : 239 MiB
Duration                                 : 24mn 21s
Overall bit rate                         : 1 373 Kbps
Movie name                               : [KAA] Kino no Tabi ~ the Beautiful World - 01
Encoded date                             : UTC 2007-05-01 15:28:40
Writing application                      : mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 2007 23:40:55
Writing library                          : libebml v0.7.7 + libmatroska v0.8.1
Attachment                               : Yes / Yes / Yes / Yes / Yes / Yes / Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Nominal bit rate                         : 1 550 Kbps
Width                                    : 704 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 3:2
Frame rate mode                          : Variable
Original frame rate                      : 29.970 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.153
Title                                    : [KAA] Kino no Tabi ~ the Beautiful World - 01
Writing library                          : x264 core 54 svn-654
Encoding settings                        : cabac=1 / ref=16 / deblock=1:-2:-1 / analyse=0x3:0x133 / me=umh / subme=7 / brdo=1 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=4 / nr=0 / decimate=1 / mbaff=0 / bframes=5 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=1550 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 24mn 21s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Title                                    : Japanese Audio (2ch AAC)
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Title                                    : English Subs (ASS)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : en:Chapter 1
00:01:30.000                             : en:Chapter 2
00:04:20.733                             : en:Chapter 3
00:11:11.400                             : en:Chapter 4
00:22:28.733                             : en:Chapter 5
00:23:48.667                             : en:Chapter 6


Can anybody tell me why this is being transcoded? Or, how I can find by myself which entry in the profile triggered the transcoding?
<<

atc98092

User avatar

DLNA master

Posts: 5433

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Oct 17, 2013 10:43 pm

Re: Can anybody tell me why this MKV is transcoded?

My first guess is the format profile being L5.1. I know all of mine are 4.1.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

herouth

Serviio newbie

Posts: 9

Joined: Tue Oct 01, 2013 10:39 pm

Post Fri Oct 18, 2013 7:07 am

Re: Can anybody tell me why this MKV is transcoded?

Thank you atc98092! That was very helpful.

I edited the profile file, and from the following Transcoding entry:

  Code:
      <!-- Transcode all h264 video with HIGH/MAIN > Level 4.2 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
      <!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" DAR="16:9" forceInheritance="true">
         <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>


I removed the second rule:
  Code:
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />


After restarting Serviio, it started delivering the above MKV in native format and the TV accepts it without complaints, and I get the subtitles track, which I didn't when it was transcoding. Doesn't this mean that this rule is not applicable to 2013 TVs?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Oct 18, 2013 10:10 am

Re: Can anybody tell me why this MKV is transcoded?

herouth wrote:Doesn't this mean that this rule is not applicable to 2013 TVs?

In fact, your mkv file is not a true L5.1, the header value of the format profile (High@L5.1) is not true.

according to this : http://wiki.serviio.org/doku.php?id=get_h264_level
dpbMbs = (width * height * ref_frames) / 256
dpbMbs = (704* 480* 16) / 256 = 21120
Your file is a High@L4.0 profile

With previous Sony devices (2010-2012 serie), the value of the header is used by the firmware device, then video is not displayed ( viewtopic.php?f=7&t=7547&p=53909#p53909)
But it seems that 2013 model does not read the header value, but check the dpbMbs.

There is a serviio option H264LevelCheck ( http://serviio.org/index.php?option=com ... icle&id=16) with FILE_ATTRIBUTES value then
"- only takes into account the level computed from the file's characteristics (e.g. number of ref frames)"

Could you try this new profile and check detailed log if mkv is delivered in native format?

  Code:
<Profile id="sony2013" name="Sony Bravia TV (2013)" extendsProfileId="1">
   <!-- 2013 models
          Codec list supported : http://pdf.crse.com/manuals/13MW802111/FR/codeclist.html#5
          - Still images: JPEG (*.jpg / *.jpe / *.jpeg), MPO (*.mpo), RAW (*.arw)
          - Music: LPCM, MP1L1 / MP1L2 / MP1L3 / MP2L1 / MP2L2 / MP2L3 / MP2.5L3 (*.mp3), AAC-LC / HE-AAC v1/v2 (*.mp4 / *.m4a / *.3gp / *.3g2), WMA9 (*.wma)
          - Video: MPEG1 / MPEG2PS / AVCHD , MP4, Xvid, Motion JPEG, VC1, MKV, 3gpp, MOV, WebM
       -->
   <Detection>
      <UPnPSearch>
         <FriendlyName>BRAVIA (KDL-\d{2}W[689]\d{2}A.*)|(KD-\d{2}X9005A.*)</FriendlyName>
      </UPnPSearch>
   </Detection>
   <DeviceDescription>
      <!-- act as WMP so that the TV doesn't show root categories -->
      <ModelName>Windows Media Player Sharing</ModelName>
      <ModelNumber>3.0</ModelNumber>
      <Manufacturer>Microsoft Corporation</Manufacturer>
   </DeviceDescription>
   <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SonyDLNAMessageBuilder</ContentDirectoryMessageBuilder>
   <ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.WMPContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
   <MediaFormatProfiles>
      <!-- Rename native WMA formats to those supported by the tv -->
      <MediaFormatProfile mime-type="audio/x-ms-wma" name="WMABASE">WMA_BASE</MediaFormatProfile>
      <MediaFormatProfile mime-type="audio/x-ms-wma" name="WMAFULL">WMA_FULL</MediaFormatProfile>
      <!-- Rename 3gp profiles that can be played as AVC -->
      <MediaFormatProfile mime-type="video/mp4" name="AVC_MP4_MP_SD_AAC_MULT5">AVC_3GPP_BL_QCIF15_AAC</MediaFormatProfile>
      <!-- Rename native avi formats to those supported by the tv -->
      <MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
      <!-- Rename native mpeg2ts with h264+ac3/aac formats to those supported by the tv (aac support is not advertised by the renderer but it works) -->
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_HD_AC3</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_SD_AC3</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_HD_AAC_MULT5</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3,AVC_TS_HD_50_AC3,AVC_TS_HD_60_AC3,AVC_TS_HD_EU">AVC_TS_MP_SD_AAC_MULT5</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_HP_HD_MPEG1_L2_T</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_HP_SD_MPEG1_L2_T</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_HD_AAC_MULT5_T</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_SD_AAC_MULT5_T</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_SD_MPEG1_L3</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3_T,AVC_TS_HD_50_AC3_T,AVC_TS_HD_60_AC3_T,AVC_TS_HD_EU_T">AVC_TS_MP_SD_MPEG1_L3_T</MediaFormatProfile>
      <!-- Rename transcoded mpeg2ts with h264 to one of the TV's supported profiles -->
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_HP_HD_MPEG1_L2_ISO</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_HP_SD_MPEG1_L2_ISO</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_HD_AAC_MULT5_ISO</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_SD_AAC_MULT5_ISO</MediaFormatProfile>
      <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_24_AC3_ISO,AVC_TS_HD_50_AC3_ISO,AVC_TS_HD_60_AC3_ISO,AVC_TS_HD_EU_ISO">AVC_TS_MP_SD_MPEG1_L3_ISO</MediaFormatProfile>
   </MediaFormatProfiles>
   <H264LevelCheck>FILE_ATTRIBUTES</H264LevelCheck>
   <Transcoding>
      <!-- Transcode all h264 video with HIGH/MAIN > Level 4.2 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
      <!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" DAR="16:9" forceInheritance="true">
         <Matches container="*" vCodec="h264" profile="high_10" />
         <Matches container="*" vCodec="h264" profile="high_444" />
         <Matches container="*" vCodec="h264" profile="high_422" />
         <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
         <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
      </Video>
      <!-- Remux containers with h264 video + AC3 audio to MPEG-TS stream without transcoding -->
      <!-- Remux matroska/mpeg2video + AC3 audio to MPEG-TS stream without transcoding -->
      <Video targetContainer="mpegts" forceInheritance="true">
         <Matches container="avi" vCodec="h264" aCodec="ac3" />
         <Matches container="flv" vCodec="h264" aCodec="ac3" />
         <Matches container="wtv" vCodec="h264" aCodec="ac3" />
         <Matches container="matroska" vCodec="mpeg2video" aCodec="ac3" />
      </Video>
      <!-- Remux all other h264 video to MPEG-TS stream with ac3 audio transcoding -->
      <!-- Remux all other matroska/mpeg2video to MPEG-TS stream with ac3 audio transcoding -->
      <Video targetContainer="mpegts" targetACodec="ac3" forceInheritance="true">
         <Matches container="*" vCodec="h264" aCodec="truehd" />
         <Matches container="*" vCodec="h264" aCodec="flac" />
         <Matches container="avi" vCodec="h264" />
         <Matches container="flv" vCodec="h264" />
         <Matches container="wtv" vCodec="h264" />
         <Matches container="matroska" vCodec="mpeg2video" />
      </Video>
      <!-- All Others video/audio codec will be transcoded into mpeg2ts, mpeg2video and ac3 audio -->
      <!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" DAR="16:9" forceInheritance="true">
         <Matches container="mpegts" vCodec="vc1" />
         <Matches container="flv" />
         <!-- example: flv/vp6/mp3 -->
         <Matches container="wtv" />
         <Matches container="ogg" />
         <Matches container="rm" />
         <!--Matches container="3gp" vCodec="mpeg4" /-->
         <!--Matches container="3gp" vCodec="h263" /-->
         <!-- digital camera video formats -->
         <Matches container="avi" vCodec="mjpeg" />
         <Matches container="mp4" vCodec="mjpeg" />
         <Matches container="asf" vCodec="vc1" aCodec="wmapro" />
         <Matches container="avi" vCodec="dvvideo" />
         <Matches container="mp4" vCodec="dvvideo" />
      </Video>
      <Audio targetContainer="lpcm" forceInheritance="true">
         <Matches container="flv" />
         <Matches container="rtp" />
         <Matches container="rtsp" />
         <Matches container="flac" />
         <Matches container="ogg" />
         <Matches container="adts" />
      </Audio>
   </Transcoding>
   <HardSubsTranscoding>
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" DAR="16:9" />
   </HardSubsTranscoding>
   <Subtitles>
      <HardSubs>
         <RequiredFor container="mpegts" />
         <RequiredFor container="mp4" />
         <RequiredFor container="avi" />
      </HardSubs>
   </Subtitles>
   <LimitImageResolution>false</LimitImageResolution>
</Profile>
<<

herouth

Serviio newbie

Posts: 9

Joined: Tue Oct 01, 2013 10:39 pm

Post Fri Oct 18, 2013 10:27 am

Re: Can anybody tell me why this MKV is transcoded?

Illico wrote:Could you try this new profile and check detailed log if mkv is delivered in native format?


Yes, indeed it is. Thank you!
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Oct 18, 2013 11:18 am

Re: Can anybody tell me why this MKV is transcoded?

Thanks, I update the profile on dedicated topic : viewtopic.php?f=11&t=11147

Return to Sony

Who is online

Users browsing this forum: No registered users and 9 guests

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