Adding watermark to video

103 views
Skip to first unread message

Samriddha Bajpai

unread,
Nov 29, 2023, 5:03:47 AM11/29/23
to Android CameraX Discussion Group
Hi team,

I am using CameraX to record the videos. I want to add the watermark
to the video. How can I do that?

Xi Zhang (张熹)

unread,
Nov 29, 2023, 10:12:58 AM11/29/23
to Samriddha Bajpai, Android CameraX Discussion Group
Hi Samriddha:

CameraX provides the CameraEffect API for this. It allows the app to edit the camera output. As for code samples, you can take a look at the ToneMappingSurfaceEffect and ToneMappingSurfaceProcessor files in our test app.

We also have a work-in-progress feature that allows the app to use the Canvas API to draw into the camera output, which should be exactly what you need. However the feature is still under API review. You can copy the code here if you like: https://android-review.googlesource.com/c/platform/frameworks/support/+/2746658

Thank you,
Xi 

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/CAJf2yMj84CQpnnMz8KJyT%3D3rwO9dvGchpRYqJgDK68%3Duys_42Q%40mail.gmail.com.

Samriddha Bajpai

unread,
Nov 29, 2023, 10:32:32 AM11/29/23
to Xi Zhang (张熹), Android CameraX Discussion Group
Thank you for the clarification.
Reply all
Reply to author
Forward
0 new messages