Skip to content

justin-m-lacy/vidsplit

Repository files navigation

Javascript Video Splitter

Electron/FFMpeg Video Splitter

Slice and Save video segments

Screenshot

Slice & Reorder multiple segments

Screenshot

Split whole video at cutting points

Screenshot

Setup

  • Install node

  • install pnpm, npm or similar package manager.

  • install ffmpeg video library https://ffmpeg.org/

Develop Front-end

Front-end development with no backend support.

pnpm dev

Build and Run Application:

In terminal: pnpm buildrun

Build Application

Run in terminal:

pnpm build

Run Built Application

After pnpm build run in terminal:

pnpm run run

Package Application

pnpm app:dist

Package into Directory:

pnpm app:dir

View contents of .asar file by running:

npx asar list [path]/app.asar

Extract contents of asar:

npx asar extract app.asar tempDir

FAQ

  • Why is the app so large?

    • The Electron binaries that allow program to be run as a standalone app are large.
    • FFMPeg can be installed separately but can be up to 100MB.
  • Avi file won't play

    • Although ffmpeg supports .avi files, Chrome does not support avi files natively.
  • I can't save files when running pnpm dev dev mode.

    • This often occurs due to code editor (e.g. VSCode) privileges. Change program privileges, or use pnpm run, or run the built app.