View Full Version : watermarking in realtime
venkat.siddareddy
30th June 2011, 05:15
Hi,
I am new to this forum and also to avisynth. I have tried some scripts in avisynth and I am excited with the possibilities. Now I would like to do the following things. Any help be would be appreciated.
1)Generate a unique image based on time and date. (I am doing it through imagemagick)
2)Create a Avisynth script which overlays this image
a)every 10 seconds for 24 frames
b)displays it at one of the four corners. (This can be random)
c)opacity must be low so that the image is not explicitly visible
3)Play the video using windows media player (I tried doing the above but the playback is slow when I overlay an image)
4)capture the video using a camcorder or some other device and I want to check for the presence of the logo. Since the opacity I was setting was 0.01 I need a way to see the logo.
Please help me in achieving this.
Venkat
Ghitulescu
30th June 2011, 08:30
Watermarking is a way to tell: this is mine. This idea never caught in the free community like this one, and it never will. There is absolutely no reason why a private person would wanna do this. And for commercial purposes please refer to commercial methods. You may wanna ask Macrovision about this ... ;)
Dogway
30th June 2011, 09:19
@Ghitulescu: you know I had a friend who asked me how to make a logo for his videogame walkthroughs, I had to do some malabarism with avisynth and try to explain that to him. When I learned a bit more I made a neat function the one you can see in my signature, so people like him and many more can add easily images to their videos. Who are we to judge what a private person want to do with it?
venkat.siddareddy, use the function of my signature, read the usage and mix it with applyevery (http://avisynth.org/stickboy/#plugins) for display it every 10 seconds
Ghitulescu
30th June 2011, 09:39
I know why a private person would do this :)
I said however there's no reason to do it ;)
pandy
30th June 2011, 14:13
usually watermarking is performed not in spatial area - watermarking in spatial area is quite easy to detect and remove - so Ghitulescu have right - for pro solution commercial method is required, for spatial marking better is to show sign (visible overlay).
Have a look at steganography (http://www.google.com.au/search?q=steganography) and related topics for invisibly branding images with identity information.
Spatial water marking always spoils the target and should be a capital offence. :devil:
venkat.siddareddy
1st July 2011, 15:27
Hi,
Thankyou all for your responses. I tried Dogway's suggestions but as I mentioned in my earlier thread the playback is slow.
I managed to write this script and it is working properly. The watermark is almost invisible and it flashes every 10 seconds for a duration of 10 frames.
Please see below for my script.
However I need to address the following two issues.
1)Since the watermark is almost invisible what Avisynth filter will identify this logo. Or tell me any other procedure through which I can identify this logo in a video which is reencrypted or compressed.
2)The second issue is, I would like to rotate the logo at a random location each time. I know there are some examples of x_offset.txt etc in Conditional Reader. But I failed to implement that. Please help me to do these things.
My script follows
V1=AviSource(video.avi)
I1=ImageSource(image.png).ShowAlpha(pixel_type="RGB32")
V2=Layer(V1,I1,"add",10,240,240)
V3=ConditionalFilter(V1, V2, V1, "current_frame%240", "lessthan", "10")
A1=WavSource(audio.wav)
AudioDub(V3,A1)
Ghitulescu
1st July 2011, 17:58
Well, this is thing most studios work on.
The problem is that nobody wants to see watermarked products (or to hear ones, see the cinavia issue).
Watermarking alone won't solve the piracy issue (http://www.ranadaggubati.com/2010/02/lets-stop-video-piracy/), if this is your main concern. No copy protection ever did for that matter, since this fails to hit the real cause.
Dogway
1st July 2011, 21:44
@venkat.siddareddy: I doubt it is slow, it is aimed at speed because it is totally based on masktools avoiding layer, overlay and slow mechanism. Just use austere settings. I tested and is real time. Anyway you seem to be too concerned so maybe is better a proffesional tool as mentioned.
CruNcher
2nd July 2011, 02:36
look @ commercial available solutions like this http://www.sit.fraunhofer.de/en/forschungsbereiche/ias/Wasserzeichen.jsp or for example yuvsoft those are already in use and quiet successful compared to the old visible watermarking especially to save the user account id directly in the video stream you can compress, cut,scale like crazy but results show @ least 1 time in the whole runtime it gets preserved :)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.