Page 1 of 1

Working on my profile for Metz Topas TV

PostPosted: Tue Mar 22, 2016 9:55 pm
by Docjones
Hello,

i have made a crude profile to transcode DTS audio in mkv files on the fly:
  Code:
...
<Profile id="Metz Topas TV" name="Metz Topas TV" extendsProfileId="1">
                <Detection>
                        <UPnPSearch>
                                <FriendlyName>Metz-TV Renderer</FriendlyName>
                                <ModelName>Metz TV</ModelName>
                                <ModelNumber>1.0</ModelNumber>
                                <Manufacturer>Metz</Manufacturer>
                        </UPnPSearch>
                </Detection>
                <Transcoding>
                        <Video targetContainer="mpegts" targetACodec="ac3">
                                <Matches container="*" vCodec="h264" aCodec="dts-hd" />   
                        </Video>
                </Transcoding>
        </Profile>
...

Here is the debug-log of the request:
  Code:
2016-03-22 22:43:36,614 DEBUG [ServiioHttpService] Incoming request from /192.168.50.50:49378: GET /resource/228/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.50.62:8895,Connection: close,User-Agent: libsoup/2.26.3]]
2016-03-22 22:43:36,614 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.50.50
2016-03-22 22:43:36,615 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.50.50
2016-03-22 22:43:36,619 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.50.50, Profile=Metz Topas TV'
2016-03-22 22:43:36,620 DEBUG [ResourceDeliveryProcessor] Request for resource 228 and type 'MEDIA_ITEM' received
2016-03-22 22:43:36,621 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 228 (local)
2016-03-22 22:43:36,621 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 228)
2016-03-22 22:43:36,633 DEBUG [VideoDAOImpl] Reading a Video (id = 228)
2016-03-22 22:43:36,652 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 228, format MATROSKA and profile Metz Topas TV
2016-03-22 22:43:36,654 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 228 (local)
2016-03-22 22:43:36,654 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 228)
2016-03-22 22:43:36,654 DEBUG [VideoDAOImpl] Reading a Video (id = 228)
2016-03-22 22:43:36,655 DEBUG [VideoDeliveryEngine] Delivering item '228' for client 'Identifier=192.168.50.50, Profile=Metz Topas TV'
2016-03-22 22:43:36,655 DEBUG [VideoDeliveryEngine] Delivering file 'video-1080p.mkv' in native format
2016-03-22 22:43:36,655 DEBUG [MediaItemDAOImpl] Getting file of media item 228
2016-03-22 22:43:36,655 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 228) as read
2016-03-22 22:43:36,682 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2016-03-22 22:43:36,682 DEBUG [GETMethodProcessor] Stream entity has length: 12298487547
2016-03-22 22:43:36,683 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Length: 12298487547,Content-Type: video/x-matroska,Cache-control: no-cache,Connection: close,Date: Tue, 22 Mar 2016 21:43:36 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Mac OS X, UPnP/1.0 DLNADOC/1.50, Serviio/1.6,transferMode.dlna.org: Streaming]]
2016-03-22 22:43:36,797 DEBUG [WebServer] I/O error: Broken pipe
2016-03-22 22:43:36,803 DEBUG [ServiioHttpService] Incoming request from /192.168.50.50:49379: GET /resource/228/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.50.62:8895,Connection: close,Range: bytes=12298487546-,User-Agent: libsoup/2.26.3]]
2016-03-22 22:43:36,803 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.50.50
2016-03-22 22:43:36,804 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.50.50
2016-03-22 22:43:36,804 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.50.50, Profile=Metz Topas TV'
2016-03-22 22:43:36,804 DEBUG [ResourceDeliveryProcessor] Request for resource 228 and type 'MEDIA_ITEM' received
2016-03-22 22:43:36,804 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 228 (local)
2016-03-22 22:43:36,804 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 228)
2016-03-22 22:43:36,805 DEBUG [VideoDAOImpl] Reading a Video (id = 228)
2016-03-22 22:43:36,806 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 228, format MATROSKA and profile Metz Topas TV
2016-03-22 22:43:36,806 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 228 (local)
2016-03-22 22:43:36,806 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 228)
2016-03-22 22:43:36,806 DEBUG [VideoDAOImpl] Reading a Video (id = 228)
2016-03-22 22:43:36,806 DEBUG [VideoDeliveryEngine] Delivering item '228' for client 'Identifier=192.168.50.50, Profile=Metz Topas TV'
2016-03-22 22:43:36,806 DEBUG [VideoDeliveryEngine] Delivering file 'video-1080p.mkv' in native format
2016-03-22 22:43:36,806 DEBUG [MediaItemDAOImpl] Getting file of media item 228
2016-03-22 22:43:36,807 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 228) as read
2016-03-22 22:43:36,807 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2016-03-22 22:43:36,807 DEBUG [GETMethodProcessor] Stream entity has length: 1
2016-03-22 22:43:36,808 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Length: 1,Content-Type: video/x-matroska,Cache-control: no-cache,Connection: close,Content-Range: bytes 12298487546-12298487546/12298487547,Date: Tue, 22 Mar 2016 21:43:36 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Mac OS X, UPnP/1.0 DLNADOC/1.50, Serviio/1.6,transferMode.dlna.org: Streaming]]
2016-03-22 22:43:36,942 DEBUG [ServiioHttpService] Incoming request from /192.168.50.50:49380: GET /resource/228/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.50.62:8895,Connection: close,Range: bytes=12298417341-,User-Agent: libsoup/2.26.3]]
2016-03-22 22:43:36,942 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.50.50
2016-03-22 22:43:36,942 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.50.50
2016-03-22 22:43:36,942 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.50.50, Profile=Metz Topas TV'
...


It seems to me, that serviio recognizes the correct profile ("...Profile=Metz Topas TV..."), but doesnt start to transcode ("...Delivering file 'video-1080p.mkv' in native format...").

Can anyone help me find my error?

thanks and regards
/d

Re: Working on my profile for Metz Topas TV

PostPosted: Tue Mar 22, 2016 10:05 pm
by DenyAll
Are you sure your source video file has HD DTS as it first audio stream. Check/post MediaInfo for the file.

If it proves to be DTS (rather than HD) try this:

  Code:
<Matches container="*" vCodec="h264" aCodec="dts-hd" />
<Matches container="*" vCodec="h264" aCodec="dca" />
The second line triggers transcode for standard DTS.

Re: Working on my profile for Metz Topas TV

PostPosted: Tue Mar 22, 2016 10:16 pm
by Docjones
Ah, ok - i tried that out, now i have the following in my log:

  Code:
2016-03-22 23:07:10,814 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 228, format MATROSKA and profile Metz Topas TV
2016-03-22 23:07:10,814 DEBUG [AbstractAVTranscodingDeliveryEngine] Getting media info for transcoded version of file video-1080p.mkv
2016-03-22 23:07:10,814 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "video-1080p.mkv": AVC_TS_MP_HD_AC3_ISO
2016-03-22 23:07:10,815 WARN  [ResourceDeliveryProcessor] Invalid request, sending back 500 error
org.serviio.dlna.UnsupportedDLNAMediaFileFormatException: No media description available for required version: MATROSKA
        at org.serviio.delivery.resource.AbstractDeliveryEngine.findMediaInfoForFileProfile(AbstractDeliveryEngine.java:217)
        at org.serviio.delivery.resource.transcode.AbstractAVTranscodingDeliveryEngine.retrieveTranscodedMediaInfoForVersion(AbstractAVTranscodingDeliveryEngine.java:165)
        at org.serviio.delivery.resource.AbstractDeliveryEngine.getMediaInfoForMediaItem(AbstractDeliveryEngine.java:107)
        at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResourceInfo(MediaResourceRetrievalStrategy.java:187)
        at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:80)
        at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
        at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
        at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
        at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
        at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)


I attached the Media Information from VLC

thanks & regards
/d

Re: Working on my profile for Metz Topas TV

PostPosted: Fri Mar 25, 2016 2:35 pm
by Docjones
Can someone please have a look?
I am still stuck with transcoding.

If it may be of any help, here is the output from the GetProtocolInfo(...) function of my TV:
  Code:
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_BL_CIF15_AAC_520;DLNA.ORG_FLAGS=8d100000000000000000000000000000,
http-get:*:audio/x-wav:*,
http-get:*:audio/mp4:*,
http-get:*:video/flv:*,
http-get:*:video/mp4:*,
http-get:*:video/x-matroska:*


thanks in advance
/D

Re: Working on my profile for Metz Topas TV

PostPosted: Fri Mar 25, 2016 10:30 pm
by Docjones
Jumped onto the profile.xml - its all a bit vague documented, here are my assumptions so far (perhaps someone can confirm):

- MediaFormatProfile: eg
<MediaFormatProfile mime-type=" video/mp4 ">AVC_MP4_BL_CIF15_AAC_520</MediaFormatProfile>
Every video of mime-type video/mp4 in Library will be presented to the requesting render device (aka TV) as AVC_MP4_BL_CIF15_AAC_520. I am still a bit unsure about the name parameter of the tag... :?:

- Transcoding Audio DTS to ac only:
  Code:
      <Transcoding>
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="*" aCodec="dts-hd" />   
            <Matches container="*" aCodec="dca" />   
         </Video>
      </Transcoding>

Re: Working on my profile for Metz Topas TV

PostPosted: Fri Mar 25, 2016 11:29 pm
by DenyAll
Quick question first. Searching the forum suggests this error is often seen if you are using a DLNA controller application (eg BubbleUPNP). Are you using anything like that?

Re: Working on my profile for Metz Topas TV

PostPosted: Sat Mar 26, 2016 8:15 am
by Docjones
No, nothing at all - i just use my TV capabilities to browse and request files from serviio running on an iMac.

Yesterday i noticed, that various other mime types are not working properly as well (eg. flv and even avi??). i will try to create a dedicated library with one file of each mime type to smooth the process a bit and report back here.

in any case - thanks for any help :)
/D

Re: Working on my profile for Metz Topas TV

PostPosted: Sat Mar 26, 2016 4:39 pm
by Docjones
So, i set up a small library with various files. Here is the outcome so far:

[*] AVI File with xvid codec and AC-3 Audio Stream: is not shown on the browselist on the TV. Only Message in the log is:
  Code:
2016-03-26 16:52:19,203 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "xvid-cd1.avi": MPEG_PS_PAL
2016-03-26 16:52:19,203 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "xvid-cd1.avi": MPEG_PS_NTSC


[*] FLV with AVC codec and AAC audio: is delivered natively, but cant rewind or forward. Jumps back to the beginning each time

[*] MKV with AVC codec and AC-3 audio: is delivered natively and can be rewinded or forwarded without problems

[*] MKV with AVC codec and DTS audio: is not shown on the browselist on the TV
  Code:
2016-03-26 16:52:37,094 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "video-1080p.mkv": AVC_TS_MP_HD_AC3_ISO


Thats my current profile entry:
  Code:
      
      <MediaFormatProfiles>
         <!--
            <MediaFormatProfile mime-type="video/x-matroska">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
           -->
           <MediaFormatProfile mime-type="video/mp4" name="AVC_MP4_BL_CIF15_AAC_520">AVC_MP4_MP_SD_DTS</MediaFormatProfile>
      </MediaFormatProfiles>
      <Transcoding>
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="*" aCodec="dts-hd" />   
            <Matches container="*" aCodec="dca" />   
         </Video>
      </Transcoding>


I am a bit clueless: I would have expected at least transcoding to work. But i cant even select the files to be transcoded.

Any help is appreciated
regards
/D

Re: Working on my profile for Metz Topas TV

PostPosted: Sun Mar 27, 2016 11:02 pm
by Calypso
I have a Metz too, but my problem is, that all the mkv files with DTS stream (which souhld be transcoded to AC3) with the following profile are not visible in the playlist on TV. What are the things I have to define, that these files are visible so that I can check, if they will be transcoded?


  Code:
   <Profile id="Metz" name="Metz TV" extendsProfileId="1">
      <Detection>
         <UPnPSearch>
            <Manufacturer>Metz</Manufacturer>
         </UPnPSearch>
      </Detection>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-matroska">MATROSKA</MediaFormatProfile>
        </MediaFormatProfiles>
        <H264LevelCheck>FILE_ATTRIBUTES</H264LevelCheck>
      <Transcoding>
         <!--DTS Files not visible-->
         <Video targetContainer="m2ts" targetACodec="ac3">
            <Matches container="matroska" vCodec="h264" aCodec="dca" />
         </Video>
or
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="matroska" aCodec="dca" />
         </Video>
      </Transcoding>
   </Profile>

Re: Working on my profile for Metz Topas TV

PostPosted: Mon Apr 04, 2016 3:38 pm
by Docjones
Bump? :ugeek:

Re: Working on my profile for Metz Topas TV

PostPosted: Mon Apr 04, 2016 3:51 pm
by Docjones
Calypso wrote:I have a Metz too, but my problem is, that all the mkv files with DTS stream (which souhld be transcoded to AC3) with the following profile are not visible in the playlist on TV. What are the things I have to define, that these files are visible so that I can check, if they will be transcoded?



... which is exactly the same problem i have. Did you got any further?

Re: Working on my profile for Metz Topas TV

PostPosted: Wed Apr 06, 2016 12:54 pm
by DenyAll
Unfortunately without the TV it's difficult to help. The only thing I can think of is that you try all other profiles and see if any of them allow the file to be played. With that info and the sink details from above we can then perhaps move forward.

It could also be that the METZ simply doesn't support transcoded files - the older LG's were like that apparently (based on this one post it seems to be an issue with Plex as well...)