collab-project / videojs-record

video.js plugin for recording audio/video/image files
https://collab-project.github.io/videojs-record
MIT License
1.4k stars 315 forks source link

Timeslice/Timestamp video doesn't have duration when upload to AWS s3 multipart upload #675

Closed StephenVinuya closed 9 months ago

StephenVinuya commented 1 year ago

Description

I'm working on an application, where we upload parts of video that are being recorded on video.js-record every n seconds timestamp. The problem is the video duration is always 0 with no end time specified when I played the video and it will just continuously play till I reach the end of the video.

I don't know how to integrate the ts-ebml.js plugin in this scenario, cause the finishConvert doesn't fire on every timestamp event

Steps to reproduce

Upload the timestamp recordedData to AWS s3 multipart upload.

Results

Expected

The video end time when watching the video should be there

Actual

See image, there's no duration/end time specified, and progressbar of the video is always at the end part. image

Error output

If there are any errors at all, please include them here.

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

video.js 7.2.0 video.js record 4.6.0

browsers

Chrome, firefox, safari

OSes

Windows 10

smilemittal commented 1 year ago

facing same issue

CandyTek commented 1 year ago

facing same issue

thijstriemstra commented 9 months ago

You can use the ts-ebml plugin to inject duration: https://collab-project.github.io/videojs-record/#/plugins/ts-ebml

The ffmpeg.wasm plugin could work as well: https://collab-project.github.io/videojs-record/#/plugins/ffmpeg.wasm