How nullmagic2/chop-chop works
Chop Chop Splitter is a desktop video cutter with GTK on Ubuntu and a native Win32 interface on Windows. Users open a video, select a time range or configure a batch split, preview the selection, and start video or audio export; the shared FFmpeg engine probes media and performs the cutting. The graph keeps the two front ends distinct while showing their shared engine and translation layer. Some detailed UI-to-engine links are supported by the source index or README rather than complete call-site excerpts.
Main entry points: splitter.rs Probe and cut · src/main.rs Win32 interface · src/main.rs GTK interface · app.rs UI behavior
Components 14
Ubuntu interface
- GTK interface
src/main.rs
Windows interface
- Win32 interface
windows/src/main.rs - UI behavior
windows/src/app.rs - File dialogs
windows/src/dialogs.rs - Preview images
windows/src/image.rs
Media processing
- Probe and cut
src/splitter.rs - Frame previews
src/splitter.rs - Batch splitting
src/splitter.rs - Audio export
src/splitter.rs
Localization
- Translations
src/i18n.rs
Other components
- User
- FFmpeg
- FFprobe
- Exported files
Connections 17
- User → GTK interface: selects and exports
README.md - User → Win32 interface: selects and exports
README.md - GTK interface → Probe and cut: requests cuts
src/main.rs - GTK interface → Frame previews: requests previews
src/main.rs - Win32 interface → UI behavior: creates interface
windows/src/main.rs - Win32 interface → File dialogs: uses dialogs
windows/src/main.rs - Win32 interface → Preview images: uses image tools
windows/src/main.rs - UI behavior → Probe and cut: starts jobs
windows/src/app.rs - UI behavior → Frame previews: requests frames
windows/src/app.rs - Preview images → Frame previews: displays thumbnails
- Probe and cut → FFprobe: probes media
src/splitter.rs - Probe and cut → FFmpeg: cuts and encodes
README.md - Probe and cut → Batch splitting: supports batch mode
README.md - Probe and cut → Audio export: exports audio
README.md - Probe and cut → Exported files: writes exports
README.md - GTK interface → Translations: uses strings
src/main.rs - Win32 interface → Translations: uses strings
windows/src/main.rs