Sunday, April 24, 2005

MythDVD installation

From the README:

Install libdvdread and libdvdread-devel packages (seem to have gotten these from the DAG repository):

yum install libdvdread
(requires libdvdcss)
yum install libdvdread-devel

# rpm -qa| egrep nasm
nasm-0.98.38-3

# yum install mjpegtools
# yum install mjpegtools-devel
# yum install xvidcore [readme says 'xvid']
# yum install a52dec [readme says 'liba52', ac3 audio]
# yum install a52dec-devel
# yum install libfame [and libfame-devel]
# yum install transcode [requires bunch of other pkgs]
# yum install mplayer

[root@be mythplugins]# ./configure --disable-all --enable-mythdvd --enable-transcode

# qmake mythplugins.pro
# make
# make install

REBOOT

Check mtd (myth transcoding daemon) can run:

[root@be ~]# mtd -n
2005-04-24 23:40:29.598 New DB connection, total: 1
mtd started at Sun Apr 24 23:40:29 2005
mtd is running on a host called be.donnlee.com
23:40:29: Waiting for connections/jobs
23:40:29: mtd is listening on port 2442

[ 'listening' is good; hit ctrl-c to exit ]

Run mtd in background:
[root@be ~]# mkdir /var/lib/mythdvd
[root@be ~]# mkdir /var/lib/mythdvd/temp
[root@be ~]# mtd -d

===

Setup in MythTV front-end GUI.
Top Level Myth Menu --> Setup --> DVD Settings.

But, the setup for MythDVD is MIA (not there!). Found this on myth-users:

> I have mythtv installed and working. And if I run rpm -qa it tells me
> I
> have mythdvd installed. But on mythfrontend in setup I do not see the
> screen for mythdvd. And if I run /usr/bin/mtd -n it tells me I do not
> have
> a DVD directory setup, and to run setup. Not sure where to run setup?
> Any help appreciated.
>
> Danny Aldham

I had this same problem with version 0.16.

If I remember correctly, after I installed mythmusic the mythdvd setup
showed up. I suspect there is something missing in the mythdvd setup
and it isn't creating the menus correctly.

===
So, installed mythmusic (see other blog entry). And yes, DVD settings are there now.

===

Device: /dev/dvd ?

My dmesg:
hdb: ATAPI 32X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)

===

Some mplayer cli lines from myth-users@

cli options:

-vo xv
-vo xvmc

-ac hwdts,hwac3,a52
-ao alsa:default
-ao alsa:device=hw=1.0

---

player command in mythvideo:
mplayer -ao alsa -ac hwac3, -fs -monitoraspect 1.7777 -quiet -vo xv %s

---

mplayer -ao alsa:device=hw=0.2 -ac hwac3 dvd://1

mplayer dvd:// -ao alsa:device=spdif -ac hwac3

My experience:
* Anything with "-ac hwac3" or "-ac hwdts,hwac3" and "-ao alsa:whatever" would result in a burst of static sound and then silence.
* "-ac" without "-ao" results in silence.
* "-ao" without "-ac" works if device is set properly.

Final mythdvd setting for mplayer:

mplayer dvd:// -dvd-device %d -fs -zoom -vo xv -ao alsa:device=hw=1.0

Later, noticed that picture was stretched. So added -monitoraspect 16:9 like so:

mplayer dvd:// -dvd-device %d -fs -zoom -vo xv -ao alsa:device=hw=1.0 -monitoraspect 16:9

This supports DD and DTS via spdif coax.

NOTE: In mplayer, alsa device is "hw=1.0" (dot, not comma). In alsa-speak, it's "1,0" for Card1, Device0 (maps to 'aplay -l' output).

Note, %d is the /dev device. In my system the dvd drive is /dev/hdb this is setup in another mythdvd screen.

NOTE: The DD led on my Denon doesn't turn on, but the audio is definitely DD surround sound. When playing a DTS dvd, the DTS led does indeed come on. Kinda weird, but it all works.

0 Comments:

Post a Comment

<< Home