# Tag does not show up for .opus files renamed to .ogg

**URL:** https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487
**Category:** General Discussion
**Created:** [April 21, 2018, 8:05am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487 "2018-04-21T08:05:21Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![k241c5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@k241c5](https://community.mp3tag.de/u/k241c5)
#### Post date: [April 21, 2018, 8:05am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/1 "2018-04-21T08:05:21Z")

</div>

Tested with the latest v2.87c, if a file was encoded in opus and renamed file extension to `.ogg`, then mp3tag will not be able to read tags.

 ![image](https://community.mp3tag.de/uploads/default/original/2X/9/93fb9464b8b12dc93076c232554dcc672be803aa.png)

as shown above, foobar2000 v1.4 beta 11 is able to handle tags correctly regardless the extension name, but mp3tag can only read/write tags for opus files that end with `.opus`

While `The recommended filename extension for Ogg Opus files is .opus.` according to [https://wiki.xiph.org/OggOpus](https://wiki.xiph.org/OggOpus), changing file extension name to `.ogg` is the only way to make Android mediaserver pick up these files. In addition, Android is able to play `opus` files with `.ogg` extension and read their tags w/o any problem since Marshmallow, according to [https://android.stackexchange.com/questions/37970/what-can-play-ogg-opus-on-android](https://android.stackexchange.com/questions/37970/what-can-play-ogg-opus-on-android). I'm also able to comfirm this on my Nexus 6P running Android 8.1.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [April 21, 2018, 9:04am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/2 "2018-04-21T09:04:38Z")

</div>

> [@k241c5](#):
>
> encoded in opus and renamed file extension to .ogg

You would get the same behaviour, if you renamed an mp3 file to flac or an mp4 file to wav or whatever.  
Right now MP3tag does not do a lot of guessing what kind of file you have - because the absence of tags at a certain position or in a certain format could mean that there are not tags at all and MP3tag has to add them.  
AFAIK MP3tag does not analyze the audio data (as perhaps the players do).  
This is the current situation.

---

<div class="post-metadata">

### Author: ![k241c5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@k241c5](https://community.mp3tag.de/u/k241c5)
#### Post date: [April 21, 2018, 9:14am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/3 "2018-04-21T09:14:51Z")

</div>

I haven't done much research yet but I assume both Ogg Vorbis and Ogg Opus use the same Ogg container and VorbisComment for metadata?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 21, 2018, 9:20am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/4 "2018-04-21T09:20:31Z")

</div>

You're correct and this is exactly why it's not the same as renaming mp3 to flac.

Mp3tag doesn't support codec detection inside Ogg containers currently and assumes Vorbis by default. It's on my list, but for the time being, Opus needs to come with the \*.opus file extension to be usable inside Mp3tag.

---

<div class="post-metadata">

### Author: ![k241c5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@k241c5](https://community.mp3tag.de/u/k241c5)
#### Post date: [April 21, 2018, 5:25pm UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/5 "2018-04-21T17:25:56Z")

</div>

How about reading file metadata using external library like ffmpeg/ffprobe or mediainfo instead of writing your own detection method?

---

<div class="post-metadata">

### Author: ![djbronko](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@djbronko](https://community.mp3tag.de/u/djbronko)
#### Post date: [July 2, 2018, 5:44am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/6 "2018-07-02T05:44:38Z")

</div>

I understand that media detection within an ogg container would be effortful to implement.

I use the file extension `.opus.ogg` for Android to detect opus files because Android does not detect files ending with `.opus`.

I'd like to ask if support for the file extension `.opus.ogg` (in addition to `.opus`) could be added to detect opus files.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 2, 2018, 5:55am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/7 "2018-07-02T05:55:35Z")

</div>

I think that you can use an action to rename the extension, using %\_filename\_ext% as field.  
So you can rename files so that they reflect the proper file type in WIndows and add further information for the Android programs.

---

<div class="post-metadata">

### Author: ![djbronko](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@djbronko](https://community.mp3tag.de/u/djbronko)
#### Post date: [July 2, 2018, 6:35am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/8 "2018-07-02T06:35:13Z")

</div>

If I understand you correctly, I'd have to rename the files each time before and after tagging?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 2, 2018, 6:35am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/9 "2018-07-02T06:35:55Z")

</div>

Yes, that's what I meant. Or you can wait until such a feature is implemented, if ever.

---

<div class="post-metadata">

### Author: ![djbronko](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@djbronko](https://community.mp3tag.de/u/djbronko)
#### Post date: [July 2, 2018, 5:36pm UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/10 "2018-07-02T17:36:35Z")

</div>

OK. Thanks for your suggestion.

Just wanted to let the community and Florian know about the extension idea which might be simpler to implement than anayzing container metadata.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 7, 2019, 7:43am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/11 "2019-06-07T07:43:12Z")

</div>

I've added support for detecting Opus inside \*.ogg files with [Mp3tag v2.95a](https://community.mp3tag.de/t/455).

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [April 5, 2022, 9:56am UTC](https://community.mp3tag.de/t/tag-does-not-show-up-for-opus-files-renamed-to-ogg/41487/12 "2022-04-05T09:56:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
