Record parts of a YouTube video using the MediaRecorder API
First, download the .zip file of this repository. Then, follow the instructions for your browser.
Go to the chrome://extensions
page, and enable the Developer mode
slider.
Extract the .zip file, and then on your browser click on the
Load unpacked extension
button. Choose the directory where you've extracted
the .zip file, and the extension will be installed.
Go to about:debugging#/runtime/this-firefox
, and click on the
Load Temporary Add-on
button. Choose the .zip file, and the extension will be
installed.
Click on the extension icon to open it. Then, you'll be able to choose the codecs for the recording. You can adjust the bitrate and the interval of the key frames, and finally you can start the recording. You can stop it at any time, but it'll be automatically stopped:
- When the video ends
- When the quality of the video is changed (or when an advertisement starts)
Note: The video bitrate won't be accurate, and probably the MediaRecorder encoder will go over that.