-
Notifications
You must be signed in to change notification settings - Fork 414
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
bugged -c and -c copy version. Adding some extra frames at the end #470
Comments
Just to confirm, are the cuts for the video correct if you use a normal encoding mode (e.g. don't use copying mode)? From what you posted above this seems to be the case but I want to double check.
This shouldn't be possible... I'm unable to reproduce this behaviour locally, and can confirm that any arguments passed to the
Could you check which audio tracks are present? There might be some differences in how the tracks are being mapped. Aside, could you try to see if you can tell where the I-frames occur in the original video you're splitting? If they don't line up with the cuts exactly, that would explain why you're seeing these off-by-one errors when using codec copy mode. Could you also try manually running You can also try using the
If this affects every single scene we can try to add a parameter to shift all start and/or end timecodes by a certain # of frames, or perhaps shrink them at the cost of maybe dropping a frame here and there. |
Yes, everything is well done in the normal mode. I'm just not completely satisfied with the usual encoding, because it uses a relatively static amount of bitrate. That is, if I take crf 17 and render on the processor, then in dynamic scenes the video bitrate will not rise above 5M, and in ordinary almost static frames there will still be a lot of bitrate. If I use -c:v hevc_nvenc -b:v 4M, then the same story. If there is an option that does not create additional frames at the end, and selects the required bitrate itself (that is, in low-moving scenes, low bitrate, more in dynamic ones), I would be grateful.
Oh, okay, sorry...
Again, after restarting my computer tried running them again and the size matched, apparently something went wrong for me during the first tests, apologies again
I'm a little confused about the question, how do I understand this? Most videos have a frame of the following at the end. I tried to trim one moment (not the one I gave) and it turned out similar to this command ffmpeg -ss 00:00:06.300 -i “[DB]Kyoukai no Kanata_-01(Dual Audio_10bit_BD1080p_x265).mp4” -to 00:00:01 -c copy “test.mp4”. That is, the first piece goes to 06.300, the frame change is supposedly at 06.275 (presumably), and the next frame starts at 06.300.
I'm sorry, I'm not good at this kind of thing. I'd just like to make it easier on myself to cut scenes. And judging by the name of the team, it smells like manual labor. If that's the case, I'd rather re-encode, losing quality in dynamic scenes. Is there any way to speed up the usual renderer (because 30 fps is not too much), and not lose quality in dynamic scenes, and not have excessive bitrate in quiet scenes?
It's not on every frame, it did okay somewhere |
Description:
A few joints
Command:
scenedetect -i "input/%%~i" -d 4 -b pyav detect-adaptive -w 0.1 0.1 1.0 0.0 -c 34 -t 2.7 split-video -o "anime%folder%%%~ni" -с
(-b pyav added threshold as you recommended in my last report)
Output:
BUG_REPORT.txt
Environment:
System Info
OS Windows-10-10.0.19045-SP0
Python CPython 3.13.0rc1
Architecture 64bit + WindowsPE
Packages
av 13.1.0
click 8.1.7
cv2 4.10.0
imageio 2.36.0
imageio_ffmpeg 0.5.1
moviepy 2.1.1
numpy 2.1.3
platformdirs 4.3.6
scenedetect 0.6.5
tqdm 4.67.1
Tools
ffmpeg 7.1-full_build-www.gyan.dev
mkvmerge v45.0.0 ('Heaven in Pennies') 64-bit
Media/Files:
The text was updated successfully, but these errors were encountered: