[mythtv-users] Howto autmatic play an inserted music CD
Matthias Meyer
Matthias.Meyer at gmx.li
Wed Apr 4 19:42:24 UTC 2012
Am Montag 02 April 2012 schrieb Matthias Meyer:
> Hello,
>
> I'm using mythtv 0.24 under Debian wheezy.
>
> I've enabled in Setup/General/MediaMonitor:
> Monitor CD/DVD
> use new Media
>
> I've enabled too in Setup/Music Settings/General Settings:
> Automatically lookup CDs
> Automatically play CDs
>
> I will find the CD within the "Select Music" Menu and can play it. But it
> won't play automatically.
>
> mythfrontend -v playback,media,extra will log:
> 2012-04-02 22:43:16.956 /dev/sr0 No info or drive not ready
> 2012-04-02 22:43:18.131 /dev/sr0 No info or drive not ready
> 2012-04-02 22:43:19.569 /dev/sr0 No info or drive not ready
> 2012-04-02 22:43:20.904 /dev/sr0 Disk OK, type = MEDIATYPE_UNKNOWN
> 2012-04-02 22:43:20.905 /dev/sr0 Media changed
> 2012-04-02 22:43:20.906 MythMediaDevice::findMountPath() - mount of
> '/dev/sr0' not found.
> Device name/type | Current mountpoint
> -----------------+-------------------
> /dev/disk/by-uuid/7d013e2a-15cf-49f0-bde3-264276d2d099 |
/
> /dev/sda1 | /boot
> =================+===================
> 2012-04-02 22:43:21.426 /dev/sr0 Disk OK, type = MEDIATYPE_UNKNOWN
> 2012-04-02 22:43:21.430 /dev/sr0 Current status MEDIASTAT_OPEN
> 2012-04-02 22:43:21.533 found an audio disk
> 2012-04-02 22:43:21.533 Posting MediaEvent (MEDIATYPE_AUDIO,
MEDIASTAT_OPEN
> -> MEDIASTAT_USEABLE)
> 2012-04-02 22:43:21.533 Found a handler - 'MythMusic Media Handler 1/2'
> 2012-04-02 22:43:21.534 MythMusic: Storing CD device /dev/sr0
> 2012-04-02 22:43:21.552 XMLParse: LoadTheme using
> '/usr/share/mythtv/themes/metallurgy/music-ui.xml'
> 2012-04-02 22:43:22.035 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
> 2012-04-02 22:43:22.037 Disc useable, media unchanged. All good!
> 2012-04-02 22:43:22.097 DecoderHandler: Stopping decoder
> 2012-04-02 22:43:22.540 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
> 2012-04-02 22:43:22.542 Disc useable, media unchanged. All good!
> 2012-04-02 22:43:23.045 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
> 2012-04-02 22:43:23.047 Disc useable, media unchanged. All good!
>
> Thanks in advance
> Matthias
> --
> Don't Panic
>
If I start mythfrontend the first inserted CD will be played (see logfile
firstrun.txt, logged by mythfrontend -v playback,media).
If I eject the CD mythfrontend will get an access violation.
If I eject after leaving mythmusic with Esc I can eject the CD without an
access violation.
But if I insert the CD again mythtv doesn't play it automatically (see
logfile secondrun.txt, logged by mythfrontend -v playback,media too).
The difference in the second run seems to be:
2012-04-04 21:29:05.933 MythMusic: Storing CD device /dev/sr0
2012-04-04 21:29:05.945 XMLParse: LoadTheme using
'/usr/share/mythtv/themes/metallurgy/music-ui.xml'
2012-04-04 21:29:06.435 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:29:06.490 DecoderHandler: Stopping decoder
2012-04-04 21:29:06.941 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
where music-ui.xml doesn't appears on screen and the "DecoderHandler:
Stopping decoder"
Any hints?
Anybody else have the same problem?
Thanks in advance
Matthias
--
Don't Panic
-------------- next part --------------
2012-04-04 21:23:21.937 /dev/sr0 Tray open or no disc
2012-04-04 21:23:23.279 /dev/sr0 No info or drive not ready
2012-04-04 21:23:24.878 /dev/sr0 No info or drive not ready
2012-04-04 21:23:26.316 /dev/sr0 No info or drive not ready
2012-04-04 21:23:27.594 /dev/sr0 No info or drive not ready
2012-04-04 21:23:29.352 /dev/sr0 No info or drive not ready
2012-04-04 21:23:30.951 /dev/sr0 No info or drive not ready
2012-04-04 21:23:32.286 /dev/sr0 No info or drive not ready
2012-04-04 21:23:34.106 /dev/sr0 Disk OK, type = MEDIATYPE_UNKNOWN
2012-04-04 21:23:34.246 /dev/sr0 Media changed
2012-04-04 21:23:34.248 MythMediaDevice::findMountPath() - mount of '/dev/sr0' not found.
Device name/type | Current mountpoint
-----------------+-------------------
/dev/disk/by-uuid/7d013e2a-15cf-49f0-bde3-264276d2d099 | /
/dev/sda1 | /boot
=================+===================
2012-04-04 21:23:34.766 /dev/sr0 Disk OK, type = MEDIATYPE_UNKNOWN
2012-04-04 21:23:34.768 /dev/sr0 Current status MEDIASTAT_OPEN
2012-04-04 21:23:34.871 found an audio disk
2012-04-04 21:23:34.872 Posting MediaEvent (MEDIATYPE_AUDIO, MEDIASTAT_OPEN -> MEDIASTAT_USEABLE)
2012-04-04 21:23:34.872 Found a handler - 'MythMusic Media Handler 1/2'
2012-04-04 21:23:34.872 MythMusic: Storing CD device /dev/sr0
2012-04-04 21:23:34.917 New DB connection, total: 2
2012-04-04 21:23:34.942 Connected to database 'mythconverg' at host: 192.168.0.40
2012-04-04 21:23:35.071 New DB connection, total: 3
2012-04-04 21:23:35.100 Connected to database 'mythconverg' at host: 192.168.0.40
2012-04-04 21:23:35.375 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:35.879 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:36.070 XMLParse: LoadTheme using '/usr/share/mythtv/themes/metallurgy/music-ui.xml'
2012-04-04 21:23:36.389 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:36.901 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:37.150 CD status has changed.
2012-04-04 21:23:38.207 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:39.258 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:40.100 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:40.872 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:41.532 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:42.206 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:42.758 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:43.420 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:44.100 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:44.874 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:45.535 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:46.341 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:47.042 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:48.096 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:48.927 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:49.554 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:50.341 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:51.397 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:52.445 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:53.019 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:53.120 AO: Opening audio device 'surround41:CARD=SB,DEV=0' ch 2(2) sr 44100 sf signed 16 bit reenc 0
2012-04-04 21:23:53.126 Track 0 = 1.cda
2012-04-04 21:23:53.127 Now playing '1.cda'
2012-04-04 21:23:53.127 DecoderIOFactory: Opening Local File 1.cda
2012-04-04 21:23:53.128 decoder handler is ready, decoding 1.cda
2012-04-04 21:23:53.647 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:23:53.650 MythCDROMLinux::setSpeed() - Limiting CD/DVD Speed to 354KB/s
2012-04-04 21:23:53.678 MythCDROMLinux::setSpeed() - CD/DVD Speed Set Successful
2012-04-04 21:23:56.519 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04
-------------- next part --------------
2012-04-04 21:28:43.118 /dev/sr0 Tray open or no disc
2012-04-04 21:28:43.130 MythMediaDevice::findMountPath() - mount of '/dev/sr0' not found.
Device name/type | Current mountpoint
-----------------+-------------------
/dev/disk/by-uuid/7d013e2a-15cf-49f0-bde3-264276d2d099 | /
/dev/sda1 | /boot
=================+===================
2012-04-04 21:28:43.135 Posting MediaEvent (MEDIATYPE_AUDIO, MEDIASTAT_USEABLE -> MEDIASTAT_OPEN)
2012-04-04 21:28:43.676 /dev/sr0 Tray open or no disc
2012-04-04 21:28:44.182 /dev/sr0 Tray open or no disc
2012-04-04 21:28:44.689 /dev/sr0 Tray open or no disc
2012-04-04 21:28:45.195 /dev/sr0 Tray open or no disc
2012-04-04 21:28:45.701 /dev/sr0 Tray open or no disc
2012-04-04 21:28:46.207 /dev/sr0 Tray open or no disc
2012-04-04 21:28:46.713 /dev/sr0 Tray open or no disc
2012-04-04 21:28:47.219 /dev/sr0 Tray open or no disc
2012-04-04 21:28:47.726 /dev/sr0 Tray open or no disc
2012-04-04 21:28:48.232 /dev/sr0 Tray open or no disc
2012-04-04 21:28:48.738 /dev/sr0 Tray open or no disc
2012-04-04 21:28:49.244 /dev/sr0 Tray open or no disc
2012-04-04 21:28:49.750 /dev/sr0 Tray open or no disc
2012-04-04 21:28:50.256 /dev/sr0 Tray open or no disc
2012-04-04 21:28:50.763 /dev/sr0 Tray open or no disc
2012-04-04 21:28:51.269 /dev/sr0 Tray open or no disc
2012-04-04 21:28:51.776 /dev/sr0 Tray open or no disc
2012-04-04 21:28:53.001 /dev/sr0 No info or drive not ready
2012-04-04 21:28:54.759 /dev/sr0 No info or drive not ready
2012-04-04 21:28:56.197 /dev/sr0 No info or drive not ready
2012-04-04 21:28:57.635 /dev/sr0 No info or drive not ready
2012-04-04 21:28:59.393 /dev/sr0 No info or drive not ready
2012-04-04 21:29:00.832 /dev/sr0 No info or drive not ready
2012-04-04 21:29:02.110 /dev/sr0 No info or drive not ready
2012-04-04 21:29:03.600 /dev/sr0 No info or drive not ready
2012-04-04 21:29:05.320 /dev/sr0 Disk OK, type = MEDIATYPE_UNKNOWN
2012-04-04 21:29:05.323 /dev/sr0 Media changed
2012-04-04 21:29:05.325 MythMediaDevice::findMountPath() - mount of '/dev/sr0' not found.
Device name/type | Current mountpoint
-----------------+-------------------
/dev/disk/by-uuid/7d013e2a-15cf-49f0-bde3-264276d2d099 | /
/dev/sda1 | /boot
=================+===================
2012-04-04 21:29:05.829 /dev/sr0 Disk OK, type = MEDIATYPE_UNKNOWN
2012-04-04 21:29:05.831 /dev/sr0 Current status MEDIASTAT_OPEN
2012-04-04 21:29:05.931 found an audio disk
2012-04-04 21:29:05.932 Posting MediaEvent (MEDIATYPE_AUDIO, MEDIASTAT_OPEN -> MEDIASTAT_USEABLE)
2012-04-04 21:29:05.932 Found a handler - 'MythMusic Media Handler 1/2'
2012-04-04 21:29:05.933 MythMusic: Storing CD device /dev/sr0
2012-04-04 21:29:05.945 XMLParse: LoadTheme using '/usr/share/mythtv/themes/metallurgy/music-ui.xml'
2012-04-04 21:29:06.435 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:29:06.490 DecoderHandler: Stopping decoder
2012-04-04 21:29:06.941 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:29:07.446 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:29:07.951 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:29:08.456 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
2012-04-04 21:29:08.961 /dev/sr0 Disk OK, type = MEDIATYPE_AUDIO
More information about the mythtv-users
mailing list