Vencord / plugin-requests

Vencord plugin requests. Open the link below to create a request
https://github.com/Vencord/plugin-requests/issues/new?template=request.yml
29 stars 2 forks source link

plugin for changing Opus file extension to .ogg when uploading #753

Open zlago opened 4 months ago

zlago commented 4 months ago

Plugin Description

discord does not consider .opus and .oga files to be audio, a plugin for automatically appending .ogg to such files (file.opus -> file.opus.ogg) would sidestep this issue without the user needing to incorrectly label all their files

Existing Plugin for other mod

No response

Request Agreement

TetraTheta commented 4 months ago

FWIK, OGG is container format like MP4. It can contain various formats like Vorbis, Opus, FLAC etc.

To me, this sounds like 'automatically change MP3 extension to MP4 when uploading', which is technically wrong approach.

If you have ffmpeg in your environment, you'll be able to contain Opus audio to OGG container with or without re-encoding.

zlago commented 4 months ago

If you have ffmpeg in your environment, you'll be able to contain Opus audio to OGG container with or without re-encoding.

(this applies to all my music, i encoded it all manually)

$ ffprobe iji/sec1.opus
Input #0, ogg, from 'iji/sec1.opus':
  Duration: 00:03:47.09, start: 0.000000, bitrate: 65 kb/s
  Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
    Metadata:
      encoder         : Lavc58.54.100 libopus
      title           : Kinda Green
      artist          : Chris Geehan & Dan Byrne McCullough

To me, this sounds like 'automatically change MP3 extension to MP4 when uploading', which is technically wrong approach.

i really do mean exactly what i said, .opus is the canonical file extension for Ogg Opus, discord can play Ogg Opus but only if you change the file extension to any "valid" audio file extension, appending .ogg to names of valid Opus files when uploading to discord is tedious and error prone