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

After adding image watermark to the video, there is no sound left #116

Open
focusjava opened this issue Apr 9, 2024 · 0 comments
Open

Comments

@focusjava
Copy link

func VideoAddWatermark(videoFileName, watermarkFileName, outFileName string) error { // show watermark with size 128:-1 in the bottom right corner after seconds 1 overlay := ffmpeg.Input(watermarkFileName). Filter("scale", ffmpeg.Args{"128:-1"}) err := ffmpeg.Filter( []*ffmpeg.Stream{ ffmpeg.Input(videoFileName), overlay, }, "overlay", ffmpeg.Args{"W-w-10:H-h-10"}, ffmpeg.KwArgs{"enable": "gte(t,1)"}). Output(outFileName, ffmpeg.KwArgs{"c:a": "copy"}). GlobalArgs("-loglevel", "error"). OverWriteOutput().ErrorToStdOut().Run() return err }

After adding image watermark to the video, there is no sound left,
Could you please help me check where the problem is? Thank you very much

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

No branches or pull requests

1 participant