[FFmpeg-user] ffmpeg convert mp3 to opus codec (contained in ogg format)?

Robert Keir robertk at smithpower.co.za
Thu Jul 18 16:06:47 EEST 2019


Thank you. The reason I'm converting to ogg-opus is that I can send it via whatsapp.

Whatsapp is only accepting opus contained in ogg. 

I get this error in windows when converting mp3 to ogg (opus codec)



-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Reino Wijnsma
Sent: Thursday, July 18, 2019 3:05 PM
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Subject: Re: [FFmpeg-user] ffmpeg convert mp3 to opus codec (contained in ogg format)?

On 18-7-2019 14:37, Robert Keir <robertk at smithpower.co.za> wrote:
> I need to convert an MP3 to OGG (opus codec). I need to execute this 
> (below) in PHP.
>
> ffmpeg -i filename.mp3 c:a libopus newfilename.ogg
>
> Is this correct?

Except for the dash you forgot ( -c:a libopus) this is indeed a very basic conversion to opus.

In general converting a lossy format to another (mp3 to opus) is frowned upon.
It's recommended to convert the original lossless format (wav, flac, etc) if you still have it.

-- Reino
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.jpg
Type: image/jpeg
Size: 133465 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20190718/35c60a89/attachment.jpg>


More information about the ffmpeg-user mailing list