opus icon indicating copy to clipboard operation
opus copied to clipboard

Is there a plan to support pcm->opus encoding?

Open since1986 opened this issue 2 years ago • 2 comments

Summary

If I understand correctly, pion opus only support decoding operations, is there any plan to support encoding operations in the future?

Motivation

I've written a streaming-WebRTC gateway app that can convert av streams from streaming devices to WebRTC via pion, but now there's a tricky problem, the audio encoding provided by these media devices is usually aac (or can be set to pcm, which is configurable on the device), I can't find a library that implements pcm -> opus in pure go, only some library based on c-go (like this one). The c-go based library has some limitations (e.g. it can't be self-contained), so it would be nice if pion opus supported pcm->opus.

Describe alternatives you've considered

.

Additional context

.

since1986 avatar Feb 01 '23 06:02 since1986

Also, is there a pure-go ffmpeg alternative? not wrappers

since1986 avatar Feb 01 '23 06:02 since1986

Summary

If I understand correctly, pion opus only support decoding operations, is there any plan to support encoding operations in the future?

Motivation

I've written a streaming-WebRTC gateway app that can convert av streams from streaming devices to WebRTC via pion, but now there's a tricky problem, the audio encoding provided by these media devices is usually aac (or can be set to pcm, which is configurable on the device), I can't find a library that implements pcm -> opus in pure go, only some library based on c-go (like this one). The c-go based library has some limitations (e.g. it can't be self-contained), so it would be nice if pion opus supported pcm->opus.

Describe alternatives you've considered

.

Additional context

.

Hi, sir. How did you resolve this ? with hraban? I noticed it not support cross compile,so i‘m worried about deployment with different platform. Would you mind spend some minutes for me when you are free.....

Modestying avatar Mar 04 '24 07:03 Modestying