-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Inaccurate cuts with both keyframe and normal cutting #1087
Comments
Yo te diria que cuando descaargaste el video la codificación fue pobre.. Te recomendaria que vuelvas a codificar el video con handbreake de acuerto a los fotoogramas reales del video .. y despues vuelvas a utizar el programa de losscut .. |
Hi and thanks for your thorough report. I'm trying to understand, is the behaviour you're seeing with keyframe cut different from what is described in the readme known issues and limitations ? |
Is the video encoding bad for the mp4 too? I will try re-encoding with handbrake or ffmpeg to see if that helps but I don't see why it will |
For the most part, yes. I did not notice the known issues. I did try smart cut but it did not work. In the same examples above, for the "Intro Part 1" clip it seems to start at the proper start time,but the export is not correct. After 3 seconds it suddenly skips to the around 3 seconds before the segment start. Weird behavior. |
I tried re encoding the mp4 with ffmpeg Odd that smart cut gives me problems on the 4k webm and the 1080p, both with different behaviors. The 4K webm behavior was described above. The original 1080p version taken from ytdl ended up losing lots of quality in the first second or two of the exported segments which was weird. Not sure why the original lossless x264 mp4 resulted with the pixelated frames for the first second but the re-encoded x264 mp4 did not. |
I have a similar issue, I jump by keyframes, but it's off by one keyframe. Steps:
it's always one keyframe off for me, it goes before the keyframe where I start note that if the keyframe is at 1:20 I might start the current segment at 1:25 (next keyframe) in order to get a cut starting at 1:20 |
I noticed that this only happens with webm, the mkv doesn't exhibit this behavior, so I have to cut differently based on which format I downloaded from Youtube |
closing in favor of #1216 |
Share information to help me understand
The file I am working with is a YouTube video, https://www.youtube.com/watch?v=R9At2ICm4LQ. You can use yt-dlp to work with the file if you choose to as well. In the following issue I will be describing the issue with regards to the 1080p version.
Best quality, 4k webm (currently) ~300 MB:
yt-dlp https://www.youtube.com/watch?v=R9At2ICm4LQ
1080p mp4 ~100 MB:
yt-dlp -f 137 https://www.youtube.com/watch?v=R9At2ICm4LQ
Describe the bug
The main issue I am facing is that no matter how I choose to export my segments, there is an issue. To start, I was originally working with the webm 4k version and doing keyframe cuts. This did not follow my segmented keyframes and made the duration of the segments much longer. I tried normal cuts and at times it made the durations much shorter... assuming they properly rendered out in the first place. Doing this normal cut on the 4k footage made more than 50% of the clips corrupted (a few examples: all of the intro segments except for "Intro Part 1" and all of the "Wendy" segments).
Using the 1080p mp4 version with keyframe cutting was a better experience, but it was still exporting incorrect segments. For example, in "Intro Part 1" the segment starts as the flower effect is over, but the exported segment starts during that flower effect. Again, the duration is incorrect. The segment duration is at around 12.1 seconds, but the exported segment resulted in ~13.6 seconds.
I didn't bother looking into 1080p mp4 version with normal cutting in depth because it was wrong and corrupted too. In the same example, the "Intro Part 1" exported segment now starts later into what the segment should be and extends it as well. Additionally, it seems corrupted. The exported segment stops playing at 8 seconds of the 12 second clip, on one keyframe exactly after where I set the segment to end. Again, I didn't bother looking into this more because this result was more confusing to me than the previous 1080p keyframe cutting issues.
To Reproduce
Steps to reproduce the behavior:
Use the YT video I linked above with either version you want. I have attached the exact segments I am exporting to this issue. In order to have done so, I had to append
txt
to the files extension. If you choose to follow along to reproduce my problems, please rename the Lossless Cut Project file to removetxt
from the end.Red Velvet - Feel My Rhythm MV Main Timestamps 1080p.llc.txt or https://gist.github.com/AdamSaketume26/ddec5d641519b6eec7a8e41d156f4440
Afterwards, simply export with the following settings:
![image](https://user-images.githubusercontent.com/72011070/159298812-030a1e8f-268c-4770-a57d-20386b38dda1.png)
Expected behavior
I expect the exported segments to start from the respective cut-start and cut-end positions as indicated in the segments.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Problem Report Summary
The text was updated successfully, but these errors were encountered: