Skip to content
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

Converting MP3 to Opus using libopus codec #775

Open
siam02 opened this issue Aug 28, 2024 · 0 comments
Open

Converting MP3 to Opus using libopus codec #775

siam02 opened this issue Aug 28, 2024 · 0 comments

Comments

@siam02
Copy link

siam02 commented Aug 28, 2024

I am trying to convert MP3 to Opus but I am getting a 0-byte Opus file. Also, the file is not working.

I am using this command:

ffmpeg_cmd = ['-i', 'audio.mp3', '-vn', '-c:a', 'libopus', '-b:a', '128k', 'audio.opus'];

I have even tried using the Playground of the documentation and have had the same result. But if I use libvorbis instead of libopus it's converting smoothly and the output file also works fine. But this method changes the output codec to vorbis which I don't want and I needed to make the libopus work.

Please help!!!

Note: I have also tried using 'opus' instead of 'libopus'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant