LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2004, 12:21 PM   #1
darn dao
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
mplayer - play dvd's stored on harddisk


Hi,

I've just started using debian, and installed a couple of programs including mplayer. The problems is that I don't know how to play dvd's that i've decrypted to the harddisk. I've searched google and this forum for an answed but only found a command like "mplayer dvd://" which tries to play the dvd currently in my dvd-rom.
So does anyone know a command which plays a DVD (VIDEO_TS) folder located on a harddisk?

Regards,
Darn dao
 
Old 09-01-2004, 12:37 PM   #2
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
One method is to rip your dvd to an iso image, then mount the image using the loop back device. Then configure mplayer to use /dev/loopx (x>=0) as its input device. This also works for xine player.

You will need a kernel with loop back support compiled in.

Mad.

 
Old 09-01-2004, 02:05 PM   #3
darn dao
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Oke,

I'm using debian for a couple of day's now, so i'm a bit new to all this. I've checked /dev for loop device with the "ls -l loop*" command. This gave the following result:

loop0
loop1
...
loop7

Are these the loopback devices you'r talking about?

I've checked the mplayer man page for the command which sets the input device. When I enter the command "mplayer --cdrom-device /dev/loopX", mplayer gave me the following error:

Playing /dev/loop3.
File not found: '/dev/loop3'
Failed to open /dev/loop3

Is this because I have not mounted anyting yet?

After some searching I found mkisofs to ceate iso files. What command do I need to use to create an .iso of an VIDEO_TS directory?

Regards,
Darn Dao
 
Old 09-01-2004, 02:47 PM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Create an empty directory, for this example I'll call it dvd. Move the VIDEO_TS directory and its contents to the dvd folder, then simply run

Code:
mkisofs -dvd-video -v -o mydvd.iso dvd
then mount the image , usually you need to be root for this

Code:
mount -o loop -t auto mydvd.iso /mnt
The mount point I have used here, /mnt must exist for this to work.

HTH

Mad.
 
Old 09-01-2004, 03:39 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's all a lot lot lot simpler than this...

sopy whatever you want (preferably VIDEO_TS completely to whereever you want. then just play it:

mplayer -dvd-device /home/chuck_norris/wherever/ dvd://1

simple as that.... just pretend it's a dvd still!
 
1 members found this post helpful.
Old 09-02-2004, 01:10 AM   #6
darn dao
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
thnx acid_kewpie that did the trick.

madluther, i'm trying your method too, but when I want to make a .iso mkisofs gives me the following error:

mkisofs -dvd-video -v -o /home/username/dvdname.iso /mnt/temp/DVD_NAME/

Scanning /mnt/temp/DVD_NAME/
Scanning /mnt/temp/DVD_NAME/video_ts
mkisofs: Unable to make a DVD-Video image.

I decrypted the dvd using vobcopy and the -m option.

Regards,
Darn Dao

Last edited by darn dao; 09-02-2004 at 01:11 AM.
 
Old 09-02-2004, 01:34 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can play vob files with mplayer. Type "mplayer dvd.vob". It will then play the file. If there are multiple vob files, you will have to make a playlist.

If you want to use loop device with mplayer you will have to use losetup first. You can use mount but it can be too much work finding what loop devices is your image.
 
Old 09-03-2004, 06:20 AM   #8
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Here's a howto that shows how build a compliant iso for dvd video

Mad.
 
Old 01-01-2010, 09:14 AM   #9
ttguy
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
it's all a lot lot lot simpler than this...

copy whatever you want (preferably VIDEO_TS completely to wherever you want. then just play it:

mplayer -dvd-device /home/chuck_norris/wherever/ dvd://1

simple as that.... just pretend it's a dvd still!

Old thread. But I found this on a google search. And it answered a question I had. I can confirm the above still works on a Ubuntu Karmic install.

However, you don't get to use the DVD menus with the above command. It just plays title 1 (dvd://1). I had to try dvd://4 until I actually found the main title on my DVD files.

I suggest the better option is to use GNOME Mplayer and choose

File-> Disk->Open DVD from folder with menus

This allows you to select a VIDEO_TS folder from the HDD and it plays it like a DVD - with menus.
 
Old 01-02-2010, 04:59 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
It took a few years for Mplayer to include DVD navigation ability. The main developer that wrote Mplayer did not want it in for some odd reason. Since he left, DVD navigation slowly got included. To use Mplayer's DVD navigation use dvdnav use the following command.

mplayer -nocache dvdnav://

Of course, if you are using a pre-compiled package of Mplayer, you have to make sure that the maintainer includes it. Also if you are compiling Mplayer your self, you have to include it.

A short hand command to use "mplayer -identify [file]" is "midentify [file]". It comes in handy if you need to know what title is the main movie with out going through the sloppy menu system. Another command to know what title for the DVD is the main movie is lsdvd.
 
Old 01-03-2012, 04:55 PM   #11
LeoR
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Electro View Post
A short hand command to use "mplayer -identify [file]" is "midentify [file]". It comes in handy if you need to know what title is the main movie with out going through the sloppy menu system.
Thanks for the tip. Was exactly what I needed, not what I searched for
But the "mplayer -identify [file]" command still plays the file whereas the wrapper shellscript only outputs the info. For my distro (Kubuntu) it was not on the path but under /usr/share/mplayer/midentify.sh
 
  


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
can't play DVD's gerardo069872 Linux - Hardware 11 11-09-2005 03:58 PM
what rpm or settingmakes mplayer play all dvd's caleb star Linux - Software 2 07-29-2004 09:13 AM
Mplayer won't play DVD's kaega2 Mandriva 3 06-10-2004 11:29 PM
How to play DVD's? Braveheart1980 Linux - General 6 01-25-2004 07:00 PM
Cant get Mplayer to play DVD's SlvrDakotaRT Linux - Software 11 02-18-2003 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 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