HEVC Video, DTSX, ATMOS, DD+ Audio Codecs (1 Viewer)

bta489

Portal Pro
March 17, 2013
137
68
Germany Germany
Country flag
Hi there,

since Germany moved to HEVC with DVB-T2, whenever I add a recorded Movie to MovPic the Video Codec is filled with "v_mpegh/iso/hevc". This makes it impossible for it to have a corresponding Logo in the GUI and I have to manually change every movie I add to just "hevc".

I suppose it's just the normal output of MediaInfo for that Codec, but can there be anything done to override it and have a filename-friendly Codec-Value by default?
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,364
    1,839
    Country flag
    I've got HEVC and 4K detection for skin working fine in MP-TVSeries, and Moving-Pictures.

    I decided to make them "pop" out more than the default skin, so I personally went with a blue HEVC logo, and a bright yellow 4K logo. Feel free to use the default `hevc.png` and `2160p.png` images if you prefer default look.

    Was able to play with size/aspect-ratio and placement with the Moving-Pictures skin, but not with MP-TVSeries, and haven't taken then time yet to fix that with transparent canvas padding. The following will work as-is, but I planned to submit this properly with adjusted images to the GitHub repositories of the respective plugin.

    Copy the attachments as follows:

    <skin folder>\Media\logos\resolution\4K.png
    <skin folder>\Media\logos\video\hevc2.png

    <skin folder>\Media\TVSeries\Logos\4K.png
    <skin folder>\Media\TVSeries\Logos\hevc2.png​

    And then make the following skin changes (they are for Titan Extended, but should work for most other skins with minor adjustments for MovPic placement by paying attention to the existing posX/posY of the entries above):

    TVSeries.SkinSettings.xml (parts in bold are changed)

    skin\Titan\Media\TVSeries\Logos\1080p.png;-;<Episode.videoWidth>;-;>;-;1820;-;AND;-;<Episode.videoWidth>;-;<=;-;1920;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\Titan\Media\TVSeries\Logos\4K.png;-;<Episode.videoWidth>;-;>;-;3640;-;OR;-;<Episode.videoHeight>;-;=;-;2160;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    skin\Titan\Media\TVSeries\Logos\hevc2.png;-;<Episode.VideoFormat>;-;=;-;HEVC;-;OR;-;<Episode.VideoCodec>;-;=;-;h265;-;AND;-;;-;=;-;;-;<Restrict:Episode>

    skin\Titan\Media\TVSeries\Logos\h264.png;-;<Episode.VideoFormat>;-;=;-;AVC;-;OR;-;<Episode.VideoCodec>;-;=;-;h264;-;AND;-;;-;=;-;;-;<Restrict:Episode>
    movingpictures.mediainfo.xml (bold is new)

    <control Style="MediaLogos">
    <description>Video resolution</description>
    <type>image</type>
    <id>0</id>
    <posX>660</posX>
    <posY>890</posY>
    <width>92</width>
    <height>60</height>
    <texture>Logos\resolution\#MovingPictures.LocalMedia.videoresolution.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>facadeview.list+Control.IsVisible(50)+!string.equals(#MovingPictures.LocalMedia.videowidth,3840)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
    <control Style="MediaLogos">
    <description>Video resolution 4K Force</description>
    <type>image</type>
    <id>0</id>
    <posX>662</posX>
    <posY>898</posY>
    <width>72</width>
    <height>60</height>
    <texture>Logos\resolution\4K.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>facadeview.list+Control.IsVisible(50)+string.equals(#MovingPictures.LocalMedia.videowidth,3840)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>

    <control Style="MediaLogos">
    <description>Video codec</description>
    <type>image</type>
    <id>0</id>
    <posX>740</posX>
    <posY>890</posY>
    <width>92</width>
    <height>60</height>
    <texture>Logos\video\#MovingPictures.LocalMedia.videocodec.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>facadeview.list+Control.IsVisible(50)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
    <control Style="MediaLogos">
    <description>Video codec HEVC</description>
    <type>image</type>
    <id>0</id>
    <posX>746</posX>
    <posY>894</posY>
    <width>80</width>
    <height>52</height>
    <texture>Logos\video\hevc2.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>facadeview.list+Control.IsVisible(50)+string.contains(#MovingPictures.LocalMedia.videocodec,hevc)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
    movingpictures.mediainfo.details.xml (bold is new)

    <control Style="MediaLogos">
    <description>Video resolution</description>
    <type>image</type>
    <id>0</id>
    <posX>1118</posX>
    <posY>898</posY>
    <width>92</width>
    <height>60</height>
    <texture>Logos\resolution\#MovingPictures.LocalMedia.videoresolution.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>!Control.IsVisible(50)+ !Control.IsVisible(51) + !Control.HasFocus(10001)+ !Control.HasFocus(10002) + !Control.HasFocus(10005)</visible>
    <animation effect="fade" time="250">Visible</animation>
    <animation effect="fade" time="0">WindowClose</animation>
    </control>
    <control Style="MediaLogos">
    <description>Video resolution 4K Force</description>
    <type>image</type>
    <id>0</id>
    <posX>1120</posX>
    <posY>906</posY>
    <width>72</width>
    <height>60</height>
    <texture>Logos\resolution\4K.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>!Control.IsVisible(50)+ !Control.IsVisible(51) + !Control.HasFocus(10001)+ !Control.HasFocus(10002) + !Control.HasFocus(10005)+string.equals(#MovingPictures.LocalMedia.videowidth,3840)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>

    <control Style="MediaLogos">
    <description>Video codec</description>
    <type>image</type>
    <id>0</id>
    <posX>1198</posX>
    <posY>898</posY>
    <width>92</width>
    <height>60</height>
    <texture>Logos\video\#MovingPictures.LocalMedia.videocodec.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>!Control.IsVisible(50)+ !Control.IsVisible(51) + !Control.HasFocus(10001)+ !Control.HasFocus(10002) + !Control.HasFocus(10005)</visible>
    <animation effect="fade" time="250">Visible</animation>
    <animation effect="fade" time="0">WindowClose</animation>
    </control>
    <control Style="MediaLogos">
    <description>Video codec HEVC</description>
    <type>image</type>
    <id>0</id>
    <posX>1204</posX>
    <posY>904</posY>
    <width>80</width>
    <height>52</height>
    <texture>Logos\video\hevc2.png</texture>
    <keepaspectratio>yes</keepaspectratio>
    <visible>!Control.IsVisible(50)+ !Control.IsVisible(51) + !Control.HasFocus(10001)+ !Control.HasFocus(10002) + !Control.HasFocus(10005)+string.contains(#MovingPictures.LocalMedia.videocodec,hevc)</visible>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    </control>
     

    Attachments

    Last edited:

    bta489

    Portal Pro
    March 17, 2013
    137
    68
    Germany Germany
    Country flag
    Thank you, @RoChess

    Maybe not the cleanest solution, but a workaround I can live with. I modified my skinfiles accordingly, so hopefully the next Movie I add will have all those fancy Logos right from the start. (y)
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,364
    1,839
    Country flag
    I will update the MovingPictures mediainfo parsing to detect HEVC and set that as the VideoCodec. That will allow you to simply drop in a logo without using a string.contains skin expressions.
    Please expand the scan on audio information as well then for "Atmos".

    Original string is something like "E-AC-3+Atmos / E-AC-3" or "TrueHD+Atmos / TrueHD / AC-3", and then the "Atmos" part gets lost with the codec showing up as just "E-AC-3" or "TrueHD".

    The '+' character is allowed in filenames, so "E-AC-3+Atmos.png" and "TrueHD+Atmos.png" should work fine.

    I'm personally fine with "Atmos.png" taking precedence for both (and others) if that is easier.

    Not sure if DTS-X is covered by default, and I can't look at HTPC right now.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,364
    1,839
    Country flag
    @ltfearme, I got a few test files I can throw at it, if you have like a compiled test version of MovPic so I can look at logs to see what the detected, and create PNG files as needed.
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    I 1.25.0 Videos in HEVC UHD 2160p don't play good watch/edit Videos 8
    bta489 [solved] Stuttering playback of edited recordings watch/edit Videos 2
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 8
    M HEVC 10 bit washed out colours Codecs, External Players 3
    R MP2 - V2.3 Anmeldung Online Video (Streaming provider) Allgemeines Support- und Diskussionsforum 4
    doskabouter 1.26.0 Codec question (unable to play video, lv50 codec) Codecs, External Players 15
    Scheibes MP2 - V2.3 2. Client stops video on 1. Client Submit: Bug Reports 10
    S MP2 - V2.3 MP2 No video General 6
    Sakols No video in channel preview window General Support 12
    P Nach Video Stream muss TVService beendet werden TV / Streaming 0
    O No Video playback on Media Portal 2.2.3 Newcomers Forum 2
    E 1.25.0 Change AVC / AAC Codec for Analog card captured videos Codecs, External Players 0
    N [not reproducible] Online videos not working at all Submit: Bug Reports 1
    R Bug: Video Folders disappear General Support 11
    Stephen O'Kane [SOLVED] TV Stream stuttering - both Video and Audio Watch / Listen Media 14
    B some music videos stutter Watch / Listen Media 0
    CanadianEh MP TV server rebuild with Colossus 2 - Kodi clients receive PMT error when playing videos recoreded by Colossus 2 TV-Server 2
    Rob Hexenmeister Skinning Online Videos question OnlineVideos 2
    A [solved] How to Play All Videos in a List watch/edit Videos 3
    O 1.25.0 Codecs and Video Format for PlayStation 2 Codecs, External Players 0
    g0rsq Info box randomly popping up when watching TV or other video MediaPortal 2 Newcomers Forum 1
    I Video Playback Stuttering General Support 45
    B some videos jerky Television (MyTV frontend and TV-Server) 0
    B MP 2.2.3 Error playing videos from NAS Submit: Bug Reports 2
    T Kurze Tonaussetzter bei Videos und TV Allgemeines Supportforum 1

    Similar threads

    Top Bottom