greubel
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2012
08:08 AM
Constrain Video Size
If you have movies with a smaller size than the screen, the movies are stretched out to fill the screen. This can cause them to become very pixellated.
Using SetDestinationRect() with the roVideoPlayer to the actual size of the movie works on all the Roku boxes except the Roku2.
Is there another way to STOP the scaling, that will work on all the boxes ?
Using SetDestinationRect() with the roVideoPlayer to the actual size of the movie works on all the Roku boxes except the Roku2.
Is there another way to STOP the scaling, that will work on all the boxes ?
5 REPLIES 5
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2012
08:38 AM
Re: Constrain Video Size
One surefire way would be to re-encode the video with a static border around it to fill the dead space.
greubel
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2012
10:42 AM
Re: Constrain Video Size
My application has to play UNKNOWN videos from the user's hard drive.
So I am unable to re-encode the videos.
But I can detect the video's properties for width, height and duration.
So I am unable to re-encode the videos.
But I can detect the video's properties for width, height and duration.
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2012
11:48 AM
Re: Constrain Video Size
Do you mean SetDestinationRect() with the roVideoScreen doesn't work on Roku 2s? I'm pretty sure SetDestinationRect() works with roVideoPlayer. I pointed out the SetDestinationRect/roVideoScreen bug long ago, but it's clearly not going to be fixed.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
greubel
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2012
12:07 PM
Re: Constrain Video Size
Well, it doesn't work with the roVideoPlayer on Roku2 either !

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2012
12:19 PM
Re: Constrain Video Size
"greubel" wrote:
Well, it doesn't work with the roVideoPlayer on Roku2 either !
It definitely works with roVideoPlayer. See the customvideoplayer SDK example as proof.
It's possible that it's one of those settings that only works if it's set before one or more of the other settings.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)