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
Some ogg/opus files are not recognized as "audio files" #5840
Comments
I've got the same problem for mp3 files as well. The problem has been persisting for quite a while. Sometimes it works on my laptop, but not on my desktop even though both are running the most up-to-date version of Manjaro x64 and telegram-desktop from the community repository. I think there is a package/are packages missing... |
There are hundreds of audio codecs available. To support every single one is not easy. And eg. I have removed the video stream from your file and voila it works as an audio file in Telegram.
Your original
Removing the video stream:
The fixed ogg
About your second file. I guess it is just not a supported codec by Telegram. If you look at fileinfo.com eg. It already says:
And so I don't even know why it should be used to listen to music. Usually, you do not want to use codecs which are for communication because most of the time they are very lossy and so do not have good quality for video. Imagine being on the phone with a friend, most of the time the sound of his/her voice sounds noticeably different than in real life. And now imagine using this quality for music. XD I don't think you would want that. |
https://mega.nz/#F!EoklhC6B!PXWNAWY0aeLTxHh8D6Jpkw |
yes that test.ogg is corrupted. I can't play it with mpv and ffprobe give me errors. (IDK why it works for you probably because of ffmpeg version or whatever it doesn't matter)
But I tried a ogg vorbis and ogg opus with cover art (.ogg), telegram-desktop (v1.6.7) also don't recognize it as audio. According to RFC7845
lots of applications are still using .ogg for Ogg Opus files probably due to historical reasons.
By looking at spectrum of these audio files, you will notice that MP3 320k (CBR) which is adopted by most of online music stores are actually cut 20kHz+, while opus VBR always cut 20kHz+ and still remain a few. MP3 VBR keeps more on 20kHz+, but 20kHz+ is not important, you can't heard the differences anyway. Opus Recommended Settings | xiph.org
opus 160kbit/s was considered as a very high quality encode. for people who store lossless music and upload to Telegram, they may encode by themselve and result in find out how great opus is and use it. I have some music I store in lossless format but convert to opus with correct metadata and cover art and listing on my smartphone, and sometimes I upload it to telegram and listen to it. It could be much convenient some people who use opus for listing to music like me if telegram-desktop have better support for Ogg Opus file (.opus, and cover art in .ogg). |
@ixearth |
@Nachtalb About video stream in the test file.ogg: I just added the cover of 300*300 px with EasyTag, and older versions of telegram-desktop was perceived a file as audio. How do I add covers to audio now? By the way, the mobile version perceives a file correctly and shows a cover. |
@strannik-j you can add album art as a video stream and use .ogg as container by using ffmpeg, remember to use I don't recommend to add cover art to opus. for music you can't get at lossless quality, you can just edit the metadata (title, artist names etc) or maybe just file name. and use music player to fetch album art from other source while playing. There are lots of music players support fetch cover art from online sources. Telegram Desktop does not show any cover art, Telegram for Android/iOS fetch cover art from iTunes store (by read metadata or file name). I don't think it display the cover art in metadata. Generally I just convert flac which included cover art to opus by using |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
File placed in "audio files" category as well as added to playlist.
Actual behaviour
Some audio files are categorized as just files.
Configuration
Operating system: Manjaro Linux x64
Version of Telegram Desktop: 1.6.2
Used theme: Default
Example of file that was categorized as just "file":
test.ogg
test.opus
The text was updated successfully, but these errors were encountered: