[opus] opus file trimming/clipping

Ralph Giles giles at thaumas.net
Thu May 9 16:17:26 PDT 2013


On 13-05-09 2:06 PM, Matt Ruck wrote:

> Would trimming in another format like WAV or Ogg using existing tools,
> and then encoding to Opus be a good way accomplish trimming a sound
> track for Opus, and if so, what tools might be best (e.g., vcut was
> previously mentioned)?

Trimming WAV and then encoding to Opus would give you equivalent quality
and is something which can be done with existing tools. You can trim a
wave file with the command-line sox tool, or e.g. Audacity, a graphical
audio editor.

Something like 'sox in.wav trim 12:53.6 30 out.wav' will cut out 30
seconds of audio starting at 12 minutes 53.6 seconds into the file.

That said, if you want to try writing a lossless Opus trimmer, we'd be
happy to help. That' something the Ogg Opus draft which hasn't seen any
implementation feedback on.

 -r



More information about the opus mailing list