Jump to content

Manual control over HD video labeling in KVS


Jasmine

Recommended Posts

Hi,

I am reaching out regarding my tube site and the way KVS labels videos as HD. Currently, any video with a height above 720p is automatically marked as HD. While this process works in some cases, there are instances where the video quality does not meet true HD standards. Factors like frame rates, aspect ratio, and overall clarity also play a significant role in determining whether a video is genuinely high definition. Is there a way to manually assign or remove the 'HD', 2K, 4K labels from videos? This would really help ensure that only high-quality content is marked as HD and prevent any misleading designations.

Link to comment
Share on other sites

The only way we can see to do it manually is to use custom field for videos. First you need to enable it in Settings -> Customization, for example custom field #1.

Then you can specify HD, 2K or 4K labels there. Then in Website UI -> Page components -> include_list_videos_block_common.tpl you need to change this code:

{{if $item.resolution_type==1}}<span class="is-hd">HD</span>{{elseif $item.resolution_type>0}}<span class="is-hd is-{{$item.resolution_type}}k">{{$item.resolution_type}}K</span>{{/if}}

with this:
 

{{if $item.custom1|lower|=='hd' || $item.custom1|lower=='2k' || $item.custom1|lower=='4k'}}<span class="is-hd is-{{$item.custom1|lower}}">{{$item.custom1|upper}}</span>{{/if}}

So the idea of the is the following: if custom #1 field contains HD or 2K or 4K, this value will be displayed, otherwise nothing will be displayed.

Link to comment
Share on other sites

On 9/5/2024 at 12:14 PM, Tech Support said:

The only way we can see to do it manually is to use custom field for videos. First you need to enable it in Settings -> Customization, for example custom field #1.

Then you can specify HD, 2K or 4K labels there. Then in Website UI -> Page components -> include_list_videos_block_common.tpl you need to change this code:

{{if $item.resolution_type==1}}<span class="is-hd">HD</span>{{elseif $item.resolution_type>0}}<span class="is-hd is-{{$item.resolution_type}}k">{{$item.resolution_type}}K</span>{{/if}}

with this:
 

{{if $item.custom1|lower|=='hd' || $item.custom1|lower=='2k' || $item.custom1|lower=='4k'}}<span class="is-hd is-{{$item.custom1|lower}}">{{$item.custom1|upper}}</span>{{/if}}

So the idea of the is the following: if custom #1 field contains HD or 2K or 4K, this value will be displayed, otherwise nothing will be displayed.

Thank you. Also, may I please ask if the parameters/criteria of the current labeling of videos as "HD" in KVS modifiable from my side?

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...