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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-01-2004, 12:21 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 7
Rep:
|
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
|
|
|
09-01-2004, 12:37 PM
|
#2
|
Member
Registered: Aug 2004
Distribution: LFS
Posts: 350
Rep:
|
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.
|
|
|
09-01-2004, 02:05 PM
|
#3
|
LQ Newbie
Registered: Sep 2004
Posts: 7
Original Poster
Rep:
|
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
|
|
|
09-01-2004, 02:47 PM
|
#4
|
Member
Registered: Aug 2004
Distribution: LFS
Posts: 350
Rep:
|
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.
|
|
|
09-01-2004, 03:39 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
09-02-2004, 01:10 AM
|
#6
|
LQ Newbie
Registered: Sep 2004
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
09-02-2004, 01:34 AM
|
#7
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
09-03-2004, 06:20 AM
|
#8
|
Member
Registered: Aug 2004
Distribution: LFS
Posts: 350
Rep:
|
Here's a howto that shows how build a compliant iso for dvd video
Mad.
|
|
|
01-01-2010, 09:14 AM
|
#9
|
LQ Newbie
Registered: Jan 2010
Posts: 5
Rep:
|
Quote:
Originally Posted by acid_kewpie
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.
|
|
|
01-02-2010, 04:59 PM
|
#10
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
01-03-2012, 04:55 PM
|
#11
|
LQ Newbie
Registered: Jan 2012
Posts: 1
Rep: 
|
Quote:
Originally Posted by Electro
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
|
|
|
All times are GMT -5. The time now is 03:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|