Kodi Community Forum

Full Version: Can i add info from a .nfo to VideoFullScreen.xml?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
im trying to pull aspect ratio from the .nfo file from a movie to be displayed when info is pressed during playback, i currently use:

<label>[LIGHT]Aspect Ratio:[/LIGHT] $INFO[Player.Process(VideoDAR)]:1</label>

but it always returns 1.78:1

i would like to use the actual aspect ratio written to the .nfo file

i tried:

<label>[LIGHT]Aspect Ratio:[/LIGHT] $INFO[ListItem.VideoAspect]:1</label>


but it just comes up blank
anyone?
anyone?
@spl147

You would be better off asking in the skinning section. I'll move your thread there.

It used to be that the aspect ratio from the actual video file would always overwrite any aspect ratio scanned from a nfo file. But there were some recent changes by arnova and I don't know if that is still the case.

Do you know where your 1.78:1 is coming from? Is that what the actual video file returns?
(2020-03-07, 02:10)Karellen Wrote: [ -> ]@spl147

You would be better off asking in the skinning section. I'll move your thread there.

It used to be that the aspect ratio from the actual video file would always overwrite any aspect ratio scanned from a nfo file. But there were some recent changes by arnova and I don't know if that is still the case.

Do you know where your 1.78:1 is coming from? Is that what the actual video file returns?
yes 1.78:1 is what mediainfo returns (it is the movie with black bars. im trying to use the actual aspect ratio of the movie minus black bars (stored aspect ratio created bt tmm in the nfo file)
Player.Process always shows the details directly from the actual playing video stream - not from the library database.

The equivalent of ListItem.VideoAspect for the currently playing item is:
$INFO[VideoPlayer.VideoAspect]

I'm not certain if Kodi overrides the nfo in the Player though. If it doesn't work for VideoPlayer.VideoAspect then there isn't a way to get it.

Skinning manual is your friend:
https://kodi.wiki/view/Skinning_Manual#Video_player
(2020-03-08, 00:44)jurialmunkey Wrote: [ -> ]Player.Process always shows the details directly from the actual playing video stream - not from the library database.

The equivalent of ListItem.VideoAspect for the currently playing item is:
$INFO[VideoPlayer.VideoAspect]

Skinning manual is your friend:
https://kodi.wiki/view/Skinning_Manual#Video_player


Tried it, also displays aspectratio from video not nfo
(2020-03-08, 00:46)spl147 Wrote: [ -> ]
(2020-03-08, 00:44)jurialmunkey Wrote: [ -> ]Player.Process always shows the details directly from the actual playing video stream - not from the library database.

The equivalent of ListItem.VideoAspect for the currently playing item is:
$INFO[VideoPlayer.VideoAspect]

Skinning manual is your friend:
https://kodi.wiki/view/Skinning_Manual#Video_player


Tried it, also displays aspectratio from video not nfo

Then it's not possible to get nfo details.
are you in the right place
estuary has the info in DialogPlayerProcessInfo.xml
xml:
<control type="grouplist">
                <left>52</left>
                <top>-204</top>
                <visible>Control.HasFocus(5552)</visible>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videodecoder),[COLOR button_focus]$LOCALIZE[31139]:[/COLOR] ]$VAR[VideoHWDecoder, (,)]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(pixformat),[COLOR button_focus]$LOCALIZE[31140]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(deintmethod),[COLOR button_focus]$LOCALIZE[16038]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videowidth),[COLOR button_focus]$LOCALIZE[38031]:[/COLOR] ,x]$INFO[Player.Process(videoheight),, px]$INFO[Player.Process(videodar),$COMMA , AR]$INFO[Player.Process(videofps),$COMMA , FPS]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>[COLOR button_focus]$LOCALIZE[460]:[/COLOR] $INFO[Player.Process(audiochannels),,$COMMA ]$INFO[Player.Process(audiodecoder)]$INFO[Player.Process(audiobitspersample),$COMMA , bits]$INFO[Player.Process(audiosamplerate),$COMMA , Hz]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[System.Memory(used.percent),[COLOR button_focus]$LOCALIZE[31030]:[/COLOR] ,       ]$INFO[System.CpuUsage,[COLOR button_focus]$LOCALIZE[13271][/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
            </control>
(2020-03-08, 01:46)the_other_guy Wrote: [ -> ]are you in the right place
estuary has the info in DialogPlayerProcessInfo.xml
xml:
<control type="grouplist">
                <left>52</left>
                <top>-204</top>
                <visible>Control.HasFocus(5552)</visible>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videodecoder),[COLOR button_focus]$LOCALIZE[31139]:[/COLOR] ]$VAR[VideoHWDecoder, (,)]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(pixformat),[COLOR button_focus]$LOCALIZE[31140]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(deintmethod),[COLOR button_focus]$LOCALIZE[16038]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videowidth),[COLOR button_focus]$LOCALIZE[38031]:[/COLOR] ,x]$INFO[Player.Process(videoheight),, px]$INFO[Player.Process(videodar),$COMMA , AR]$INFO[Player.Process(videofps),$COMMA , FPS]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>[COLOR button_focus]$LOCALIZE[460]:[/COLOR] $INFO[Player.Process(audiochannels),,$COMMA ]$INFO[Player.Process(audiodecoder)]$INFO[Player.Process(audiobitspersample),$COMMA , bits]$INFO[Player.Process(audiosamplerate),$COMMA , Hz]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[System.Memory(used.percent),[COLOR button_focus]$LOCALIZE[31030]:[/COLOR] ,       ]$INFO[System.CpuUsage,[COLOR button_focus]$LOCALIZE[13271][/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
            </control>
Im not sure how this is helpful to my question?
(2020-03-08, 01:55)spl147 Wrote: [ -> ]
(2020-03-08, 01:46)the_other_guy Wrote: [ -> ]are you in the right place
estuary has the info in DialogPlayerProcessInfo.xml
xml:
<control type="grouplist">
                <left>52</left>
                <top>-204</top>
                <visible>Control.HasFocus(5552)</visible>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videodecoder),[COLOR button_focus]$LOCALIZE[31139]:[/COLOR] ]$VAR[VideoHWDecoder, (,)]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(pixformat),[COLOR button_focus]$LOCALIZE[31140]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(deintmethod),[COLOR button_focus]$LOCALIZE[16038]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videowidth),[COLOR button_focus]$LOCALIZE[38031]:[/COLOR] ,x]$INFO[Player.Process(videoheight),, px]$INFO[Player.Process(videodar),$COMMA , AR]$INFO[Player.Process(videofps),$COMMA , FPS]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>[COLOR button_focus]$LOCALIZE[460]:[/COLOR] $INFO[Player.Process(audiochannels),,$COMMA ]$INFO[Player.Process(audiodecoder)]$INFO[Player.Process(audiobitspersample),$COMMA , bits]$INFO[Player.Process(audiosamplerate),$COMMA , Hz]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[System.Memory(used.percent),[COLOR button_focus]$LOCALIZE[31030]:[/COLOR] ,       ]$INFO[System.CpuUsage,[COLOR button_focus]$LOCALIZE[13271][/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
            </control>
Im not sure how this is helpful to my question? 
Image

im trying to pull aspect ratio from the .nfo file from a movie to be displayed when info is pressed during playback, i currently use:
(2020-03-08, 02:08)the_other_guy Wrote: [ -> ]
(2020-03-08, 01:55)spl147 Wrote: [ -> ]
(2020-03-08, 01:46)the_other_guy Wrote: [ -> ]are you in the right place
estuary has the info in DialogPlayerProcessInfo.xml
xml:
<control type="grouplist">
                <left>52</left>
                <top>-204</top>
                <visible>Control.HasFocus(5552)</visible>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videodecoder),[COLOR button_focus]$LOCALIZE[31139]:[/COLOR] ]$VAR[VideoHWDecoder, (,)]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(pixformat),[COLOR button_focus]$LOCALIZE[31140]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(deintmethod),[COLOR button_focus]$LOCALIZE[16038]:[/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[Player.Process(videowidth),[COLOR button_focus]$LOCALIZE[38031]:[/COLOR] ,x]$INFO[Player.Process(videoheight),, px]$INFO[Player.Process(videodar),$COMMA , AR]$INFO[Player.Process(videofps),$COMMA , FPS]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>[COLOR button_focus]$LOCALIZE[460]:[/COLOR] $INFO[Player.Process(audiochannels),,$COMMA ]$INFO[Player.Process(audiodecoder)]$INFO[Player.Process(audiobitspersample),$COMMA , bits]$INFO[Player.Process(audiosamplerate),$COMMA , Hz]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
                <control type="label">
                    <width>1600</width>
                    <height>50</height>
                    <aligny>bottom</aligny>
                    <label>$INFO[System.Memory(used.percent),[COLOR button_focus]$LOCALIZE[31030]:[/COLOR] ,       ]$INFO[System.CpuUsage,[COLOR button_focus]$LOCALIZE[13271][/COLOR] ]</label>
                    <font>font14</font>
                    <shadowcolor>black</shadowcolor>
                </control>
            </control>
Im not sure how this is helpful to my question? 
Image

im trying to pull aspect ratio from the .nfo file from a movie to be displayed when info is pressed during playback, i currently use:

OP wants aspect ratio details contained in the .nfo file associated with the playing video NOT the actual aspect ratio of the playing video.
anyone know how to accomplish this?

perhaps call $INFO[ListItem.VideoAspect] when play is clicked then pass it to $INFO[VideoPlayer.VideoAspect]

but i have no idea howto do that
(2020-03-10, 23:20)spl147 Wrote: [ -> ]anyone know how to accomplish this?

perhaps call $INFO[ListItem.VideoAspect] when play is clicked then pass it to $INFO[VideoPlayer.VideoAspect]

but i have no idea howto do that

You would need to override the onclick action which you can't do for normal library containers.

You could try setting a window property onunload of MyVideoNav.xml
Code:
<onunload>SetProperty(nowplaying_videoaspect,$INFO[ListItem.VideoAspect],Home)</onunload>

And then:
Code:
$INFO[Window(Home).Property(nowplaying_videoaspect)]

You would need to couple this approach with custom onclick actions for any widget containers that you use.

Also, this approach is a total hack and likely won't work in many scenarios.
(2020-03-11, 03:18)jurialmunkey Wrote: [ -> ]
(2020-03-10, 23:20)spl147 Wrote: [ -> ]anyone know how to accomplish this?

perhaps call $INFO[ListItem.VideoAspect] when play is clicked then pass it to $INFO[VideoPlayer.VideoAspect]

but i have no idea howto do that

You would need to override the onclick action which you can't do for normal library containers.

You could try setting a window property onunload of MyVideoNav.xml
Code:
<onunload>SetProperty(nowplaying_videoaspect,$INFO[ListItem.VideoAspect],Home)</onunload>

And then:
Code:
$INFO[Window(Home).Property(nowplaying_videoaspect)]

You would need to couple this approach with custom onclick actions for any widget containers that you use.

Also, this approach is a total hack and likely won't work in many scenarios. 
WOW, that totally works! thank you so much!
Pages: 1 2