Code Monkey home page Code Monkey logo

Comments (6)

mifi avatar mifi commented on May 10, 2024 3

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.

mifi avatar mifi commented on May 10, 2024

See discussion in #13. The problem is how to detect safe keyframes reliably and fast.

from lossless-cut.

mifi avatar mifi commented on May 10, 2024

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.

wave-dash avatar wave-dash commented on May 10, 2024

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.

mifi avatar mifi commented on May 10, 2024

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.

mifi avatar mifi commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.