Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video color is strange when use FFmpegFrameFilter to add watermark #232

Closed
ongakuer opened this issue Sep 25, 2015 · 8 comments
Closed

Video color is strange when use FFmpegFrameFilter to add watermark #232

ongakuer opened this issue Sep 25, 2015 · 8 comments
Labels

Comments

@ongakuer
Copy link

Hello,Samuel. Thanks for your powerful project.
I try to use FFmpegFrameFilter to add watermark.

new FFmpegFrameFilter("movie=image.png [logo];[in][logo]overlay=0:0:1[out]",WIDTH, HEIGHT);

But the video color is strange. Can you give me some advice?

I think I can convert Frame to IplImage or Mat by import OpenCV to add watermark. But I would like to just use FFmpegFrameFilter.

screenshot_2015-09-25-17-06-13

@saudet
Copy link
Member

saudet commented Sep 25, 2015

Looks like you're going to need to convert that to BGR if you want to use the result with OpenCV.

@saudet saudet closed this as completed Sep 25, 2015
@ongakuer
Copy link
Author

I wonder why the video color is strange when I use FFmpegFrameFilter ?

@saudet
Copy link
Member

saudet commented Sep 25, 2015

The messages displayed on the console might tell us more about what might be happening...

@Iqra786
Copy link

Iqra786 commented Dec 7, 2015

I had same problem. Getting error
No accelerated colorspace conversion found from yuv420p to bgr24.
How can I convert to BGR24. Any hint?

@Iqra786
Copy link

Iqra786 commented Dec 7, 2015

Try following filter:- It works fine. Took one day to figureout.

new FFmpegFrameFilter("movie=image.png [logo];[in][logo]overlay=0:0:1:format=rgb [out]",WIDTH, HEIGHT);

@ongakuer
Copy link
Author

ongakuer commented Dec 8, 2015

@Iqra786
Good job! Thanks!

@fpv999
Copy link

fpv999 commented Nov 30, 2017

new FFmpegFrameFilter("movie=image.png [logo];[in][logo]overlay=0:0:1:format=rgb [out]",WIDTH, HEIGHT);
This is not working anymore in current version. I see no logo at all.

@saudet
Copy link
Member

saudet commented Mar 31, 2018

@fpv999 This has been fixed with commit 35dd7f8. Please give it a try with JavaCV 1.4.2-SNAPSHOT: http://bytedeco.org/builds/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants