muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.52k stars 1.75k forks source link

Recorded video is slow to seek #679

Closed farukhzahoor closed 3 years ago

farukhzahoor commented 3 years ago

Thanks for the API. I am facing one issue. Video is recorded using RecordRTC and seekableBlob is transferred to Amazon S3. When I playback video and seek at the end of video it takes lot of time until video buffer reach to that seek point. Other videos which are not recorded from RecordRTC seek quickly to the end of file and start taking buffers from seek point. Please help...

farukhzahoor commented 3 years ago

I was able to achieve it using mimeType: 'video/x-matroska;codecs=avc1'

dengshicheng1996 commented 3 years ago

我能够使用 mimeType: 'video/x-matroska;codecs=avc1' 实现它

那您是否在使用avc1 编码 的时候产生视频合成的问题? 我在采用 'video/x-matroska;codecs=avc1' 时,用FFmpeg 合成视频,产生了快进、或者丢失部分blob 的情况。我知道是因为该数据不带有PPS/SPS、起始码,那么我如何才能生成一个好的视频?