MediaRecorder_v2 Op

MediaRecorder

Record the renderer-output to video


uses the browser to record the renderer-output to any videocodec supported by your browser

As the MediaRecorder API does not create a video file duration, the video you download from your browser won't have a duration or seekable timeline - giving you some trouble when importing your video into a video editor application or the like. Most online social media services ignore this hiccup so generally it is fine to ignore. However if you need to have a videofile with a seekable timeline and proper duration you'll have to manually reencode/fix the video file generated by MediaRecorder. One simple tool is HandBrake - https://handbrake.fr/


Full Name
  • Ops.Gl.MediaRecorder_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


Example Patch Example: MediaRecorder

Open In Editor

Youtube Video Tutorial

INPUT PORTS


Recording (Number: boolean)
Filename (String)
Download Video (Number: boolean)

Encoding

Mimetype index (Number: integer)
MBit (Number)
Max FPS (Number)
Force FPS (Number)

Inputs

Media index (Number: integer) Video  Audio  Audio+Video 
Audio In (Object:audioNode)

Canvas

Canvas index (Number: integer) Default  By Id 
Video Canvas Id (String)

OUTPUT PORTS


State (String)
Error (String)
Final Mimetype (String)
Valid Mimetypes (Array)
Duration (Number)
Finished Recording (Trigger)
Video DataUrl (String)

Patches using MediaRecorder_v2

  • Examples
  • Public
  • My Patches

Changelog


newcreated opuser avatarpandur - 2021-11-12 08:19
improvementremove autoDownload optionuser avatarstephan - 2022-02-11 15:01
bugfixwrite correct error message to output portuser avatarpandur - 2022-12-14 17:23
bugfixfix audio-only modeuser avatarstephan - 2023-05-24 15:53
improvementAdd default canvas option to use the current WebGL canvas, which also works better with popout canvasuser avatarpandur - 2024-10-23 15:40