Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Do you have any plans to add watermark support for ffmpeg? I've worked out the chained -vf command to do this, but needs coding up in the module and testing. Let me know if there's anything I can do to help.
Comment | File | Size | Author |
---|---|---|---|
#11 | _patch.video_.1999000.watermark_support_ffmpeg.10.patch | 7.05 KB | nickaein |
#1 | patch-watermark-7.x-2.10+10-dev .txt | 6.47 KB | Digitalier |
Comments
Comment #1
Digitalier CreditAttribution: Digitalier commentedAttached patch file adds watermark support for ffmpeg using 7.x-2.10+10-dev release.
Comment #2
Digitalier CreditAttribution: Digitalier commentedPlease review and let me know if any changes are needed.
Comment #3
Heihachi88 CreditAttribution: Heihachi88 commentedIt is added to a latest 7.x-2.10+14 dev?
Comment #4
Digitalier CreditAttribution: Digitalier commentedNo - I didn't get any response from the maintainers so I manually add it to each release and it's been working fine for me - over 2k conversions and no issues.
Comment #5
Heihachi88 CreditAttribution: Heihachi88 commentedCan you please send me your patched file? I tried to implement it manually but had no luck, got errors when trying to transcode a video
Comment #6
nickaein CreditAttribution: nickaein commented@Heihachi88: Are you on Windows?
Comment #7
Heihachi88 CreditAttribution: Heihachi88 commentedI am using windows on my laptop and CentOS 6 on the web-server.
Comment #8
nickaein CreditAttribution: nickaein commentedHi Heihachi88,
I'm the guy in the comments on Drupal Answers.
It's the drupal server that matters. You would check the log of drupal (at http:///admin/reports/dblog ) and take a look at latest transcoder errors to see why the FFMPEG is failing. You should see some error like FFmpeg failed to transcode....
Comment #9
nickaein CreditAttribution: nickaein commentedThe attached patch will take care of watermark file path on Windows.
This patch is basically the same patch submitted by @umm plus considering the Windows path syntax when providing the watermark file path to the FFMPEG.
Three issues are taken care of:
Comment #11
nickaein CreditAttribution: nickaein commentedComment #12
nickaein CreditAttribution: nickaein commentedComment #13
nickaein CreditAttribution: nickaein commentedComment #15
lostkangaroo CreditAttribution: lostkangaroo commentedI am not familiar enough with this module to really test but it looks like your patch is full of whitespace errors. I would review https://drupal.org/coding-standards and try resubmitting when the patch is fixed.
Comment #16
nickaein CreditAttribution: nickaein commentedI still can't get it right. It might be something wrong with the relative path.
Anyway, I currently have free time to look into this. The patch is working in my experience but if somebody needs more info about this patch, please let me know by posting a comment in this issue.
Bests,
Comment #17
decibel.places CreditAttribution: decibel.places commentedI can confirm that patch in OP works against 7.x-2.x branch of Video module from Git
on Ubuntu 13.10
using ffmpeg version git-2013-09-15-d59213b
The only changes are in /transcoders/TranscoderAbstractionFactoryFfmpeg.inc
Comment #18
Heihachi88 CreditAttribution: Heihachi88 commentedSo watermark works with FFmpeg now?
Comment #19
nickaein CreditAttribution: nickaein commented@Heihachi88:
The patched submitted in #11 works for me. The reported "FAILED" for this patch is probably because of code formatting.