dynamic watermark Archives - VdoCipher Blog Secure Video Streaming Tue, 26 Mar 2024 09:25:02 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.5 https://www.vdocipher.com/blog/wp-content/uploads/2016/11/cropped-VdoCipher-logo2-32x32.png dynamic watermark Archives - VdoCipher Blog 32 32 Dynamic Watermark Demo: Add User Identifier Text to Videos- User ID, Email ID, Phone No. https://www.vdocipher.com/blog/2014/12/add-text-to-videos-with-watermark/ https://www.vdocipher.com/blog/2014/12/add-text-to-videos-with-watermark/#comments Mon, 08 Jan 2024 01:00:29 +0000 http://www.vdocipher.com/blog/?p=205 Dynamic watermarking means showing user-identifiable data over a video in a moving and non-intrusive manner to ensure the highest protection from screen capture and optimize the viewing experience. Videos hosted through VdoCipher cannot be illegally downloaded through any tools/extensions/downloaders. Screen capture block with 100% surety is possible only in mobile apps and Safari browsers. For […]

The post Dynamic Watermark Demo: Add User Identifier Text to Videos- User ID, Email ID, Phone No. appeared first on VdoCipher Blog.

]]>
Dynamic watermarking means showing user-identifiable data over a video in a moving and non-intrusive manner to ensure the highest protection from screen capture and optimize the viewing experience. Videos hosted through VdoCipher cannot be illegally downloaded through any tools/extensions/downloaders. Screen capture block with 100% surety is possible only in mobile apps and Safari browsers. For Chrome, Firefox, and other browsers, there does however remain the risk of piracy from screen capture. User-based information shown as moving dynamic watermark effectively discourages users from pirating video content using screen capture and goes a long way towards helping users protect their premium content.

The sample video below contains a dynamic watermark displaying the User name, User IP, and User email. The below video is displayed using our WordPress plugin and the same can be configured using APIs or Moodle plugin as well.

The dynamic watermark can be customized for movement, color, size, transparency and frequency. You can try the watermark feature on your website by signing up for a Free 30 Day Trial on our home page.

Dynamic Watermark Demo

Features of Dynamic Watermark by VdoCipher

  1. Add user details like user id, email id, phone number, ip address as an overlay over your videos
  2. Add time stamp, and fixed text (e.g company name)
  3. Customise size, color, transparency, and frequency of moving watermark. You can make it very light and also change frequency so that it is not always visible, to ensure optimum viewing experience. You can optimize frequency in such a manner, that it is difficult to remove the watermark maintaining user experience.  To show a watermark at a particular position for 5 seconds and then not show it for 20 seconds, you can use the parameters of ‘interval’:5000 and ‘skip ‘: 20000. (1 second = 1000 microsecond).  Other parameters are explained in below tutorial steps below.
  4. If you are using a static/fixed text watermark, then it has to be compulsorily set at the top left of the player, it can not reside on other parts.
  5. Image watermark is currently not possible with VdoCipher, but you can use your company/brand name as a watermark.
  6. Quick 5-minute integration using wordpress plugin or moodle plugin or API. Iframe integration can show ip address and fixed text as watermark but it can not show user id, email id etc. as watermark since it is not a backend integration.

How to Add Dynamic Watermark to your VdoCipher Videos

To generate a watermark or to add text to videos you essentially need a JSON string describing how and what you will overlay on your protected videos. In this blog, we will be detailing how to integrate dynamic or static watermarks to add text to videos.

Step 1 is to create the watermark code. Once you have created the watermark code,
Step 2 you add the watermark to the video. This is done by adding watermark code to the WordPress plugin settings (for WordPress users), or by adding it as part of OTP API call for VdoCipher API users or by adding it to Moodle plugin settings.

Step 1: Create a Watermark Code

We are assuming that you have uploaded your video to your VdoCipher account. You would need to pass a JSON string as annotation code. The JSON string would contain all the information about the watermark. A JSON string is a universal form of representing structured data in a way that machines can understand.

Here is a sample JSON string that adds a moving (dynamic) watermark and a static watermark.

[

{'type':'rtext', 'text':'moving text', 'alpha':'0.8', 'color':'0xFF0000','size':'15','interval':'5000','skip':20000},
{'type':'text', 'text':'static text', 'alpha':'0.5' , 'x':'10', 'y':'100', 'color':'0xFF0000', 'size':'15'}
]

Technically, this is an array of JSON objects, where each object describes a single annotation item.

Each of these items will be described by its parameters. Every item requires a type parameter that defines the type of watermark. The type of watermark can be either a moving text or a static text. The rest of the parameters depend on the type.

Following is a short description of how each parameter affects the display of text.

Moving text

The following code will display a dynamic watermark code, displaying name, IP and email address in a single line. The text color will be red (#ff0000), opacity is 0.8, and font size is 15. The watermark is configured to keep one position for 5 seconds (5000ms) and then hide watermark for 20 seconds (20000 ms) , and then show again at a new position for 5 seconds.

[{
'type':'rtext',
'text':'{name}, {ip}, {email}',
'alpha':'0.8',
'color':'0xFF0000',
'size':'15',
'interval':'5000',
'skip':'20000'
}]
Type of text – Moving watermark

Set type parameter as rtext for Dynamic watermark

'type':'rtext',
Set the text to be shown
'text" : 'Enter whatever text you like to be displayed',

You can add user identifiable information, such as user name, user email and user IP.

  • ‘text’: ‘{name}’,
  • ‘text’: ‘{email}’,
  • ‘text’: ‘{ip}’,
'text':'Name: {name}, email: {email}, IP: {ip}

To display the name, email and IP separately, and not in a single line, you can simply create 3 watermark objects, as follows:

[{'type':'rtext','text':'{name}','alpha':'0.8', 'color':'0xFF0000', 'size':'15', 'interval':'5000', 'skip':'2000'},
{'type':'rtext','text':'{ip}','alpha':'0.8', 'color':'0xFF0000', 'size':'15', 'interval':'5000', 'skip':'2000'},
{'type':'rtext','text':'{email}','alpha':'0.8', 'color':'0xFF0000', 'size':'15', 'interval':'5000', 'skip':'2000'}
]
Specify text opacity

This is the opacity of the text. For full opacity keep alpha value 1.

'alpha':'0.8',
Specify text color

This is the hex value of the watermark text color. You can pick your choice of color and its corresponding hex value from the following page on W3schools.

'color':'0xFF0000',
Specify the font size

This is the font size

'size':'15',
Specify the interval over which watermark changes position

The value is the interval in milliseconds when the text changes position

'interval':'5000',
Skip feature for watermark

It is possible to have watermark skip for some time between two overlays. Here is a sample code for it –

'skip':'2000'
Time stamp for watermark. (Only for WordPress)
[[{'type':'text', 'text':'Time: {date.h:i:s A}', 'alpha':'0.30' , 'x':'12', 'y':'130', 'color':'0xFF0000', 'size':'13'}]]
Add Custom Variables as Watermark

The following blog details how you can add text to videos or custom variables as watermark to your videos: Custom Variables as Watermark

Some important things to keep in mind about Watermark
  • Note that both the name and the value of these parameters should be in quotes. This rule applies to both text as well as numbers.
  • Each parameter is to be separated by a comma. There should not be a comma after the last parameter for the dynamic watermark video settings.

Static text

[{
'type' : 'text',   //This defines the type of annotation item to static watermark
'text' : 'the text you like to be displayed',
'x' : '10',  //the distance from the left border of video.
'y': '50',  //the distance from the top border of video.
'alpha': '0.8', //the opacity of the rendered text, 0 is invisible, 1 is full opaque
'color':'0xFF0000',    //the color of the text specified as hexadecimal or uint
'size':'15' //Height of the text, in pixels.
}]

Step 2: Add Watermark Code to Video Request using API or plugin

If you are using our WordPress or Moodle plugin you can simply add the watermark JSON in the plugin settings page. If you are integrating VdoCipher to your custom-built site, you would need to pass the JSON object as part of the OTP request.

The HTTP POST data containing watermark JSON object has to be sent as Content-Type: application/json. The JSON Object is to be sent as value to the key annotate. The header for the OTP request should include the Authorization using API Secret Key. A sample OTP request including watermark information is as follows.

curl -X POST \
 https://dev.vdocipher.com/api/videos/1234567890/otp \
 -H 'Accept: application/json' \
 -H 'Authorization: Apisecret a1b2c3d4e5' \
 -H 'Content-Type: application/json' \
 -d '{
 "annotate":"[{'\''type'\'':'\''rtext'\'', '\''text'\'':'\'' {name}'\'', '\''alpha'\'':'\''0.60'\'', '\''color'\'':'\''0xFF0000'\'','\''size'\'':'\''15'\'','\''interval'\'':'\''5000'\''}]"
}'

The sample videoID is 1234567890 and the API Secret Key is a1b2c3d4e5. This sample code only passes the annotation code as parameter.

This blog: Protect Videos on WordPress provides more details on securing videos using WordPress.

Still having problems to add text to videos or with the dynamic watermark on video code? Send us the code you are using and the output you wish to be shown to support@vdocipher.com

add text to videos

The post Dynamic Watermark Demo: Add User Identifier Text to Videos- User ID, Email ID, Phone No. appeared first on VdoCipher Blog.

]]>
https://www.vdocipher.com/blog/2014/12/add-text-to-videos-with-watermark/feed/ 23
How GOT video leak could have been prevented with VdoCipher https://www.vdocipher.com/blog/2015/04/how-got-video-leak-could-have-been-prevented-with-vdocipher/ https://www.vdocipher.com/blog/2015/04/how-got-video-leak-could-have-been-prevented-with-vdocipher/#respond Sun, 12 Apr 2015 11:40:26 +0000 https://www.vdocipher.com/blog/?p=290 Prevent pre-release leaks using dynamic watermarking feature from VdoCipher ? Game of Throne is one of the most popular TV series currently. The first four episodes of the series started making their way around the Internet Saturday night after being uploaded to several Torrent sites, a day before the official Sunday première. The four leaks seem to originate from […]

The post How GOT video leak could have been prevented with VdoCipher appeared first on VdoCipher Blog.

]]>
Prevent pre-release leaks using dynamic watermarking feature from VdoCipher ?

Game of Throne is one of the most popular TV series currently. The first four episodes of the series started making their way around the Internet Saturday night after being uploaded to several Torrent sites, a day before the official Sunday première. The four leaks seem to originate from a screener sent to reviewers and translators ahead of the show’s launch. Below link give  a detailed news.

http://mashable.com/2015/04/12/game-of-thrones-leak/

The main thing to notice here is that video seems to be downloaded using an external camera which explains poor quality of leakage. There is a watermark at the bottom which is blurred using video editing tool.

How using VdoCipher for pre-release video sharing could have been helpful ?

1. Create a movie sharing site with login system( user id and password for each of your user ). The number of pre-release viewers would be in range of 100.

2. Now the translators and technical persons all can watch the videos for reviews and suggestions. Use dynamic watermarking feature provided by VdoCipher.

3. VdoCipher Security – The stream is encrypted , so video download is not possible. The viewers mail id , username , ip address , the current time of playback can be flashed on the player. Unlike the leaked movie , VdoCipher has below special features.

  • The watermark is user specific
  • The watermark is moving continuously. (Flashed every few seconds)
  • The watermark can be customized. ( size, color, transparency, time period for flashing.)
  • All this ensures that the watermark can not be removed from the video and also it does not cause irritation to the viewer.

4. Demo – Here is a demo link that shows VdoCipher’s watermarking feature. It is flashing the ip address and mail id. Mail id is kept static  It can be set to moving if desired.. ip address is continuously moving. The colour , position, size , periodicity of motion ,transparency everything can be customized with a simple code mentioned in blog.

Dynamic water-marking with VdoCipher demo

For more details on secure video hosting, visit our site – www.vdocipher.com

The post How GOT video leak could have been prevented with VdoCipher appeared first on VdoCipher Blog.

]]>
https://www.vdocipher.com/blog/2015/04/how-got-video-leak-could-have-been-prevented-with-vdocipher/feed/ 0