.ogg
Open multimedia container format often used with Vorbis or Opus audio.
About this format
Ogg is a free, open container format for audio and video. It is commonly paired with Vorbis or Opus for music, games, and streaming.
How to tell Opus and Vorbis apart in two .ogg files
Two short tone files encoded separately as Opus and Vorbis both began with 4F 67 67 53, the bytes spelling OggS. That page marker identifies the container. The first identification packet in the Opus file began with OpusHead. In the Vorbis file it began with hex 01 followed by the six letters vorbis.
To check the first audio stream of a local file, run ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=nw=1:nk=1 sample.ogg. The command returned opus and vorbis on the two examples. Substitute your actual filename and put quotes around paths containing spaces.
If a device accepts Ogg Vorbis only, renaming an Opus file keeps its encoded audio unchanged. Check the accepted codec before converting. This probe selects just the first audio stream; other streams and playback on a particular device need separate checks. Ogg Opus identification header ยท Vorbis I specification
Safety guidance
Ogg is a media container and does not execute code by itself.