
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@codedimension/video-editor
Advanced tools
A powerful Node.js command-line interface (CLI) tool for automated video editing tasks, primarily focused on .mkv files. It optimizes common workflows such as silence removal, batch merging, and course processing with high-quality output.
part2.mkv comes before part10.mkv).libx264 with CRF 18 and slow preset for visually lossless results.This tool depends on FFmpeg. You must have FFmpeg installed and available in your system's PATH.
sudo apt install ffmpegbrew install ffmpegwinget install ffmpegTo install and use video-editor from anywhere in your terminal without downloading the source code:
npm install -g @codedimension/video-editor
After installation, you can run the video-editor command directly.
If you want to run the CLI from source code:
# Install dependencies
npm install
# Build the project
npm run build
To use the video-editor command locally during development:
Build the latest version:
npm run build
Link the package globally:
npm link
Source code changes will be reflected after each npm run build.
remove-silence-of-videos or rsov)The most advanced trimming command. It removes all silence sections from a batch of videos, including silence in the middle of a recording.
Arguments:
[directory]: The directory containing .mkv files (Defaults to the current directory).Options:
--start <number>: Manual start time in seconds (overrides silence detection).--end <number>: Manual end time in seconds (overrides silence detection).Features:
[skip] in their name.trimmed-videos subfolder as .mp4.Example:
video-editor rsov ./raw_recordings --start 5 --end 120
trim-silence)A simpler version that focuses on removing silence only from the start and end of files.
Options:
--input <path>: The path to a single .mkv file or a directory. (Required)--output <path>: The path where the trimmed file(s) should be saved. (Required)Example:
video-editor trim-silence --input recording.mkv --output ./trimmed/
merge-videos)Merges multiple .mkv files into a single high-quality .mp4 file.
Options:
--videosDir <path>: The directory containing the .mkv video files. (Required)--outputFile <path>: The exact path and filename for the resulting .mp4. (Required)Features:
CRF 18 and slow preset for the final export.Example:
video-editor merge-videos --videosDir ./parts/ --outputFile final.mp4
process-course)Orchestrates a complete course editing workflow through a defined directory structure.
Input Structure:
/MyCourse
/nao-editado
/Module-1
/Lesson-A
- 1_intro.mkv
- 2_demo.mkv
- materials.pdf
Output Structure (/editado folder):
/MyCourse
/editado
/Module-1
/Lesson-A
- Lesson-A.mp4 (Merged and trimmed)
- materials.pdf (Automatically copied)
Options:
<coursePath>: Path to the course root folder. (Required)--skip-existing: Skips lessons that already have an output .mp4 file.Example:
video-editor process-course /path/to/MyCourse --skip-existing
-30dB for at least 0.5s.libx264, pix_fmt yuv420paacCRF 18, Preset: slow (optimized for high quality and reasonable file size).ffmpeg -version command works in your terminal.FAQs
Video Editor CLI merges .mkv files to a single .mp4 file
The npm package @codedimension/video-editor receives a total of 249 weekly downloads. As such, @codedimension/video-editor popularity was classified as not popular.
We found that @codedimension/video-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.