-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Q: How to add watermark to a video? #974
Comments
More logs - FFmpegLogCallback.set(); Below the output:
|
Does it happen with JavaCV 1.4.1?
|
Hi @saudet , Can confirm that also happens on JavaCV-1.4.1
Please let me know if you have any other questions or need any further info. |
Ah, I see what's going on. The value of EAGAIN is different on Mac... |
Hi @saudet , Is this issue specific to Mac? Or, does it also happens on Linux / Win? Thanks once again! 😄 |
Yes, it's pretty much an issue specific to Mac, but I've fixed it with the latest commit. As for money, that is very generous of you, but what we need more is time. If you're not able to contribute time yourself, please consider hiring a freelancer from https://www.upwork.com/ or some other place to work on features you need from JavaCV. That would be awesome! |
Hi @saudet Latest javacv-platform / 1.4.2-SNAPSHOT [29/04/2018] is reporting:
Thanks for your work! 👍 |
That just means files like jniavutil.dylib are missing from your class path. |
Hi @saudet, Tried to remove the whole project deps from my local m2 repo: Resolved it back again, but no luck, same exception / error occurs. Cheers! |
Yeah, what does mvn dependency:tree returns? |
Follows below what it has been resolved:
Thanks! 👍 |
Seems to be alright. Does removing ~/.javacpp/cache changes anything?
|
I have tried the following:
Resolved dependencies with Maven, then run project; same exception though:
Let me know if you need any further info. |
I know some codecs are flaky on Mac. Could you try to reproduce this crash with only FFmpegFrameRecorder? It'll be easier to pinpoint what is the issue exactly. |
Ah, no, that looks like broken snapshots: https://travis-ci.org/bytedeco/javacv/builds/372956434 Should be fixed by tomorrow... |
Great! Thanks
…On Mon, 30 Apr. 2018, 21:31 Samuel Audet, ***@***.***> wrote:
Ah, no, that looks like broken snapshots:
https://travis-ci.org/bytedeco/javacv/builds/372956434
Should be fixed by tomorrow...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#974 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH1TPhyhrpRGwlY8hNkgEsq9NwtujgGzks5ttvYRgaJpZM4Tk5jP>
.
|
Hello @saudet Tried again, unfortunately still no luck:
If I remove the FrameFilter that tries to add the WaterMark it all goes well. Cheers! |
Like I said Mac support for FFmpeg is flaky. Does this happen only on Mac?
You'll need to figure out what works and what doesn't on Mac, and report
any such Mac-only issues upstream...
|
Okay, thanks for the support and help; much appreciated. |
BTW, I think it has something to do with threading support being weird.
Disabling multithreaded processing might help.
|
Worth a shot, how do I set the number of threads though? Tried the following:
It produced:
I do know that is not a filter (-vf) thing. |
I don't think there is a global parameter like that. I think we'd have to
do it for each module that supports that kind of option.
|
Managed to get it through!
Still no luck though.
Once again thanks for your input and help. |
That doesn't change the filter...
|
Ah, here's the problem:
You're not setting the pixel format on the input filter. That's not supported by FFmpeg. |
Here is the command passed through to the -vf (input filter) : The pixel format is yuv420, or at least it should have been set to it in the filter. |
FFmpegFrameGrabber converts to BGR24 by default. You're not calling either
getPixelFormat() or setPixelFormat().
|
I must say I am a bit lost now; Here is the code where I use the grabber / recorder / filter.
Thanks! 😃 |
Thanks for the hint @saudet - I finally got it to work! Leaving it here for the rest of the community:
Once again, thank you very much for the project and all support! Cheers! 😄 👍 PS: Can confirm that works on 1.4.2-SNAPSHOT (01/05/2018) [dd/MM/yyyy]. |
If you could wrap this up in a file and send a pull request to add it to the |
Sure thing! I will do that over the next week or the week after though 😄 |
The fix is now included in version 1.4.2. Thanks again for reporting! BTW, I'm still waiting for your pull request to add the sample code! Would be great to have that in. |
Hello @guikeller @saudet first of all thank you for the efforts to help the community, @guikeller I did use the working version of your code with 1.4.2-SNAPSHOT , I got this error could you please tell me what is the problem !! org.bytedeco.javacv.FFmpegFrameFilter$Exception: avfilter_graph_parse_ptr() error -2 (For more details, make sure FFmpegLogCallback.set() has been called.) I did use FFmpegLogCallback.set() i got this : Error: Error initializing filter 'movie' |
Hi @saudet
Using javacv-platform-1.4.2-SNAPSHOT as of 26/04/2018 (dd/MM/yyyy).
Using MacOS X 10.13.4 (High Sierra)
Here is what I have written so far:
Here is what the waterMark() function returns:
Here is the exception:
Can you please point out what I am doing wrong?
Let me know if you need any further info!
Thank you very much in advance for your help.
The text was updated successfully, but these errors were encountered: