Jasmine Posted September 4 Share Posted September 4 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. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted September 5 Share Posted September 5 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. Quote Link to comment Share on other sites More sharing options...
Jasmine Posted Friday at 11:26 AM Author Share Posted Friday at 11:26 AM 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? Quote Link to comment Share on other sites More sharing options...
Tech Support Posted Friday at 01:11 PM Share Posted Friday at 01:11 PM No, this can't be modified, but in template you can additionally check for proportions, or size because size data is available in template. With regard to framerate - KVS doesn't keep this info anywhere, so it is not accessible. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.