LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Closed Thread
 
Search this Thread
Old 11-16-2008, 10:14 AM   #16
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196

I recommend MPlayer to play both DVD movies and AVI files.

To run it install at least essential codecs (or mplayer-codecs-all), mplayer, and libdvdcss. To play DVDs with DTS digital surround install also libdca. You'll find all of them in SlackBuilds.

In your ~/.mplayer directory add symbolic link subfont.ttf to some TTF font, for example: /usr/X11R6/lib/X11/fonts/TTF/LiberationSans-Regular.ttf.

In /etc/group add regular users (first_user, second_user, etc.) to at least audio and cdrom groups:

audio:x:17:root,first_user,second_user
cdrom:x:19:root,first_user,second_user

Check your DVD device with the command ls /dev/dvd*:

/dev/dvd1 /dev/dvdrw1 /dev/dvdwriter1

To play the first title from DVD use the command:

mplayer -alang en -slang en -dvd-device /dev/dvd1 -dvd-speed 1 dvd://1

If the movie uses interlaced frames add to above the switch -vf pp=lb.

To play movie.avi film with movie.srt subtitles use the command:

mplayer -ass -ass-color ffffff00 -sub movie.srt movie.avi

I hope I included above all the conditions necessary to play DVD movies and AVI files. If it doesn't work for you ask a question here.

Last edited by w1k0; 11-16-2008 at 10:23 AM.
 
Old 11-16-2008, 12:36 PM   #17
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,254

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by w1k0 View Post
I recommend MPlayer to play both DVD movies and AVI files.

To run it install at least essential codecs (or mplayer-codecs-all), mplayer, and libdvdcss. To play DVDs with DTS digital surround install also libdca. You'll find all of them in SlackBuilds.

In your ~/.mplayer directory add symbolic link subfont.ttf to some TTF font, for example: /usr/X11R6/lib/X11/fonts/TTF/LiberationSans-Regular.ttf.

In /etc/group add regular users (first_user, second_user, etc.) to at least audio and cdrom groups:

audio:x:17:root,first_user,second_user
cdrom:x:19:root,first_user,second_user

Check your DVD device with the command ls /dev/dvd*:

/dev/dvd1 /dev/dvdrw1 /dev/dvdwriter1

To play the first title from DVD use the command:

mplayer -alang en -slang en -dvd-device /dev/dvd1 -dvd-speed 1 dvd://1

If the movie uses interlaced frames add to above the switch -vf pp=lb.

To play movie.avi film with movie.srt subtitles use the command:

mplayer -ass -ass-color ffffff00 -sub movie.srt movie.avi

I hope I included above all the conditions necessary to play DVD movies and AVI files. If it doesn't work for you ask a question here.
I prefer Xine and/or VLC just because they support DVD menus (though I hear that may be coming to mplayer). There are some DVDs that are needlessly complex and experimenting with dvd://1 (or 2, 3, 4, 5, 6, 7, 8, etc.) still won't get the desired title. Playing it with Xine or VLC allows you to play it just like in a normal DVD player. A side benefit is that you can play out-of-region DVDs (like PAL DVDs with non-region zero coding, for me) without any effort. The only way I've found of doing this in Windows is by using VLC (mplayer works as well, but without the menus some DVDs are very frustrating).

Good tip about the libdvdcss as well -- I forgot you needed that (installed it very long ago). I'm pretty sure you only need it for encrypted DVDs though (which is basically all of them now).
 
Old 11-16-2008, 01:52 PM   #18
SqdnGuns
Member
 
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64 14.0
Posts: 981

Rep: Reputation: 88
Quote:
Originally Posted by T3slider View Post
I prefer Xine and/or VLC just because they support DVD menus (though I hear that may be coming to mplayer). There are some DVDs that are needlessly complex and experimenting with dvd://1 (or 2, 3, 4, 5, 6, 7, 8, etc.) still won't get the desired title. Playing it with Xine or VLC allows you to play it just like in a normal DVD player. A side benefit is that you can play out-of-region DVDs (like PAL DVDs with non-region zero coding, for me) without any effort. The only way I've found of doing this in Windows is by using VLC (mplayer works as well, but without the menus some DVDs are very frustrating).

Good tip about the libdvdcss as well -- I forgot you needed that (installed it very long ago). I'm pretty sure you only need it for encrypted DVDs though (which is basically all of them now).
With mplayer, install libdvdnav and also edit your mplayer.conf to use the mouse for menus.
 
Old 11-16-2008, 03:13 PM   #19
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by w1k0 View Post
mplayer -alang en -slang en -dvd-device /dev/dvd1 -dvd-speed 1 dvd://1
This is why I don't recommend to use mplayer for DVDs. Why bother with typing all this when you can just configure your system to automatically launch kaffeine when you insert dvd?

Quote:
Originally Posted by SqdnGuns View Post
With mplayer, install libdvdnav and also edit your mplayer.conf to use the mouse for menus.
Can you provide example .conf or link to documentation? I'm sure that I've tried to use mplayer for dvd-menus with libdvdnav, but result wasn't satisfactory.
 
Old 11-16-2008, 05:32 PM   #20
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Somebody once wrote that the stock Slackware is DRM (Digital Rights/Restrictions Management) compliant. I believe the statement is factual. Therefore the original poster offers a legitimate observation.

Slackware is not the only operating system that is "DRM compliant." Yet this is the Slackware forum and I'll stick to that topic.

The stock Slackware cannot play encrypted DVDs. Just about all commercial DVDs are encrypted. Yes, building the libdvdcss package is a straightforward exercise for typical Slackers, but is not straightforward for new Slackers. The easiest approach for new Slackers is to instead download a prebuilt package. Yet new Slackers first need to know that the stock Slackware does not support encrypted DVDs. Otherwise there is a disconnect and blank stares.

Installing libdvdcss is not the only multimedia stumper with the stock Slackware. With the stock Slackware the popular K3B tool does not support all advertised features. Ripping a video DVD is not possible with K3B in the stock Slackware. To rip DVDs K3B requires the following:

transcode and dependencies
a MPEG-4 encoder; either Xvid or DivX4/5
libdvdread
libdvdcss

These packages are not included in the stock Slackware. Further, K3B must be recompiled after those packages are installed. I doubt many typical computer users will be able to modify Slackware to support these multimedia tasks. Many can install packages but the result will be more blank stares when told to recompile a core package after installing those packages.

A significant number of people know that inserting a commercial DVD into a DVD appliance "just works." When they insert the DVD into a computer and nothing works the result is a blank stare.

Regarding having full access to the floppy drive, most new Slackers, especially those migrating from Windows or Macs, are not going to know about concepts such as mounting, user permissions, and groups. Most new Slackers are not going to know about the adduser front-end shell script for the useradd command. Most new Slackers are not going to know about /etc/skel. Most new Slackers are not going to know about /etc/default/useradd.

A post like the one starting this thread indicates frustration. Frustration indicates a disconnect at core levels, with the system design, user expectations, or typically --- both. I would guess that a significant number of people on this planet have no clue what to do when their car fails to start. Most computer users will respond the same way to the simple exercise of trying to access their floppy disks and DVDs and nothing works as expected.

With that said, I use xine to play encrypted DVDs. The xine front-end provides a decent imitation of a typical DVD appliance, particularly the simulation of the remote control. However, I had to build and install many packages to convert the stock Slackware into a more robust multimedia box.
 
Old 11-16-2008, 06:03 PM   #21
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by Woodsman View Post
Regarding having full access to the floppy drive, most new Slackers, especially those migrating from Windows or Macs, are not going to know about concepts such as mounting, user permissions, and groups. Most new Slackers are not going to know about the adduser front-end shell script for the useradd command. Most new Slackers are not going to know about /etc/skel. Most new Slackers are not going to know about /etc/default/useradd
Which simply means that the most important task for every "new slackware user" is to stop being newbie and learn required info. Being novice is not a good excuse. People probably were warned many times that this distribution isn't "easy", so if they installed it, they'll have to learn something before using it.

And another thing. Windows "power user" WILL know about access rights, because they exists in windows since win2000. Same might be true about Mac.

Last edited by ErV; 11-16-2008 at 06:12 PM.
 
Old 11-16-2008, 07:00 PM   #22
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
Quote:
Originally Posted by ErV View Post
Which simply means that the most important task for every "new slackware user" is to stop being newbie and learn required info. Being novice is not a good excuse. People probably were warned many times that this distribution isn't "easy", so if they installed it, they'll have to learn something before using it.
Praise Bob!
 
Old 11-16-2008, 08:10 PM   #23
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
If you'd like to use MPlayer with DVD menus follow these steps...

First install libdvdcss (1.2.10), libdvdnav (4.1.3), and libdvdread (4.1.3). Use the current versions of these programs (in parenthesis I pointed versions I used). You'll find them on SlackBuilds. I didn't use SlackBuilds scripts but compiled those libraries in traditional manner: ./configure && make && make install. (For libdvdnav and libdvdread I used ./configure2 command.) At the end run ldconfig command.

Then get essential codecs from http://www.mplayerhq.hu/ Download section (the current version is essential-20071007.tar.bz2) or mplayer-codecs-all from SlackBuilds (the current version is all-20071007.tar.bz2). I copied these codecs to /usr/local/lib/codecs/ directory.

Next get libdca (0.0.5) from SlackBuilds and install it in order to decode DTS coherent acoustic streams. I installed it in traditional manner.

Afterwards install MPlayer. Don't use outdated 1.0rc2 version. Take the current subversion. You can gain it with the command svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer. Because of the problems with the compilation of libavcodec from the current subversion (dev-SVN-r27942-4.2.3) I used tested mplayer-svn_r27865.tar.bz2 version taken from SlackBuilds. I configured it using the command ./configure --disable-dvdread-internal --codecsdir=/usr/local/lib/codecs --enable-gui --prefix=/opt/MPlayer and compiled and installed it with the command make && make install. If you'd like to use SlackBuilds script read the README file and use DVDNAV=yes command in mplayer.SlackBuild.

At the end get Blue theme from http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2, unpack it, and copy it's content to /opt/MPlayer/share/mplayer/skins/default/ directory.

If you followed my methods of compiling and installing these programs you need a few symbolic links in your system. In /usr/local/bin/ made symbolic links to gmplayer, mencoder, and mplayer programs from /opt/MPlayer/bin/ directory. In /usr/man/man1/ made symbolic links to mplayer.1 and mencoder.1 files from /opt/MPlayer/share/man/man1/ directory.

To use DVD menu run the command mplayer -alang en -slang en -dvd-device /dev/dvd1 -dvd-speed 1 -mouse-movements dvdnav://.

Last edited by w1k0; 11-16-2008 at 09:11 PM.
 
Old 11-16-2008, 08:51 PM   #24
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by w1k0 View Post
To use DVD menu run the command mplayer -alang en -slang en -dvd-device /dev/dvd1 -dvd-speed 1 -mouse-movements dvdnav://.
IMO it is still too much typing for simply watching DVD.
 
Old 11-16-2008, 09:38 PM   #25
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
Quote:
IMO it is still too much typing for simply watching DVD.
Put in your ~/.bashrc:

alias dvd='mplayer -dvd-device /dev/dvd1 -dvd-speed 1 -mouse-movements dvdnav://'
alias avi='mplayer -ass -ass-color ffffff00 -sub Sub Movie'
alias avi1='mplayer -ass -ass-color ffffff00 -sub Sub1 Movie1'
alias avi2='mplayer -ass -ass-color ffffff00 -sub Sub2 Movie2'

Use the command dvd to play DVD. Use the command avi to play AVI (you need the appropriate symbolic links to subtitles and to movie in the directory with the film). Use the commands avi1 and avi2 to play first and second AVI with subtitles (you need the appropriate symbolic links).
 
Old 11-16-2008, 11:11 PM   #26
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
Alternatively you can use more flexible scripts instead of aliases:

dvd:
Code:
#!/bin/sh

echo "$0 [slang alang]"

for device in dvd dvd1
do
    if [ -e /dev/$device ]; then DEVICE="-dvd-device /dev/$device"; fi
done

if [ "$DEVICE" == "" ]
then
    echo "There is no /dev/dvd* device..."
    exit
fi

if [ "$1" != "" ]; then SUBTITLES="-slang $1"; fi

if [ "$2" != "" ]; then LANGUAGE="-alang $2"; fi

mplayer $SUBTITLES $LANGUAGE $DEVICE -dvd-speed 1 -mouse-movements dvdnav://
avi:
Code:
#!/bin/sh

echo "$0 [number]"

mplayer -ass -ass-color ffffff00 -sub EN$1,ES$1,FR$1,DE$1,IT$1 Movie$1
In the second case you need symbolic links to different subtitles files (EN, ES, FR, DE, IT, etc.) as well as symbolic link to AVI file (Movie).

If you have movie in two parts use EN1, EN2, ..., Movie1, Movie2 symbolic links and run the script with the switch 1 or 2.

To cycle through subtitles languages use j key; to cycle through audio languages use # key.

Last edited by w1k0; 11-16-2008 at 11:30 PM.
 
Old 11-17-2008, 12:07 AM   #27
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
this thread is ON FIRE!
 
Old 11-17-2008, 01:26 PM   #28
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
What I find funny is that by the original thread poster being an #*@ he probably got more information than if he had said what he tried already. Now everybody has to pop in their two cents on how to fix his problem when he already solved it by going to windows. Lets hope he stays there instead of polluting the forums with more complaints.

I will give him this. It took several trys with google to get a valid hit within the top 3. I had to use "slackware play video dvd" to get information. I also couldn't get a good how to in the top three with smiler things to "linux play video dvd". However, MPlayer and some other video player webpages explained that libdvdcss was needed to decrypt dvds.

But then most users don't realize that they are paying for media that they can't easily make a personal back up copy of. If the common person would wake up to the restrictions that are being placed on them and STOP paying for encrypted dvds, then maybe cooperations would stop with the encryption... but no... it's too late for that. there is no going back now because a cooperation would only see a decrease in sales as evidence that more people are 'stealing' their crap.

OK sorry, this is off topic but either way... hasn't all pertinent information to the original topic already been given?
 
Old 11-17-2008, 02:38 PM   #29
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
Quote:
What I find funny is that by the original thread poster being an #*@ he probably got more information than if he had said what he tried already.
I don't suppose the author of that thread read it. He or she expressed his or her bitterness with Slackware and went back to Windows. In my opinion that thread is for the people who had, have or will have problems with playing DVDs in Linux. I don't refer my posts to any particular user. I refer them to all conscious Linux users.

Last edited by w1k0; 11-17-2008 at 02:59 PM.
 
Old 11-17-2008, 03:13 PM   #30
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by w1k0 View Post
Put ...
I know you can make script, etc. It is just personal preference. I simply don't think that mplayer is most suitable for playing DVDs.

Quote:
Originally Posted by w1k0 View Post
I don't suppose the author of that thread read it.
Of course he didn't. When people write something like that (i.e. rant without question), they often don't read replies.
 
  


Closed Thread

Tags
avi, dvd, menu, mplayer, troll


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Watch dvd in fedora 9 olracdor Linux - Newbie 4 08-20-2008 06:07 PM
Cannot watch DVD movie nerzack Linux - Hardware 2 03-08-2006 06:31 PM
windows on-line kids-games in lindows penguin_warrior Linspire/Freespire 1 05-17-2004 10:41 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration