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

Error loading local image when adding a watermark using FFmpegFrameFilter. #2289

Open
XLXNG opened this issue Oct 8, 2024 · 0 comments
Open

Comments

@XLXNG
Copy link

XLXNG commented Oct 8, 2024

The code is as follows:

    String watermarkImagePath = "E:/watermark/watermark.png";
    String filterStr = String.format("[in]scale=1920:1080[v1];movie=%s[watermark];[v1][watermark]overlay=0:0,format=rgba [out]",watermarkImagePath);
    FFmpegFrameFilter filter = new FFmpegFrameFilter(filterStr, 1920, 1080);
    filter.start();

When I change watermakImagePath to a file under the project, String watermarkImagePath = "watermark.png", the watermark can be generated normally,I use an absolute path,watermarkImagePath = "E:/watermark/watermark.png", it gives an error.

Error: [Parsed_movie_1 @ 0000015468d24940] Failed to avformat_open_input 'E'

Error: [AVFilterGraph @ 0000015468227f40] Error processing filtergraph: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants