Inject Video into stream or change video in stream, stream gets blink

dhwanild

New Member
image video is set in background, when video insert/change into stream, stream gets blinked when new video playing start or end
here i have attached video.
 

Max

Administrator
Staff member
Good day.
Please provide a more detaled description:
1. WCS version used
2. Stream publishing method: WebSDK (browser), Android/iOS SDK (mobile), RTMP (OBS), etc
3. How do you change video: switch source at publisher side, publish two streams and inject one into another using REST API, etc
 

dhwanild

New Member
Version : FlashphonerWebCallServer-5.2.2199
Stream publishing method: WebSDK (browser)
inject video using RestAPI : rest-api/stream/inject2/startup
 

Max

Administrator
Staff member
Seems like you are continiously injecting the same file to the same stream: when file reaches the end (every 30 seconds), you make another /stream/inject2/startup call with the same parameters. According to video attached, the original stream has static picture. So when injected stream ends, and before the next injection starts, it shows original stream picture. It may seem like blinking.
Consider to use the server parameter
Code:
vod_live_loop=true
In this case you don't need to repeat /stream/inject2/startup calls until inject termination with /stream/inject/terminate
Also we didn't see in logs how do you publish the original stream. If you're using WebRTC, please provide a smooth keyframe interval with the following server settings
Code:
periodic_fir_request=true
periodic_fir_request_interval=2000
If you're using another VOD file, please encode it with a stable keyframe interval.
 

dhwanild

New Member
we are using WebRTC Streaming URL
(BaseURL/embed_player?urlServer=wss://BaseURL&streamName=stream1&mediaProviders=WebRTC,MSE&autoplay=true)

start stream using API (rest-api/vod/startup)
parameters : {"uri":"vod-live://bg.mp4","localStreamName": "stream1","loop": true}

we are injecting VOD file periodically using API (rest-api/stream/inject2/startup)
Parameters : {"localStreamName":"stream1","remoteStreamName":"vod-live://bs.mp4","video":true,"audio":true}

Added static image video as background with loop while start stream

case 1 : inject 5 sec. video at 8th second when video end at 13th second you can see blank screen no background video appearing till 4 to 5 seconds.

case 2 : inject video at 23rd second, video was playing and at 27th second inject another video entire stream gets blink.

please check attached video,
 

Max

Administrator
Staff member
case 1 : inject 5 sec. video at 8th second when video end at 13th second you can see blank screen no background video appearing till 4 to 5 seconds.

case 2 : inject video at 23rd second, video was playing and at 27th second inject another video entire stream gets blink.
Please provide SSH access to the server using this form for our engineers to test.
 
Top