not able to add text watermarking in stream

dhwanild

New Member
Hi

i use "/rest-api/stream/inject2/startup" API to play video in stream
i would like to add text watermarking with above API.

can you please help or suggest step to add text watermarking while playing video
 

Max

Administrator
Staff member
Watermark requires Transcoding API


1. Publish stream1
2. Transcode stream1 to stream1_output
/rest-api/transcoder/startup
3. Set watermark for Transcoder URI
/rest-api/transcoder/set_watermark
4. Play stream1_output with Watermark.

Please note.
Video transcoding is CPU extensive operation.
It may utilize 2 physical CPU cores for 720p streams in real time.
 

dhwanild

New Member
Thanks for reply

using Transcoding API i can add watermark image, i want to add text that is not able to do with Transcoding API
 

Max

Administrator
Staff member
Good day.
Since build 5.2.2087 a watermark picture may be downloaded from external site by URL: permanently
Code:
custom_watermark_filename=https://server/pics/watermark.png
or on transcoder startup
Code:
POST /rest-api/transcoder2/startup HTTP/1.1
Host: localhost:8081
Content-Type: application/json

{
    "uri": "transcoder2://tcode2",
    "remoteStreamName": "test",
    "localStreamName": "testT",
    "encoder": {
        "width": 320,
        "height": 240,
        "keyFrameInterval": 60,
        "fps": 30,
        "watermark": "https://server/pics/watermark.png"
    }
}
 
Top