Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greubel
Visitor

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 ?
0 Kudos
5 REPLIES 5
destruk
Streaming Star

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.
0 Kudos
greubel
Visitor

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.
0 Kudos
renojim
Community Streaming Expert

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
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.
0 Kudos
greubel
Visitor

Re: Constrain Video Size

Well, it doesn't work with the roVideoPlayer on Roku2 either !
0 Kudos
TheEndless
Channel Surfer

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)
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.