krh5150
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014
07:08 AM
Video Screen Size based on Conditions
Hi,
Is there a way to set the video screen dimensions based on the video file (mp4) dimensions properties using the functions below?
SetDestinationRect(x as Integer, y as Integer, w as Integer, h as Integer)
SetMaxVideoDecodeResolution(Integer width, Integer height) as Void
There are some cases where the top and bottom black bars are too much and would like to reduce them by resizing the video screen based on video file properties.
Thanks,
Kevin
Is there a way to set the video screen dimensions based on the video file (mp4) dimensions properties using the functions below?
SetDestinationRect(x as Integer, y as Integer, w as Integer, h as Integer)
SetMaxVideoDecodeResolution(Integer width, Integer height) as Void
There are some cases where the top and bottom black bars are too much and would like to reduce them by resizing the video screen based on video file properties.
Thanks,
Kevin
2 REPLIES 2

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014
09:19 AM
Re: Video Screen Size based on Conditions
You would have to determine the dimensions on your server (with ffmpeg or mediainfo or something similar, or by hand) and pass those dimensions to your brightscript program with XML or JSON metadata, and then see if you can adjust SetDestinationRect to compensate.
Best would be to encode your content in the desired aspect ratio to eliminate that, or to use source content that is of the desired aspect ratio.
- Joel
Best would be to encode your content in the desired aspect ratio to eliminate that, or to use source content that is of the desired aspect ratio.
- Joel

NewManLiving
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2014
10:25 AM
Re: Video Screen Size based on Conditions
Also if you know all this beforehand and the data is essentially static you can overlay attractive borders or a rectangle
Border the same color as the screen below. If fullscreen you can still overlay
Something more appealing. If using image canvas set your border layer above
The video. If roscreen set the sprite z order above the video
Border the same color as the screen below. If fullscreen you can still overlay
Something more appealing. If using image canvas set your border layer above
The video. If roscreen set the sprite z order above the video
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )