I have a problem with the opusenc conversion, it is that when I convert a 384000 samples wav to opus, it becomes 384000 samples opus, but when I convert to Opus with Batch FIle/Item Converter, it doesn't become 384000 samples opus.
I am just guessing, but it seems that the opus in Batch FIle/Item Converter is 384648 samples.
I looked at this opus in opusinfo and it says "Playback length: 0m:08.013s", which I think is the correct value since 384648/48000=8.0135.
----------------------------------------------------------------
[google translated version]
Converting a wav of 384000 samples with opusnc results in opus of 384000 samples, but converting to Opus with Batch FIle / Item Converter does not result in opus of 384000 samples.
By eye, the opus of Batch FIle / Item Converter seems to be 384648 samples.
Looking at this opus on opus info, it says "Playback length: 0m: 08.013s", so I think this is the correct value from 384648/48000 = 8.0135.
----------------------------------------------------------------
----------------------------------------------------------------
384000 samples wav & opusenc = 384000 samples opus
↓
384000 = 384000
384000 samples wav & Batch FIle/Item Converter = 384648 samples opus
↓
384000 ≠ 384648
----------------------------------------------------------------
https://drive.google.com/file/d/1v2T...ew?usp=sharing
Red is the original wav converted, green is opus from opusenc, cyan is opus from Batch FIle/Item Converter, and blue is the original wav converted with a 3 Hz 1-pole high-pass filter applied.
It seems that opus applies HPF internally and that is why it shows 648 samples longer than the original file.
It appears that HPF is also used in the conversion to opus, and the HPF impulse response is visible in the zero-padded location after 384000samples.
-------- Confused text from here down --------
It means that converting a 384000 samples wav with opusenc will result in an opus of 384000 samples, but converting to Opus with the Batch FIle/Item Converter will not result in an opus of 384000 samples.
This is because the sampling rate is 48000 Hz, BPM 120, and 4 Bars, so it is a one-loop 384000 samples music file, so if I paste it into a project with BPM 120, no matter how far I loop it, the timing will not shift.
Another thing I noticed is that when I open each file in Adobe Audition, the original wav has 384000 samples as expected, but opusenc's opus has 384312 samples at any bitrate, and Batch FIle/Item Converter's opus shows 384960 samples at any Bitrate.
If this is true, then I think the opus in opusenc is off by 312 samples every 4 Bars when I paste it into a project with 120 BPM in REAPER and loop it, but when I actually paste it into REAPER, REAPER recognizes it as a music file with 384000 samples and adjusts the tempo and how much it loops. However, when I actually paste it into REAPER, REAPER recognizes it as a music file of 384000 samples and does not deviate from the tempo no matter how much I loop.
However, the opus of the Batch FIle/Item Converter for 384960 samples will be out of sync, which is not surprising since 384960 is not 384000.
This is just an educated guess based on a zoomed in timeline, but in reality, REAPER seems to recognize that the opus of the Batch FIle/Item Converter is 384648 samples.
When I look at the opus of Batch FIle/Item Converter in opusinfo, it says "Playback length: 0m:08.013s", so from 384648/48000=8.0135, it seems that REAPER's recognition of the length for the loop is more correct. The actual length of the file is
I don't know if the actual file length is correct for Adobe Audition or REAPER, but what I am asking for is for opusenc to convert to opus of the same length as the original file.
Translated with
www.DeepL.com/Translator (free version)