sandreas / tone

tone is a cross platform audio tagger and metadata editor to dump and modify metadata for a wide variety of formats, including mp3, m4b, flac and more. It has no dependencies and can be downloaded as single binary for Windows, macOS, Linux and other common platforms.
https://pilabor.com
Apache License 2.0
418 stars 17 forks source link

Feature Request: perfect opus merging without 'click' #57

Open gitoss opened 1 year ago

gitoss commented 1 year ago

Your list for upcoming features contains "merge multiple smaller audio files into large ones auto generating chapters using silence detection with ffmpeg, fdkaac and CliWrap"

I like what tone is aspiring to become, so here's a feature request: I've never managed to merge opus files perfectly without a "click" sounds in the gaps - and I've tried just about every method/tool.

It seems to be some built-in opus problem, either the pre-gap, or simply that opus start/end frames arent't meant to be chained. For mp3, mp3binder manages to do it - but the mp3 format seems to be easier to handle.

I've written a question in Hydrogenaudio, basically to find out that I have to merge before converting to opus - all other methods (yet) fail and produce the "click" gap sound. https://hydrogenaud.io/index.php/topic,124084.0.html

sandreas commented 1 year ago

I like what tone is aspiring to become, so here's a feature request: I've never managed to merge opus files perfectly without a "click" sounds in the gaps - and I've tried just about every method/tool.

Since I've no time to add features atm, it is a nice request but I think it is not gonna happen soon. However, I thing merging ogg directly may be problematic because of the file format. Probably converting to wav, merging uncompressed and then back to ogg is the way to go. It's slower, but probably more accurate.

This could be a way when a flag extra-accurate is provided or something :-)