Dear all,
I’m developping a mobile game and there are skills that have image and video previews.
Videos are at 1080 x 500 px format.
When playing the video previews, for some reason it has some black bars on the bottom (12px) and right (8px) of it.
Before playing the video, there is only an image preview
After pressing the “play” button, the image is replaced by the video, that has bar on the borders
Issue is, this happens only on Android phones (I’ve tried 4 or them and all seems to have the same issue). On iOS, or inside Unity, no problem, the video is played correctly with no bars on the borders.
The fact that there is no issue on Unity makes it very hard to debug, I have no idea where to look for.
For reference, here are the properties of the Render Texture I’m using to project the video on :
Any help would be greatly appreciated 
Thanks !
I have the same problem on Android but bars are green. Did you find any solution?
Hello !
Partially… I’ve upgraded to Unity 2022.3.57, bars seem gone but the videos are still somehow a little shrinked. It’s a bit better though but not perfect.
Which unity version do you use ?
Hello,
I’m on Unity 2022.3.61. Before I was using 2021.3.42 and didn’t have any problems. I will see what can be done, if I find anything I will update here.
1 Like
I think I fixed it on my game. Old video size was 700x850. I exported the video with 640x720 and now green bars are gone. Screenshots from Android old and new size
I think you can test your video with 1080x480 size. And Depth Stencil Format is none on my Render Texture
But then your video is not stretched ? Since the 2 resolution sets that you describe above don’t have the same W/H ratio ?
Yes W/H ratio was different so I made UI also smaller. But now I use 720x880 and W/H is a little different but there are no green bars.