Author |
Message |
Coma
|
Posted: Fri Jul 22, 2005 1:21 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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?
|
|
Top |
|
 |
Luthair
|
Posted: Fri Jul 22, 2005 2:57 pm |
|
Joined: Thu Apr 28, 2005 4:00 pm
Posts: 37
|
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 PlaylistsIn 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.
|
|
Top |
|
 |
Luthair
|
Posted: Fri Jul 22, 2005 3:00 pm |
|
Joined: Thu Apr 28, 2005 4:00 pm
Posts: 37
|
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.
|
|
Top |
|
 |
Coma
|
Posted: Fri Jul 22, 2005 3:18 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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?
|
|
Top |
|
 |
Coma
|
Posted: Fri Jul 22, 2005 3:41 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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?
|
|
Top |
|
 |
Luthair
|
Posted: Fri Jul 22, 2005 4:13 pm |
|
Joined: Thu Apr 28, 2005 4:00 pm
Posts: 37
|
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.
|
|
Top |
|
 |
Coma
|
Posted: Fri Jul 22, 2005 4:18 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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!
|
|
Top |
|
 |
tjc
|
Posted: Fri Jul 22, 2005 5:30 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
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 -> ...
|
|
Top |
|
 |
Coma
|
Posted: Fri Jul 22, 2005 5:48 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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?
|
|
Top |
|
 |
Coma
|
Posted: Sat Jul 23, 2005 9:52 am |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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)
|
|
Top |
|
 |
tjc
|
Posted: Sat Jul 23, 2005 11:27 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Dude, you're so far out in the weeds that I don't how to start getting you back on the road...  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.
|
|
Top |
|
 |
Coma
|
Posted: Sat Jul 23, 2005 12:09 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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
|
|
Top |
|
 |
Luthair
|
Posted: Sat Jul 23, 2005 12:11 pm |
|
Joined: Thu Apr 28, 2005 4:00 pm
Posts: 37
|
tjc wrote: Dude, you're so far out in the weeds that I don't how to start getting you back on the road...  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 screenAnd turn OFF (uncheck) the Monitor CD/DVD checkbox. Next go to: Utilities/Setup -> Setup -> Media Settings -> DVD Settings -> General Settingsand make sure that Location of DVD device is set to /dev/dvdThen go up one level and over to: Utilities/Setup -> Setup -> Media Settings -> DVD Settings -> Play Settingsand make sure the DVD player command is set to xine -pfhq --auto-scan dvdFinally to play a DVD, go to: Optical Disks -> Play DVDIf 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.
|
|
Top |
|
 |
cesman
|
Posted: Sun Jul 24, 2005 10:10 pm |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
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).
_________________ cesman
When the source is open, the possibilities are endless!
|
|
Top |
|
 |
Coma
|
Posted: Mon Jul 25, 2005 3:06 pm |
|
Joined: Sat Jul 02, 2005 7:46 am
Posts: 34
|
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?
|
|
Top |
|
 |