Why doesn't linux support mp3?

藏色散人
藏色散人Original
2023-03-20 10:29:322021browse

Linux does not support MP3 because of license issues. Linux cannot include MP3 decoding or encoding functions on its basic distribution; however, users can provide MP3 support through third-party software libraries. The method is: 1. Install gstreamer; 2. Switch to the music directory and execute the "mid3iconv -e GBK *.mp3" command; 3. Install "python-mutagen" and then execute "mid3iconv -e GBK *.mp3".

Why doesn't linux support mp3?

The operating environment of this tutorial: Ubuntu16.04 system, Dell G3 computer.

Why doesn’t Linux support mp3?

Ubuntu16.04 solves the problem of not being able to play mp3

The MP3 encoding scheme has been quite unpleasant with the open source community in the past ten years. Due to licensing issues, Linux cannot include MP3 decoding or encoding functions on its base distribution, so many users can only provide MP3 support through third-party software libraries

Now, the MP3 patent has expired. And MP3 encoding and decoding will be officially supported by Fedora soon.

A friend tried ubuntu and asked me why such a common format as mp3 is not supported. Well... search it yourself.

Back to the topic, the mp3 playback of ubuntu16.04 actually needs to be solved together with the Chinese garbled characters in the player

//我这里使用的是ubuntu自带的播放器Rhythmbox
//1.安装gstreamer 
sudo apt install gstreamer1.0-fluendo-mp3
//请用tab键补全,因为版本可能不断更新
//这时候可能你的问题已经解决了,因为你的中文显示正常
//2.解决Rhythmbox中文乱码
//切换到音乐的目录,执行以下操作
mid3iconv -e GBK *.mp3
/* 
mid3iconv 命令主要是将原来mp3音乐文件的ID3信息转换
成了Unicode并用ID3v2的格式存回文件中。
*/
//此时,系统会提示你安装python-mutagen,安装
sudo apt install python-mutagen
//再执行
mid3iconv -e GBK *.mp3
//观察是否中文正常显示
//3.以上步骤都正常执行,并且成功
/*
进入Rhythmbox,随便点一首mp3的歌曲,
会弹出一个对话框,下载一个东西,我也不记得了,也没办法截图给你们
总之,直接点确认,下载,继续,都完成之后,应该就已经可以听mp3
*/

The above is just the operation of my own system, if there are errors or imperfections , I hope everyone will leave a message and correct me.

Recommended learning: "linux video tutorial"

The above is the detailed content of Why doesn't linux support mp3?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn