Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#6617 closed defect (fixed)

MythVideo is not seeing dvds but Myth transcode Daemon Does

Reported by: anonymous Owned by: Anduin Withers
Priority: major Milestone: unknown
Component: Plugin - MythVideo Version: 0.21
Severity: high Keywords:
Cc: Ticket locked: no

Description

When using Mytharchive to import dvds the mtd is launched in the background successfully and in mtd.log it confirms that it can see the dvd but in the mythfrontend portion it still says waiting for dvd.

mtd.log


17:45:49: Waiting for connections/jobs 17:45:49: mtd is listening on port 2442 17:45:49: a client socket has been opened 17:45:50: DVD inserted: Movie_DVD 17:45:50: : Title 1 is of type 4 (dvdinput table) 17:45:50: : Title 2 is of type 4 (dvdinput table) 17:45:50: : Title 3 is of type 4 (dvdinput table) 17:45:50: : Title 4 is of type 4 (dvdinput table) 17:46:23: a client socket has been closed


I have looked through messages, mythbackend.log and also mtd.log with no hint of a warning or error message making this very hard to figure out. I am not sure if this is gentoo related or if this is happening with other distributions as well.

Playing dvds and launching already backed up dvds work correctly. Also double checked the permissions of mytharchive which were fine but I gave it 777 anyways just to be sure but no luck.

mytharchive-0.21_p18355 mythvideo-0.21_p17595

USE="aac alsa dvb dvd mmx opengl perl python video_cards_nvidia" mythtv-0.21_p19961-r2

ARCH=amd64

Attachments (2)

old_mythttv_settings.bak (102.2 KB) - added by anonymous 15 years ago.
The Old MythTV Settings
new_mythtv_settings.bak (24.7 KB) - added by anonymous 15 years ago.
The New MythTV Settings(Fresh Install)

Download all attachments as: .zip

Change History (19)

comment:1 in reply to:  description Changed 15 years ago by satfan39

I have the same problem in my environment; I can watch DVDs but I can not import them.

My environment: Ubuntu Jaunty 9.04 with kernel 2.6.28-12-server. I used ./configure --prefix=/usr --enable-vdpau --dvb-path=... enable-xvmc-opengl --enable-opengl-vsync --disable-ssse3 --enable-proc-opt --disable-firewire

Replying to anonymous:

When using Mytharchive to import dvds the mtd is launched in the background successfully and in mtd.log it confirms that it can see the dvd but in the mythfrontend portion it still says waiting for dvd.

mtd.log


17:45:49: Waiting for connections/jobs 17:45:49: mtd is listening on port 2442 17:45:49: a client socket has been opened 17:45:50: DVD inserted: Movie_DVD 17:45:50: : Title 1 is of type 4 (dvdinput table) 17:45:50: : Title 2 is of type 4 (dvdinput table) 17:45:50: : Title 3 is of type 4 (dvdinput table) 17:45:50: : Title 4 is of type 4 (dvdinput table) 17:46:23: a client socket has been closed


I have looked through messages, mythbackend.log and also mtd.log with no hint of a warning or error message making this very hard to figure out. I am not sure if this is gentoo related or if this is happening with other distributions as well.

Playing dvds and launching already backed up dvds work correctly. Also double checked the permissions of mytharchive which were fine but I gave it 777 anyways just to be sure but no luck.

mytharchive-0.21_p18355 mythvideo-0.21_p17595

USE="aac alsa dvb dvd mmx opengl perl python video_cards_nvidia" mythtv-0.21_p19961-r2

ARCH=amd64

comment:2 Changed 15 years ago by anonymous

I just wanted to give an update to the status of this ticket.

Out of frustration I backed up my recorded and scheduled tv shows and deleted the mythconverg database and recreated it.

This actually fixed the import dvd program, which is great, but then I had duplicate times for the same show under program finder which I knew was going to come back to haunt me.

So I bit the bullet and deleted all my saved tv shows I have ever recorded in a years time :(

I recreated the database again and everything is working perfectly.

The short story is mythtv seems to have some problems with restoring from backups. My example was from backing up from mythtv version .21 to version .21. Even though I faithfully backup everything in the just in case moments, I am not sure about mythtv.

I will continue to backup mythtv but if this problem occurs again I might have to start recommending to people to forgo the backups and start from scratch to fix any problem the user is having no matter how small.

comment:3 Changed 15 years ago by Nigel

anon, any chance of attaching the (non-working) backup, and a fresh backup of the minimal working setup? The former will be a little large, so removing the recordedmarkup, recordedseek and oldrecorded tables may be necessary.
I suspect this is something to do with the MediaMonitor?, but am not sure yet.

comment:4 Changed 15 years ago by Dibblah

Status: newinfoneeded_new

comment:5 Changed 15 years ago by anonymous

I tried to reduce the space of the mythtv database but I can't get it smaller than 2 megs and that's the new one installed the old mythtv backup is 3.8 megs it was 116 megs. To attach a file it has to be 256k not sure what more I can toss out.

comment:6 Changed 15 years ago by Nigel

Maybe just the settings table?

comment:7 Changed 15 years ago by paulh

Component: Plugin - MythArchivePlugin - MythVideo
Owner: changed from paulh to Anduin Withers
Status: infoneeded_newnew
Summary: Mytharchive is not seeing dvds but Myth transcode Daemon DoesMythVideo is not seeing dvds but Myth transcode Daemon Does

MythArchive? creates DVDs it's got nothing to do with importing them that would be MythDVD now part of MythVideo?.

comment:8 Changed 15 years ago by paulh

Status: newinfoneeded_new

comment:9 Changed 15 years ago by anonymous

I was wondering if someone would be able to give me a command to run in order to get just the settings table from mysql so I can attach it.

comment:10 Changed 15 years ago by anonymous

mysql -u root mythconverg -e 'select * from settings'

or, in a more compact form,

mysqldump -u root mythconverg settings

Changed 15 years ago by anonymous

Attachment: old_mythttv_settings.bak added

The Old MythTV Settings

Changed 15 years ago by anonymous

Attachment: new_mythtv_settings.bak added

The New MythTV Settings(Fresh Install)

comment:11 Changed 15 years ago by anonymous

Thanks for the info. I attached the two files.

comment:12 in reply to:  11 ; Changed 15 years ago by satfan39

Recreating a fresh mythconverg database solved this problem for me too. I also backup and restore regularly my database using Mysql Administrator, so it could explain why I also encountered this same problem; Something micght not get backed up correctly. Is there a way to restore the correct/initial settings of Mythvideo/MythDVD without recreating a new database from scratch ? Some kind of command I could run from the terminal after every restore.

comment:13 in reply to:  12 Changed 15 years ago by satfan39

problem solved: The target directory for the import needed to be created. Import went ok after the creation of the directory. Maybe the application should display an error message to warn the user of such an error.

Replying to satfan39:

Recreating a fresh mythconverg database solved this problem for me too. I also backup and restore regularly my database using Mysql Administrator, so it could explain why I also encountered this same problem; Something micght not get backed up correctly. Is there a way to restore the correct/initial settings of Mythvideo/MythDVD without recreating a new database from scratch ? Some kind of command I could run from the terminal after every restore.

comment:14 Changed 15 years ago by Nigel

From the settings backups, this is probably the relevant item:

% diff old_mythttv_settings.bak new_mythtv_settings.bak
...
80a66
> 'DVDDeviceLocation','/dev/dvd','Galactica'
82,83c68
< 'DVDDeviceLocation','/dev/dvd2','Galactica'
< 'DVDDriveSpeed','2','Galactica'
---
> 'DVDDriveSpeed','12','Galactica'
87c72
< 'DVDRipLocation','/backup/MythTV/mytharchive/temp','Galactica'
---
> 'DVDRipLocation','/tmp','Galactica'

so if anon's problem is the same as satfan's, 'twas just the dir /backup/MythTV/mytharchive/temp that didn't exist?

comment:15 Changed 15 years ago by Nigel

(In [20992]) Warn if MTD is going to fail due to missing rip directory. For people who don't view logs? Refs #6617. Will back-port to 0.21 soon.

comment:16 Changed 15 years ago by Nigel

Resolution: fixed
Status: infoneeded_newclosed

(In [20996]) Check for missing MTD rip dir. Backport of [20995]. Closes #6617

comment:17 Changed 15 years ago by Nigel

Hopefully, it was the missing dir, and this extra warning will remind users to create the rip directory. If not, please re-open and provide mythfrontend -v output

Note: See TracTickets for help on using tickets.