Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd June 2021, 07:16   #1  |  Link
mapg
Registered User
 
Join Date: Dec 2014
Posts: 8
FFmpeg - how to remove black borders when resizing an image

Hi everyone,

I am creating some thumbnails using FFmpeg and I see that some black borders are created when I resize them.

I guess this is happening because the video source dimension doesn't match exactly the target dimension, so FFmpeg fills out the blank space with this black color.

My question is ...

Can I change this "black color" used by FFmpeg by default so I can match these extra borders added with the background of my application?

If this is not possible ...

Can I convert these black borders to a transparent area so I can create a PNG to match my background which has a different color (a kind of light green)

I have attached an example where you will see two black pixels height in the bottom zone of the picture.

This is what I want to convert to transparent or being able to choose my own color.

Any idea to solve this issue will be very helpful for me?

Thank you very much in advance!

Mapg


Last edited by mapg; 3rd June 2021 at 07:19.
mapg is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:55.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.