Problem with x265 videos #1633
Replies: 7 comments 7 replies
-
|
hi. you tried also different |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply, yes I have tried changing the avoid_negative_ts settings. I think I've tried every combination of settings. I haven't tried exporting them as individual files so I will try that. I don't see how that would reproduce the problem as it wouldn't be able to jump between the frames of the two sections when there is only one section but I will try anyway to see what happens. |
Beta Was this translation helpful? Give feedback.
-
|
After trying Avimux, I get similar results but it complains about "non-IDR keyframes" which I believe is the problem, looks like most x265 videos are encoded this way. After some more googling it seems others have the same issue and just keep trying different cut points until they get it to work. This can be very time consuming. |
Beta Was this translation helpful? Give feedback.
-
|
I have still been trying to find a way to cut non-IDR key frame videos. Talking to an ID chatbot seems to think it is possible by recreating "true" keyframes at the cut point. Is this possible? It does seem that the "Re-encode only GOP", while technically complex, tools like ffmpeg has the capabilities so it is just a matter of creating a script, the majority of which will already have been written for "smart-cut" You are correct: ffmpeg and similar tools already provide the technical building blocks needed for this kind of "re-encode only GOP" smart editing workflow-it’s largely a matter of scripting and careful stream handling, as you described. ffmpeg Capabilities: Re-encode only the necessary part (the GOP containing the cut) using matching encoding settings Concatenate the resulting segments back together Community Experience: Why Isn’t This Mainstream Yet? Sample Workflow Outline Conclusion Yes, it is possible-and ffmpeg has the capabilities. This approach is already proven in the community, and most of the groundwork is laid by existing "smart-cut" logic; it just needs to be tailored for your workflow. If you’d like, I can help sketch out a sample script or step-by-step process for your use case. |
Beta Was this translation helpful? Give feedback.
-
|
While I have basically the same issue with HVEC/h.265 which results in either freezes around cut points during video playback or a black video when the experimental smart-cut feature is enabled (v3.64.0 via Windows AppStore), I by far didn't dig that deep yet into what actually is causing the videos to either freeze around cuts for 2-3 seconds when neither key frame nor smart cuts are enabled or produce a completely black screen when smart cuts are enabled. For key-frame cuts unfortunately either unwanted stuff is added to the video or parts that should be in are cut away, due to the app only looking at key frames. I basically tested these with the same 3-4 movies over and over again with various settings. Note, I see those freezes or generated artifacts also in single exported segments. Within the LosslessCut editor the video though plays fine. I did cut and render the same videos with BandiCut and these videos all worked fine then, even with precise cuts in-between key-frames. I'm not sure what BandiCut does differently here or what it uses internally, All I know is that as long as the non high-speed export mode is used, those videos all render fine. With the high-speed mode BandiCut basically falls back into key-frame cuts and therefore leaves unwanted footage in the output like LosslessCut does with its key-frame cut enabled. |
Beta Was this translation helpful? Give feedback.
-
|
I haven't used Bandicut but from the website: So if you aren't using High-Speed mode, it's doing a full re-encode and isn't lossless. This would explain why the cuts are rendered correctly, as they are on most editors that re-encoded. |
Beta Was this translation helpful? Give feedback.
-
|
For those coming here like me to look for an easy solution when the exact start/end frames do not matter, for me the following has provided an acceptable solution. Once you mark up a segment, go to Segments --> Align Segment Time to Keyframes (you can even set up a hotkey for that). After a small shift, my H.265 video exported and played without any problem. By the way, in the menu popping up, the option that might be useful but is currently missing is to expand the segment to keyframes, i.e. shift the start to the previous one and the end to the next one. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been using Lossless Cut very successfully on many x264 videos but I'm having trouble with x265 files.
The resulting videos have issues at the point of edit/merging.
The image will quickly flash/jump back and forth between the two combined sections for around 2 seconds, then resume normal playback. I have tried all the combinations in the FAQ "The exported video has a problem" with no real improvement. The only difference is that if I use MKV, the video has a 2 second pause instead.
Strangely, if I use a different FFMPEG based editor (Vidcutter), it does a better job, usually no problem or just one corrupt frame before continuing normal playback, only occasionally having the flashing/jumping problem (if that happens I just move the edit point slightly & try again). If this program can do it I would have thought Lossless Cut should be able to.
Is there something I can try to improve the result?
(Just to be clear, I'm using it to shorten long videos, not merge different videos)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions