ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

How to remove the black horizontal bars from the video

Open GouravSna opened this issue 3 years ago • 1 comments

I have a media where the black horizontal bars are visible. I want to remove those bars and want the media to cover the full screen without loosing any visible video pixel or by stretching the video.

I can see there are multiple Aspect ratios which can be used but in that case, either i will loose any visible pixel (like Zoom) or the video will get stretched which does not give good viewing experience.

What i understood by doing some research that this mostly depends on the media, how it was shot and processed. https://www.brightcove.com/en/resources/blog/how-avoid-black-bars-around-your-video/

I am sending such video over the email.

ExoPlayer version: v2.17.1

GouravSna avatar Jul 25 '22 12:07 GouravSna

I want to remove those bars and want the media to cover the full screen without loosing any visible video pixel or by stretching the video.

I'm not sure if I understand correctly, but both requirements together are not possible unless the video aspect ratio exactly matches the screen aspect ratio. Otherwise you always have to add black bars, crop the video or apply some stretching to fill the screen.

The video you've sent over email also has baked-in black bars, which makes the process more complicated because the player doesn't know the actual video aspect ratio without looking at the decoded pixels.

tonihei avatar Jul 26 '22 08:07 tonihei

Closing due to inactivity.

tonihei avatar Sep 06 '22 09:09 tonihei