-
Notifications
You must be signed in to change notification settings - Fork 4
Modernize TTCut: Qt5, ffmpeg, mpv, SRT subtitles, Debian packaging #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Update all Qt includes from Qt4 to Qt5 module structure - Replace deprecated QGLWidget with QOpenGLWidget for Wayland compatibility - Fix deprecated QFlags constructor usage - Fix all compiler warnings for Qt5 compatibility - Update ttcut.pro for Qt5 build system Tested on Debian forky/sid with Qt 5.15. Co-Authored-By: Claude Opus 4.5 <[email protected]>
transcode is discontinued and unavailable on modern systems. ffmpeg provides equivalent functionality for re-encoding frames around cut points. Changes: - Replace tttranscode class to use ffmpeg instead of transcode - Update encoding parameters for ffmpeg compatibility - Fix preview error handling Co-Authored-By: Claude Opus 4.5 <[email protected]>
mplayer is deprecated and has compatibility issues on modern systems. mpv provides better Wayland support and is actively maintained. Changes: - Replace mplayer with mpv in TTMplayerWidget - Update player parameters for mpv compatibility - Fix progress tracking during stream operations - Update navigation button icons Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add debian/ directory with packaging files - Add .desktop file for application menu integration - Add launcher script for Wayland compatibility (QT_QPA_PLATFORM=xcb) - Add build-package.sh helper script Co-Authored-By: Claude Opus 4.5 <[email protected]>
Based on the work by Minei3oat (PR baltendorf#1). Features: - Auto-load SRT files matching video filename - Display subtitles in video preview frame - Pass subtitles to mpv via --sub-file parameter - Cut subtitle streams along with video/audio - Generate subtitle previews for cut preview dialog New files: - avstream/ttsrtsubtitlestream.cpp/h - SRT parser - avstream/ttsubtitleheaderlist.cpp/h - Subtitle header management - data/ttsubtitlelist.cpp/h - Subtitle data list - data/ttopensubtitletask.cpp/h - Async subtitle loading - data/ttcutsubtitletask.cpp/h - Subtitle cutting task - gui/ttsubtitletreeview.cpp/h - UI widget for subtitle list Co-Authored-By: Minei3oat Co-Authored-By: Claude Opus 4.5 <[email protected]>
Incorporates improvements from the ttcut fork: - Fix navigator display not showing cut markers - Initialize member variables properly - Fix encoding error handling - Update UI layouts for better usability Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Back when I wrote the SRT support, I also fixed some other issues. Since I realized this repository is basically abandoned since 2010, I never invested the time to refactor and upstream them. You can find them in https://github.com/Minei3oat/ttcut/tree/temp. I used that branch until last year when I replaced TTCut with MCut, my own smart video editor. |
|
Thanks for the tip, maybe I can use some of your corrections 👍. |
Yes.
Since I'm interfacing with libavcodec, the library behind ffmpeg, MCut should be able to work with all container formats and codecs supported by ffmpeg. In reality, lots of container formats cannot be read due to the way I implemented seeking (ts works, mkv not) and there are some problems with some codecs/parameter values. For example MCut was able to cut ZDF HD while it failed for ARTE HD. |
|
Sehr interessant, muss ich unbedingt ausprobieren. |
Summary
This PR modernizes TTCut to work with current Linux distributions (tested on Debian forky/sid).
Changes
Qt5 Migration - Update from Qt4 to Qt5, replace deprecated QGLWidget with QOpenGLWidget for Wayland compatibility
Replace transcode with ffmpeg - transcode is discontinued; ffmpeg provides equivalent functionality for re-encoding frames around cut points
Migrate from mplayer to mpv - mplayer is deprecated and has compatibility issues; mpv provides better Wayland support
Add Debian packaging - debian/ directory with packaging files, .desktop file for application menu, launcher script for Wayland
SRT subtitle support - Based on work by @Minei3oat (PR Add support for SubRip-Subtitles #1): auto-load SRT files, display in preview, cut along with video/audio
UI bug fixes - Fix navigator display not showing cut markers, initialize member variables properly, fix encoding error handling
Testing
Built and tested on:
Credits
🤖 Generated with Claude Code