MPlayer とGUI
Linuxの動画プレーヤーとしてはXine、Totem、MPlayer等が有名で、中でも人気の高いMPlayerにはGUIが付属したGmplayerとコマンド操作のMPlayerがあります。
MPlayer標準のconfigureファイルは
Optional features:
--disable-mencoder disable MEncoder (A/V encoder) compilation [enable]
--disable-mplayer disable MPlayer compilation [enable]
--enable-gui enable GMPlayer compilation (GTK+ GUI) [disable]
--enable-gtk1 force using GTK 1.2 for the GUI [disable]
--disable-largefiles disable support for files > 2GB [enable]
このようにGUIがデフォルトでdisableになっているので、Gmplayerをビルドするには --enable-gui をつける必要がありますが、デフォルトは熟慮された理由があり実はGUIなしの方が動画・音楽再生には(操作性/システム負荷等)メリットが多いからです。
操作や設定はmanやhelpにありますので、拡張子とファイルマネージャの関連付けを以下に記載します。
・nautilusの場合
次の内容で /usr/share/applications/mplayer.desktopを作成
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=MPlayer
GenericName=Multimedia player
Comment=Multimedia player
Icon=mplayer.xpm
TryExec=mplayer -idx
Exec=mplayer -idx
Terminal=true
NoDisplay=false
Categories=GTK;Application;AudioVideo;Audio;Video;Player;TV;
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;
※この設定で、ファイルクリック後システム標準のコンソール経由でmplayerの再生開始
・PCManfmの場合
次の内容で ~/.local/share/applications/xtermを作成
[Desktop Entry]
Encoding=UTF-8
Name=xterm
Exec=xterm -e mplayer -idx %F
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;video/x-ogm+ogg;
Icon=exec
NoDisplay=true
※この設定で、ファイルクリック後xterm経由でmplayerの再生開始
もちろん上記以外にも色々な組合せで動作させることが可能です。


最近のコメント