Log in or register to post comments

Resize a video to play at same size as marker

October 25, 2013 - 4:01pm #1

Hi everyone,

I'm not exactly sure whether this is the right location for this thread question, so I apologize if it's not.

I am having difficulties playing a video at the same exact size of the marker detected.

For example, I have a marker (a circular image) with a size of 570 x 570.

The video I'm playing on it has a frame width of 1072 and a frame height of 720 (1072 x 720), and when I play the video on top of the marker after it's detected, the videos height doesn't exceed the markers height like I figured it would (based on their dimensions of 720 vs 570.

The media players size dimension gets set to the videos width and height (which I understand) and that's why the video isn't sized to match the marker exactly.

My assumption is, and please tell me if it's inaccurate, is that if I crop the video to a frame width of 570, and a frame height of 570, the video should play back exactly over top of the marker, since the video is positioned to play at the center of the marker.

Is that correct?

Resize a video to play at same size as marker

April 18, 2018 - 5:59am #4

I am facing the same issue now.   Any updates on how to achieve it? Please update in this thread

Resize a video to play at same size as marker

April 17, 2017 - 1:10pm #3

Create a plane and drag it in to the Image Target and drag video into the plane.and resize the plane

 

Resize a video to play at same size as marker

October 25, 2013 - 4:07pm #2

Yes the video is rescaled and centered on the target, but you can change that by modifying the VideoPlaybackBehaviour code. See: https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/modifying-scale-video-plane-video-playback-sample-app

Log in or register to post comments