Chronicler is a cross-platform plugin for recording screens (windows) within VS Code. The application relies upon FFmpeg as the base for recording. The primary functionality of the plugin is to start and stop recording. The status bar contains an item that will provide you the current state of the recording process, and is an actionable element for starting/stopping a recording.
The recording process determines the location and dimensions of your VS Code window, and will start a recording session for that region, immediately. To prevent the UI from getting in the way, when stopping, use the keyboard shortcuts to terminate the process. The status bar will be your indicator of the current status of your recording. On completion you can can choose to open the file with your operating system, you can copy the path to your clipboard, or just dismiss. Additionally, if you are configured your settings for supporting the animated gif production, the file path will change to point to the .gif
file instead of the .mp4
file.
The underlying tools for screen recording, rely upon FFmpeg. This has a distinct limitation of only being able to record a portion of the screen. This means that the recording does not follow windows as they move, but specifically the initial location/size of the VS Code window.
This will initiate a new recording, and will prompt for the FFmpeg installation if not set yet. This prompt will allow you to specify the location or to download the latest version as needed.
This can be triggered by:
-
Click on the icon in the status bar to launch the recorder
-
Accessing the command, via the command palette:
Chronicler Start Recording
- Standard recordingChronicler Start Recording GIF
- Standard recording, that also produces an animated GIF of the output.Chronicler Start Timed-Recording
- Recording with a set duration, user will be prompted, with a default of120
seconds.Chronicler Start Recording with Audio
- Standard recording with audio support (OSX requires a custom build of FFmpeg to bypass choppy audio. More information on the custom build can be found here)
-
Using the predefined shortcut (by default
cmd+alt+shift+r
)
This will stop the current recording, and provide a link to the final file location. This can be triggered by:
- Click on the icon in the status bar to terminate the recorder
- Accessing the command, via the command palette
Chronicler Stop Recording
- Using the predefined shortcut (by default
cmd+alt+shift+s
)
The available configuration options are:
-
chronicler.ffmpeg-binary
- (optional) This is the path to the FFMpeg binary, this will be used to convert the recordings into animated .gif files, if specified -
chronicler.dest-folder
- This is the output folder for all recordings, defaults to$HOME/Recordings
-
chronicler.recording-defaults
- These are the default parameters for recording, this supports the following:countdown? :number
- The number of seconds to wait before recordings starts, defaults to5
.duration? :number
- How long to record for, defaults to0
which is indefiniteanimatedGif? :boolean
- Flag to determine if we should produce animated GIFs or not.gifScale? :number
- What ratio each dimension of the GIF should be scaled by, defaults to1
.fps: number
- Number of frames per second, defaults to12
flags? :object
- Configuration flags to pass to the FFmpeg processpix_fmt ?:string
- The format flag to pass to ffmpeg, defaults toyuvj444p
. Set toyuv420p
if you want to support QuickTime on osx.c:v ?:string
- The video codec to use for encoding, defaults tolibx264
preset ?:string
- The ffmpeg recording preset, defaults toultrafast
. Supported: (ultrafast
,superfast
,veryfast
,faster
,fast
,medium
,slow
,slower
,veryslow
)
-
chronicler.auto-record-live-share
- Determines the state for auto recording live share sessions, defaults tofalse
. -
chronicler.debug
- Run the plugin in debug mode, provides more information when running FFmpeg
Animated GIFs are supported, if you configure chronicler.ffmpeg-binary
appropriately in your vscode settings. Once setup, it will produce an additional GIF file of your mp4, encoded as best as possible.
- FFmpeg, 4.1+ with libx264 support.
This project was inspired by:
- vscode-screen-recorder, providing inspiration and UI patterns.
- screen-recorder, inspiration for how to encode the desktop.
Currently, wayland support is missing
Allowing workspace root to truly be undefined, and fully support operating in a workspace free environment.
Resolving spawning issue for X11 due to changes in Electron
Resolving reverted localization fix for windows.
Bugfix for win32 scale detection and for handling spaces in ffmpeg path in win32 Bugfix for x11, allow for host display environment variable to be honored
Bugfix for win32 non-US locales (different decimal point symbol).
Bugfix that broke darwin-based screen lookups
Updating screen-recorder/win-info to 0.2.x line, to support win32 desktop scaling.
Resolving a bug in which copying the file deletes the file as well. Additionally deleting mp4 files when deleting the animated gif.
Updating recording icons to use debug set, which provides color. Updating documentation.
Removed color styling from status bar, to better support themes. Added ability to open a recording's containing folder, or delete it on termination of recording.
Adding in support for ${workspaceFolder}
as a valid substitution for the recording destination. Additionally, clarified and documented
how to set ffmpeg flags for pix_fmt
and c:v
codecs. Also documented the behavior of recording, with respect to window moving.
Adding in new osx binary, statically compiled, and upgrading screen-recorder to 0.1.6. Additionally merged changes in for the output directory to be a properly configurable element.
Added in support for auto recording VS Live Share session. Added in flag to support scaling of generated GIFs. Special thanks to @lostintangent for the live share integration.
Exposed download functionality from @arciisine/screen-recorder, and provide ability for user to set required configuration in a guide manner. Special thanks to @DonJayamanne for the feedback.
Externalized the ffmpeg interactions into @arcsine/screen-recorder, fixing default recording folder
Aligned screen support with @arcsine/active-win, pulling in support for X11 vs linux. Additionally support for multiple displays.
Bug fix with respect to binary location detection, and handling.
Released windows compatibility, reworked ffmpeg argument generation to tailor to each platform better.
Issue with linux launching (odd/even pixel issue) as well as better results launching
Cleaned up linux support Provided link for ffmpeg 4.1 with patch applied for audio capture during screen recording UI improvements
Added support for:
- Audio recordings
- Status bar countdown (configurable)
- Timed recordings
- Dropping VLC, using FFmpeg solely, as it supports audio
Initial release, support for vlc
, primarily tested on OSX