question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Result stream and video record have black border.

See original GitHub issue

Result video stream and video record have black border. Device screen size : 1080 x 2076 And prepareVideo with width = 1080 and height = 1920 I call this method for streaming and recording video but my video always have black border. I need help to fix this

if (rtmpDisplay!!.prepareVideo(
                                1080,
                                1920,
                                fps,
                                bitrate,
                                orientation,
                                density_dpi
                            )
                        )

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
pedroSG94commented, Jun 18, 2020

I’m working on it.

0reactions
pedroSG94commented, Aug 23, 2020

This error was because stream resolution and device resolution have different aspect ratio. You need stream or record to same aspect ratio to avoid black border. For this reason, to keep aspect ratio the result will have border. This isn’t a bug. This is working as expected

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Does My Video Have 2 Black Bars on the Sides? [Aspect ...
If you see black bars on either side of your video, you have an issue with the aspect ratio of your image. Here...
Read more >
Question / Help - Obs settings and black bars left and right
hello i need help, I would like to stream and record to 720p or higher , but I always have black bars on...
Read more >
How To: Avoid Black Bars Around Your Video | Brightcove
The reason you get these black bars is because your player and your video are not the same aspect ratio. In today's day...
Read more >
How to Remove Black Bars from Your Video - Wistia Blog
This article explains why black bars appear on the top or sides of your embedded video, and how you can eliminate them!
Read more >
Black bars are displayed on the top and bottom of the TV ...
It is still possible to see black bars at the top and bottom of the picture if you have an HDTV with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found