LinHES Forums
http://forum.linhes.org/

How can i play Xvid whit a filelist from a dvd/cd ?
http://forum.linhes.org/viewtopic.php?f=11&t=5456
Page 1 of 2

Author:  Coma [ Fri Jul 22, 2005 1:21 pm ]
Post subject:  How can i play Xvid whit a filelist from a dvd/cd ?

Hi

i got MythTV up and running... relay a nice system. But how do i play the dvd´s and cd´s i got whit Xvid/DivX and so on, on them?

i found out i could go to mpeg4, but then i just starts to play them from the start, and i kinda wanted a file list view, so i could select the video i wanted.

is this possible?

Author:  Luthair [ Fri Jul 22, 2005 2:57 pm ]
Post subject: 

This isn't quite what you're looking for but might work for you, it lets you include a playlist on disks.

The change is pretty simple, I came up with this recently but haven't gotten around to actually trying it yet :)

We need to edit the script which KnoppMyth calls when the mpeg4 button is pressed:

Code:
su
nano /usr/local/bin/divx.sh


The contents should be changed to:

Code:
#!/bin/bash
mount /cdrom
if [-e "/cdrom/index.txt" ]
then
  /usr/bin/mplayer -fs -vo xv -cache 8192 -playlist /cdrom/index.txt
else
  /usr/bin/mplayer -fs -vo xv -cache 8192 /cdrom/*
fi
umount /cdrom


Making Playlists

In both Linux and Windows you need to change to the directory which contains the files

Under windows:
Code:
dir /b > index.txt


Under Linux:
Code:
find -print > index.txt


I did test the script change, but as I mentioned I haven't gotten around to burning a disk with a playlist.

Author:  Luthair [ Fri Jul 22, 2005 3:00 pm ]
Post subject: 

Actually thinking about it you might need a

cd /cdrom/

after the mount command in the script and then switch back to the original working directory.

Author:  Coma [ Fri Jul 22, 2005 3:18 pm ]
Post subject: 

the playlist idea, wouldent that mean i would have to include a playlist on all my cd´s dvd´s .... ?

i thought i would be possible to include the dvdrom as a drive or something, and get a listing from it?

Author:  Coma [ Fri Jul 22, 2005 3:41 pm ]
Post subject: 

alright tryed this,

ln -s /dev/cdrom /myth/video

that dident work, so i am out for ideas.
i kinda thought that it was possible, to view a the contense from a dvd/cd rater than having to chose next all the time?

Author:  Luthair [ Fri Jul 22, 2005 4:13 pm ]
Post subject: 

Coma wrote:
the playlist idea, wouldent that mean i would have to include a playlist on all my cd´s dvd´s .... ?

i thought i would be possible to include the dvdrom as a drive or something, and get a listing from it?


Yes unfortunately you'd have to include them on the disks, the only real advantage with playlists is that you have control over the order files are played. The default script just plays all the files in the directory in whatever order they happen to occur.

A symbolic link might work if the disks are automatically mounted, but you'd need to use Options-VideoManager every time you switch.

Author:  Coma [ Fri Jul 22, 2005 4:18 pm ]
Post subject: 

crap this kinda ruins everything!

cant get the symbolic link to work either, both when its mounted and when its not...

tryed /dev/dvd
/dev/cdrom
tryed to mount it as /mnt/dvd
and them make a link to /mnt/dvd, the problem i guess is it dosent list the map inside /video

the funny thing is, i kinda thought this was a feature, after all it kinda sucks you just cant chose the file from the disk, mostly every cheap divx player even support this, there must be some way! or else its a major design glich!

Author:  tjc [ Fri Jul 22, 2005 5:30 pm ]
Post subject: 

Turning off the automounter usually helps... If memory serves (I'm away from the KnoppMyth box) you can do this from setup & utilities -> setup -> general -> ...

Author:  Coma [ Fri Jul 22, 2005 5:48 pm ]
Post subject: 

where is the dvd mounted as default?
if the automounter is turned off, wouldent that mean i would have to mouch it manualy each time i change dvd?

what i have done now is:

mounted the dvd in /myth/video

now i can see the list of files now, but i cant start them..
nothing happens when i press enter, or space, anyone?

Author:  Coma [ Sat Jul 23, 2005 9:52 am ]
Post subject: 

think i am getting closer to a solution:

what i have done now is

ln -s /cdrom /myth/video

this creates a symbolic link to cdrom in /myth/video
so when i go to the video screen, i will get a dir called cdrom, wich contains what on my cdrom..

only problem is now, i have to remove the link, and restart in order to change cd.. (the dvd rom just wont open else)

Author:  tjc [ Sat Jul 23, 2005 11:27 am ]
Post subject: 

Dude, you're so far out in the weeds that I don't how to start getting you back on the road... :shock: You don't need to mount the DVD and don't even want to, doing over the top of /mythtv/video is a bad idea for a couple reasons, and ... well... you're just way, way out in the weeds...

First - as root run the script:
Code:
/usr/local/bin/cd_link.sh

This should se up the proper symlinks and permissions on the device.

Then under the setup menus go to:
Utilities/Setup -> Setup -> General -> 5th screen
And turn OFF (uncheck) the Monitor CD/DVD checkbox.

Next go to:
Utilities/Setup -> Setup -> Media Settings -> DVD Settings -> General Settings
and make sure that Location of DVD device is set to /dev/dvd

Then go up one level and over to:
Utilities/Setup -> Setup -> Media Settings -> DVD Settings -> Play Settings
and make sure the DVD player command is set to
xine -pfhq --auto-scan dvd

Finally to play a DVD, go to:
Optical Disks -> Play DVD

If you still get an error, it's mostly likely because the DVD is encrypted. To fix that fire up your favorite word processor and fire off letters to your national Reps (Senator, Congressmen, ...) and tell them that the DMCA and it like are bad law that tramples consumer rights for the benefit of a small special interest group and they need to get it off the books ASAP.

Author:  Coma [ Sat Jul 23, 2005 12:09 pm ]
Post subject: 

tnx for the help. but its not playing a DVD that is the problem.

I would like to se the contense of a DVD/CD that contains:
mpg
avi
or what ever

so i can select the movie file i want to see, instead of having to just start from and end, and chose next, and next. As i would have to do, if i play it whit mpeg4 icon!

as far i can see, your solution is fo rplaying a normal dvd

Author:  Luthair [ Sat Jul 23, 2005 12:11 pm ]
Post subject: 

tjc wrote:
Dude, you're so far out in the weeds that I don't how to start getting you back on the road... :shock: You don't need to mount the DVD and don't even want to, doing over the top of /mythtv/video is a bad idea for a couple reasons, and ... well... you're just way, way out in the weeds...

First - as root run the script:
Code:
/usr/local/bin/cd_link.sh

This should se up the proper symlinks and permissions on the device.

Then under the setup menus go to:
Utilities/Setup -> Setup -> General -> 5th screen
And turn OFF (uncheck) the Monitor CD/DVD checkbox.

Next go to:
Utilities/Setup -> Setup -> Media Settings -> DVD Settings -> General Settings
and make sure that Location of DVD device is set to /dev/dvd

Then go up one level and over to:
Utilities/Setup -> Setup -> Media Settings -> DVD Settings -> Play Settings
and make sure the DVD player command is set to
xine -pfhq --auto-scan dvd

Finally to play a DVD, go to:
Optical Disks -> Play DVD

If you still get an error, it's mostly likely because the DVD is encrypted. To fix that fire up your favorite word processor and fire off letters to your national Reps (Senator, Congressmen, ...) and tell them that the DMCA and it like are bad law that tramples consumer rights for the benefit of a small special interest group and they need to get it off the books ASAP.


I think you might have misunderstood what he's looking for (it sounds like you're giving instructions for DVD Playback), he wants to be able to select specific xvid files from optical disks.

Author:  cesman [ Sun Jul 24, 2005 10:10 pm ]
Post subject: 

Coma wrote:
tnx for the help. but its not playing a DVD that is the problem.

I would like to se the contense of a DVD/CD that contains:
mpg
avi
or what ever

so i can select the movie file i want to see, instead of having to just start from and end, and chose next, and next. As i would have to do, if i play it whit mpeg4 icon!

as far i can see, your solution is fo rplaying a normal dvd
What you asking isn't currently possible. Since its earliest releases, KnoppMyth has included a script to play a MPEG-4 CD (basically it plays whatever is on the CD).

Author:  Coma [ Mon Jul 25, 2005 3:06 pm ]
Post subject: 

alright, that´s realy sad!
And i know about the mpeg4 stuff, just iritating u have to jump to next, and next until u find what u want to see!

any way, i kinda almost had it working, by some ODD way i manage to add cdrom to the video part, so u could select between video and cdrom,, just dont know how i did it, and you couldent eject the cd...

sure there isent some way to do it?

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/