Treat ISO as DVD in Gnome-MPlayer

September 13, 2008 at 6:38 pm 2 comments

Wow, it’s been a while!

I’ve been using Zenwalk Linux 5.0 (5.2 seems to break my DVD drive) for most of the summer. I really like it and I think I finally found a video player I like — Gnome-player.

One of the features that is missing from Gnome-MPlayer is the ability to treat a DVD iso as the dvd device like in MPlayer or GXine. Adding a dvd-device section to ~/.mplayer/config should fix the problem.

You can take this one step further by adding a custom action for Thunar. Here’s the custom action: ~/dskchng.sh %f

And here is the dskchng.sh script


#!/bin/sh
# usage: dskchng.sh full_dvd_iso_path
# TODO: add a dvd-device line if it does not exist
# TODO: there should be a way to have awk update infile so the
# whole output redirection, mv stuff is not required
awk -v dev=$1 'BEGIN{OFS=FS="="} /dvd-device/{$2=dev}{print}' ~/.mplayer/config > ~/dskchng.tmp && mv ~/dskchng.tmp ~/.mplayer/config && g-mplayer dvdnav://

To change the dvd-device back to /dev/dvd just do ~/dskchnge.sh /dev/dvd

I haven’t tested this yet, but changing the thunar action to ~/.dskchng.sh %f; ~/dskchng.sh /dev/dvd should change the device back automatically when Gnome-MPlayer is closed.

It isn’t the disk changer application I’ve always wanted, but if I could somehow get Thunar to show a video thumbnail for the ISO’s it would be a step in the right direction.

Entry filed under: Linux.

It’s Official

2 Comments Add your own

  • 1. slacker  |  October 31, 2008 at 4:47 am

    Well i tried Zenwalk. it’s usable but i lost the feeling of having a stable, rock solid and easy to maintain distribution. I will use and rest with Slackware for a very long time maybe my entire life. This is quality software!!

    I tried for some time the mainstream distros, called ubuntu, SuseLinux and mandriva what i don’t like of them is the installer. They are again bloated with annoying bugs. Installing a lot of graphical-based config tools pissed me off. Nobody should forgot the power of the command line in Linux.

    Slackware is definetely the Rolls Royce of operating systems.

    Reply
  • 2. laralong4820  |  April 8, 2016 at 6:04 pm

    But that’s what I was getting at too! Sort of. LOL. Click http://d2.ae/hool09080

    Reply

Leave a comment

Trackback this post  |  Subscribe to the comments via RSS Feed


Feeds