mplayer 中文路径支持问题

当我们在将媒体文件挂接为movie  player (mplayer)默认打开方式时经常会提示文件无法找到等错误信息。
错误提示信息
在其中的中文部分其实是通过url转码为用编码了。在这种情况下我们无法打开相关媒体文件。
原因可能是:mplayer的url解析写的不完善导致的,那么我们可以换一种打开方案。
在~/.local/share/applications 文件夹中将mplayer.desktop其中的信息修改一下。

[ Desktop Entry ]
Categories
= GTK ; AudioVideo;Audio;Video;Player;TV;
Comment = Multimedia player
Comment
[ de ] = Multimedia-Player
Comment
[ es ] = Reproductor multimedia
Comment
[ fr ] = Lecteur multimédia
Comment
[ it ] = Lettore multimediale
Comment
[ pl ] = Odtwarzacz multimediów
Encoding
= UTF- 8
Exec
= aoss gmplayer %f
GenericName
= Multimedia player
GenericName
[ pl ] = Odtwarzacz filmów
Icon
= mplayer.xpm
MimeType
= application/ogg ; application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska;
Name = MPlayer Movie Player
Name
[ pl ] = Odtwarzacz filmów MPlayer
NoDisplay
= false
Terminal
= false
TryExec
= aoss gmplayer
Type
= Application


将其中的 exec=gmplayer %U 改为 exec=gmplayer %f 即可.由于我的音频输出问题,我将oss输出转化为alsa音频输出,所以在前面加上了aoss

从中我们了解到文件详细的挂载信息和相关修改方法。主要是要学习linux系统可爱的架构理念,将一个个程式割裂开来,方便了我们个性化的配置。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值