-
-
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
Problems splitting certain audio files #2140
Comments
this is a bug in ffmpeg where it doesn't update the length when cutting. I've fixed it (upcoming version) with a workaround which is to actually re-encode the flac (which is lossless because flac is a lossless codec) see #1809
that's interesting. the OPUS problem is probably also a bug in ffmpeg, so not much that can be done here i think |
ffmpeg outputting partially broken files not being their problem is a pretty dizzying deflection. Is LosslessCut using the --copy option for Opus, too? Are you aware of any library/tool that can rebuild Opus files? opustools doesn't seem to provide any. |
i meant to say that there's not much i can do, because i don't know the internal implementation details of ffmpeg nor do i know much about the opus codec. but surely if someone wants to fix it, that would be great.
yes
no |
Oh, I got that and wasn't blaming you ...that would be madness! I was referring to the reply provided on the first ffmpeg ticket linked in #1809 which argues that, since the --copy option only copies stuff, then it's okay for the length of the output file to be incorrect, thus transferring the burden of detecting and solving any problem on the user and/or another piece of software. Never mind that splitting a file isn't making a straight copy. Apologies for any confusion. Since I assume you have a certain experience with ffmpeg bugs and reporting them, any chance that upstream would fix Opus related bugs if a ticket were to be opened? |
Ahh ok, no worries. TBH I haven’t reported too many bugs upstream but there are some other llc users who have done it in the past. If you’re able to find a simple ffmpeg command that can reproduce the problem with a small opus file, I’m sure it’s worth trying to report it. (Assuming it hasn’t already been reported like the flac issue) |
The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first
Operating System
Windows 10
Steps to reproduce
Expected behavior
Split files should pass integrity checks.
Actual behavior
Depending on the format, various warnings are triggered. I've tested four:
Opus files have small differences (some millisecs) versus the reported lengths.
FLAC has the MD5 and length of the original file.
I didn't report this through the specific format form since it happens with at least two and possibly more formats. I haven't looked into ffmpeg to figure whether this is an issue with the build or version that LosslessCut is using, or perhaps it having a rough/incomplete implementation for audio splitting.
I've verified this happens both with 3.61 and 3.62.
Disabling Keyframe Cut eliminates the granulepos is nonsense warning but inaccurate lengths remain.
Share log from developer tools
No response
The text was updated successfully, but these errors were encountered: