LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2010, 12:30 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Playing a dvd-video image.


Hi:
Can a dvd-video image be played? And if so,
by what means? Thanks.
 
Old 03-07-2010, 01:58 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Yes it can; you would loop mount the image, and then play it using a video program such as vlc or mplayer. (This assumes that the image is not from a copy protected DVD.)
 
Old 03-07-2010, 02:36 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Naw, you shouldn't need to mount the image with most players, since they generally read the data straight from the dvd device, without mounting, and you can consider an image to be a device.

How you play a disc image depends on which player you're using though. VLC can open an iso the same way as with any other file. mplayer and xine are a bit more tricky, and require launching with a different command-line syntax.
Code:
mplayer dvd://1/path/to/iso     #with the number being the title to start with.

xine dvd:/full/path/to/iso     #note that xine requires the full path, it won't accept relative paths.
Other players will have different requirements. Check their documentation.

One good trick though is, as I mentioned before, that the iso can usually be treated as if it were the dvd device. Try replacing the program's drive setting (e.g. /dev/dvd) with the path to the iso. Chances are it will work.
 
Old 03-07-2010, 02:59 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks David. I casually have just compiled mplayer. One thing it takes me hours to do every time I want to play a cd or dvd with mplayer is the command syntax. But I know it's powerful.
Regards.
P.S.: In fact, there is a second part in this post. I compiled VIDEO_TS tracks for a double layer dvd with a program who left to images (files):
as I see it, one for the first layer, the other for the second one. I now can't burn it, no matter why, and it is my intention to play nonetheless from the image. Have you worked with double layer or can apply the theory to it? Bothers me to bother you.

Last edited by stf92; 03-07-2010 at 03:09 AM.
 
Old 03-07-2010, 03:37 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
One thing you can do to make it easier, if you plan to always use the same command, is to create a wrapper function or script for launching them. For example, try putting this function into your bashrc...
Code:
function mplayeriso() {

mplayer -mouse-movements dvdnav:///"$1"; 

}
And launch it with:
Code:
$ mplayeriso /path/to/image
This will open up the iso in mplayer with dvd navigation support, assuming yours is compiled with it enabled.

Last edited by David the H.; 03-07-2010 at 03:39 AM.
 
Old 03-07-2010, 08:32 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
About the function, I'll try it later. About mplayer invocation, what did actually worked was 'mplayer dvd://N -dvd-device /dev/hdc' for a dvd-video dvd in the drive. That is, it's impossible, by reading the list of syntax forms alone in the man page, to discover how to specify the video source unit (the drive that contains the dvd). But looking for options, I've found -dvd-device, which I never had before.

As to reading the two-fold image files, ... helpless. Mplayer starts OK, saying 'Playing ...' but then it stops without any message. So I'll consider this thread solved. Hasta la vista.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing a Video DVD in Mandriva 2009 x86_64 Powerpack Newb_Linux_Geek Mandriva 2 01-05-2009 04:54 PM
dvd-slideshow: when playing output video with mplayer width is too large kyroii Linux - Software 0 01-11-2008 02:22 AM
Playing video files directly from a DVD (avi, mpeg, etc.) rm_-rf_windows Linux - Software 3 06-25-2007 11:12 PM
HD led flashing when playing DVD and horrible image. Linux.tar.gz Linux - Hardware 4 01-12-2006 08:51 PM
image blinks when playing a dvd glenwood Linux - Newbie 3 04-01-2004 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration