FAQ  •  Register  •  Login

Transcode every MKV-File

<<

havok2

Serviio newbie

Posts: 2

Joined: Mon Oct 28, 2013 1:56 pm

Post Mon Oct 28, 2013 2:04 pm

Transcode every MKV-File

Hello, I bought Serviio today and I try to edit one profile for my LG BP 730 blue ray player. This player plays the most of my mkv's but sometimes it stucks... so I tried to edit a existing profile in Serviio. All I want is, that serviio transcode every mkv with a max bitrate like 10mbit/s with best audio in 5.1 and in the correct language or with all of them. My profile works now (the BP 730 plays the file fluid) with lots of mkv's but some of them will not transcoded while playing them. Often I get the wrong language and only in stereo. Can anyone help me?

  Code:
<Profile id="LGBP730" name="LG BP 730" extendsProfileId="1" alwaysEnableTranscoding="true">
        <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
        <Detection>
            <UPnPSearch>
                <FriendlyName>^BlueRayPlayer$</FriendlyName>
                <ModelName>LG BP 730</ModelName>
                <ModelNumber>1\.0</ModelNumber>
            </UPnPSearch>   
        </Detection>
        <DeviceDescription>
           <ExtraElements>
              &lt;sec:ProductCap&gt;smi,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:ProductCap&gt;
            &lt;sec:X_ProductCap&gt;smi,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:X_ProductCap&gt;
           </ExtraElements>
        </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="192">
            <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="lpcm" maxVBitrate="10240">
                <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="lpcm" targetVCodec="mpeg2video" maxVBitrate="10240">
                <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="lpcm" forceVTranscoding="true" maxVBitrate="10240">
                <Matches container="asf" vCodec="mpeg2video" />
                <Matches container="asf" vCodec="mpeg1video" />
            </Video>
            <Video targetContainer="m2ts" maxVBitrate="10240">
                <Matches container="wtv" />
            </Video>
            <!-- transcode audio only for wmv with wmapro -->
            <Video targetContainer="asf" targetACodec="lpcm">
                <Matches container="asf" aCodec="wmapro" />
            </Video>
            <Audio targetContainer="lpcm">
                <Matches container="asf" />
                <Matches container="mp4" />
                <Matches container="flac" />
                <Matches container="ogg" />
                <Matches container="adts" />
                <Matches container="mp2" />
                <Matches container="wavpack" />
                <Matches container="mpc" />
                 <Matches container="ape" />
            </Audio>
        </Transcoding>
        <OnlineTranscoding>
         <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="lpcm">
            <Matches container="mp4"/>
         </Video>
      </OnlineTranscoding>
        <AutomaticImageRotation>true</AutomaticImageRotation>
        <LimitImageResolution>false</LimitImageResolution>
        <Subtitles>
         <SoftSubs mime-type="smi/caption" />
      </Subtitles>
    </Profile>
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 28, 2013 7:30 pm

Re: Transcode every MKV-File

You should start with the LG profile and update that rather than the Samsung one.
<<

havok2

Serviio newbie

Posts: 2

Joined: Mon Oct 28, 2013 1:56 pm

Post Mon Oct 28, 2013 9:36 pm

Re: Transcode every MKV-File

Yeah, I have done some more testing with the LG Profile. Now it works fine for me and with any of my mkv's. I wan't to share it with the community, perhaps there is someone with the same LG BP 730
  Code:
   </Profile>

   <Profile id="LGBP730" name="LG BP 730" extendsProfileId="1" alwaysEnableTranscoding="true">
        <Detection>
      <HttpHeaders>
         <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
      </HttpHeaders>
   </Detection>

        <Transcoding>
      <!-- Transcode all Video on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
                <!-- LG BP 730 supports higher bitrates (tested 10-12), but I use 8mbit/s because of slow W-Lan -->

      <Video targetContainer="mpegts" targetVCodec="mpeg2video" forceVTranscoding="true" maxVBitrate="8192" targetACodec="ac3" aBitrate="384">
         <Matches container="matroska" vCodec="h264" aCodec="dca" />         
         <Matches container="matroska" vCodec="h264" aCodec="flac" />
         <Matches container="matroska" vCodec="h264" aCodec="ac3" />
         <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
         <Matches container="matroska" vCodec="h264" aCodec="truehd" />
         <Matches container="matroska" vCodec="mpeg2video" />
         <Matches container="matroska" vCodec="vp8" />
         <Matches container="matroska" vCodec="vc1" />
         <Matches container="mp4" vCodec="h264" aCodec="lpcm" />
         <Matches container="avi" vCodec="h264" />
         <Matches container="mpegts" vCodec="h264" aCodec="truehd" />
         <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" />
         <Matches container="asf" vCodec="wmv2" />
         <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>
           
        </Transcoding>
       
   <HardSubsTranscoding>
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" />
   </HardSubsTranscoding>
   <Subtitles>
      <SoftSubs mime-type="text/srt" />         
   </Subtitles>   
    </Profile>
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 29, 2013 5:15 pm

Re: Transcode every MKV-File

You don't need to list all the matroska codecs in matchers, use just one without specifying aCodec or vCodec, then all mkv files will be matched. The same for the other containers.
<<

Darkfalz

Serviio lover

Posts: 60

Joined: Fri Feb 22, 2013 10:50 am

Post Thu Oct 31, 2013 8:07 am

Re: Transcode every MKV-File

Interesting that many problematic mkvs (those that won't seek, lockup players when you try etc.) play back ok when remuxed to mpeg2ts.

I wonder if it would be possible to remux back to a more standard and conformant mkv container (and possibly mux in external srts while you're at it) and if not, what is currently preventing this?
Sony KDL-55HX750 and BDV-N990W (Home Theatre)
Sony KDL-40D3100 and BDP-S390 (Loungeroom)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 31, 2013 7:29 pm

Re: Transcode every MKV-File

we cannot remux to mkv and play on the fly

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 34 guests

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