I am using fluent ffmpeg to write something on video streaming real-time
means that I am using this tool to write text on every ts file which server wants to serve in order to response the hls request from client:
in server iam using this code:
res.setHeader('Content-Type', CONTENT_TYPE.SEGMENT)
res.statusCode = 200
var proc = ffmpeg(req.filePath).videoFilters({
filter: 'drawtext',
options: {
text: 'VERY LONG TEXT VERY VERY VERY VERY LOL!!!',
fontsize: 36,
fontcolor: 'white',
x: '(main_w/2-text_w/2)',
y: '(text_h/2)+15',
shadowcolor: 'black',
shadowx: 2,
shadowy: 2
}
}
)
.videoCodec('libx264')
.audioCodec('aac')
.format('mpegts')
.on('end', function (stdout, stderr) {
console.log('Transcoding succeeded !', req.filePath);
})
.on('error', function (err) {
console.log('an error happened: ' + err.message);
}).pipe(res, {
end: true
})
but in client just play first ts file and after that, I get this log in the console:
[log] > AVC:6798 ms overlapping between fragments detected
blob:http://demo.jwp…a8dc-56b513684988:1
[log] > Video/PTS/DTS adjusted: 6798/6798,delta:-6798 ms
blob:http://demo.jwp…a8dc-56b513684988:1
and a bunch of this log :
[warn] > Dropping 1 audio frame @ 6.805s due to 6797 ms overlap.
I am using fluent ffmpeg to write something on video streaming real-time means that I am using this tool to write text on every ts file which server wants to serve in order to response the hls request from client: in server iam using this code:
but in client just play first ts file and after that, I get this log in the console:
and a bunch of this log :
what should I do?????