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.45k stars 1.75k forks source link

How to make recorded videos smaller while retaining clarity #847

Closed hktalent closed 11 months ago

hktalent commented 11 months ago

How to make recorded videos smaller while retaining clarity

I tested on Safari and found that after adjusting the parameters several times, I still get files with a size of>70M per minute. Can you help me see where the problem is?

var recorder = RecordRTC(local_media, {
        'type': 'video'
        , 'mimeType': 'video/webm;codecs=h264'
        ,disableLogs: true
        ,audioBitsPerSecond:100
        ,videoBitsPerSecond: 5000
        ,canvas: {
            width: n002,
            height: n003
        }               

    });
niletynay commented 2 months ago

How to solve these issue? Please explain your solution. I have the same issue.

hktalent commented 2 months ago

video/webm;codecs=vp9 @niletynay

image

more example: https://chat.51pwn.com:2083/?cnId=xxx&atRd=true&showme=true&startChat=1?cnId=xxx&atRd=true&showme=true&saveMeVD=true&eSvl=true&eAi=true&startChat=1