Comments (6)
Update: newest version shows keyframes on the timeline and lets you zoom in to accurately cut around keyframes. Next version I could let the user seek to keyframe.
from lossless-cut.
See discussion in #13. The problem is how to detect safe keyframes reliably and fast.
from lossless-cut.
I made a branch where I implemented this, however actually cutting on keyframe is not yet solved.
https://github.com/mifi/lossless-cut/tree/cut-on-keyframe
from lossless-cut.
Found myself using this again. I think some new commit might have broken cutting from 00.00.00.000, it's doing that frozen frame thing. Never ran into this issue before.
Possibly more related to this original topic, I also noticed that Lossless Cut's timestamps don't change with the framerate of the video. This shouldn't be a problem with video that's 60 FPS, or 30 or 15 or 10 etc, but it might not with frame rates that don't divide evenly. Most commonly would probably be 24 or 23.976 FPS. Potentially might even be affecting 59.94 FPS video.
There are also some rare occasions where the timestamps seem to stop lining up with the video? For example, right now I'm looking at a seekbar that says 8.40.003. If I press comma to go back one frame, it says 8.39.987, seemingly skipping 8.40.000. After mess around with clicking the seekbar and skipping around by frame or by seconds, I can now get that same video to say 8.40.002.
from lossless-cut.
Found myself using this again. I think some new commit might have broken cutting from 00.00.00.000, it's doing that frozen frame thing. Never ran into this issue before.
This is fixed in #50
Possibly more related to this original topic, I also noticed that Lossless Cut's timestamps don't change with the framerate of the video. This shouldn't be a problem with video that's 60 FPS, or 30 or 15 or 10 etc, but it might not with frame rates that don't divide evenly. Most commonly would probably be 24 or 23.976 FPS. Potentially might even be affecting 59.94 FPS video.
I don't quite understand this one.
There are also some rare occasions where the timestamps seem to stop lining up with the video? For example, right now I'm looking at a seekbar that says 8.40.003. If I press comma to go back one frame, it says 8.39.987, seemingly skipping 8.40.000. After mess around with clicking the seekbar and skipping around by frame or by seconds, I can now get that same video to say 8.40.002.
The thing is that we are not aligning timestamps to frame timestamps at all, because the html5 video player does not expose this information. We could, however read frame timestamps using ffprobe or similar, but I don't think this gives us anything, unless we can tell ffmpeg to accurately cut on (key)frames
from lossless-cut.
FYI Seek to keyframe is implemented with alt+left and alt+right. However don't expect ffmpeg to always cut at the keyframe selected. You may have to try "keyframe cut" or "normal cut" depending on codec and file.
from lossless-cut.
Related Issues (20)
- Customise mouse wheel/trackpad pad/seek/zoom behaviour
- Preview playback actual exported cuts HOT 1
- Label all segments at once HOT 7
- When merging mp3 files and creating chapters, these have the wrong position HOT 3
- Can't run from network drive. `GPU process isn't usable. Goodbye.` HOT 3
- Setting to always import / always ignore chapters when opening file
- Lossless masking? HOT 4
- This file can't cut or merge HOT 1
- .
- App no longer runs from a UNC path HOT 3
- 120 fps video stutters in playback window HOT 9
- Add audio source channel switching preview HOT 1
- Files Not Outputting When Overwrite Existing Files is Unchecked HOT 13
- Implement JPGXL or AVIF format options for video snapshots HOT 1
- Capture frame/snapshot/screenshot and export video frames improvements
- Commercials / Ad detector and remover (Comskip for example) HOT 1
- Waveform appears seemingly at random HOT 2
- Add option to display subtitle by default when creating MP4 file HOT 3
- Please add option to ignore rotation info in metadata HOT 4
- Playback is extremely slow and stuttery HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lossless-cut.