Author Topic: lmce 1004 and MythTV  (Read 8473 times)

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
lmce 1004 and MythTV
« on: June 16, 2011, 02:46:15 am »
Hi guys...
Yes I know 1004 is pre-beta...   Ive been tinkering with it for a couple months now.   

I was having trouble watching any video ... turned out to be something with my nVidia 9800GT board... maybe a driver issue... but put in a 7000 series board for now DVD video is working.

I cannot get Mythtv to work..  it loads, but cannot display live tv.   My setup is as follows:
1.   Running a Hybrid CORE (only for CORE purposes)
2.   MD is M4A77TD mobo, nVidia 7000 series display adapter, HDPVR capture device.

I can  cat /dev/video0 > test.ts and the HDPVR captures video to the file.

Mythtv app launches, but cannot activate the HDPVR to stream the video...   

What logs should I be looking at?   and what might I be looking for?  to figure this issue out?

Thanks,
Dennis (the menace)

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: lmce 1004 and MythTV
« Reply #1 on: June 18, 2011, 03:31:48 am »
Im going to re-install 1004 and try MythTv directly on the core/hybrid... I think I have some database corruption.

Dennis

dextaslab

  • Veteran
  • ***
  • Posts: 77
    • View Profile
    • modlog.net
Re: lmce 1004 and MythTV
« Reply #2 on: June 18, 2011, 09:39:31 am »
I was having the same issue with 1004 mythtv, and looked in the myth backend logs on the MD with the tv capture card:

TVRec(3): Changing from None to WatchingLiveTV
TVRec(3): HW Tuner: 3->3
TFW, Error: Opening file '/home/public/data/pvr/livetv/1073_20110618105005.mpg'.
      eno: Permission denied (13)
TVRec(3) Error: RingBuffer '/home/public/data/pvr/livetv/1073_20110618105005.mpg' not open...
TVRec(3) Error: CreateLiveTVRingBuffer() failed
TVRec(3) Error: Failed to create RingBuffer 1
TVRec(3): Changing from WatchingLiveTV to None

etc.. And end up getting something similar to: All inputs are in use although Mythtv isn't recording anything... Tried changing the permissions on the directory, although it reverts back by the next time I use it to play LiveTV.

Dirty hack; a cron job: * * * * * root /bin/chmod 777 /home/public/data/pvr/livetv

Logs:
/var/log/mythtv/mythbackend.log
/var/log/pluto/<device#>_MythTV_Player.log

Hopes this helps.


« Last Edit: June 18, 2011, 09:42:52 am by dextaslab »

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: lmce 1004 and MythTV
« Reply #3 on: June 18, 2011, 10:26:31 am »
Could you paste the output of
Code: [Select]
ls -la /home/public/data/pvr/livetv prior to the changing of the permissions, please.

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: lmce 1004 and MythTV
« Reply #4 on: June 18, 2011, 02:44:34 pm »
Thanks guys... Ive already re-installed 1004 on my core... will try Mythtv on it first.. if issue remains... I'll do as suggested taking into account what Posde requested...  btw.. Posde, how is the OC?   thats my old romping grounds.. used to live in Huntington Beach!

Dennis

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
(Resolved-sortof) Re: lmce 1004 and MythTV
« Reply #5 on: July 24, 2011, 09:15:46 pm »
Well, back at this again (after a rough couple of weeks of work and a much needed week of vacation)... I found out that if I change the '/home/public/data/pvr/livetv' ownership to mythtv:public, then mythtv runs on the Media Director (other than the core/hybrid).  I would think then that mythtv is not part of the 'public' group.. will check on this.

Dennis

UPDATE:
Further investigation revealed that the mythtv user and group on the Media Director did not match those on the Core.   Recreating the mythtv group and user fixed the Mythtv not playing issue.   Do not know why these didnt get configured correctly in the first place (or even if it was supposed to).
« Last Edit: July 25, 2011, 01:45:10 am by ardirtbiker »

davegravy

  • Addicted
  • *
  • Posts: 551
    • View Profile
Re: lmce 1004 and MythTV
« Reply #6 on: November 21, 2011, 08:20:28 am »
I'm having this exact issue. I'm not sure how to go about recreating the mythtv user and group on the MD "to match the core..." Is the MD and CORE user supposed to be tied together somehow or just have the same name? 


Thanks

dave

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: lmce 1004 and MythTV
« Reply #7 on: November 22, 2011, 01:14:52 am »
Dave,
Responded to your email... basically I looked at the GID for the mythtv group, and the UID and GID of the Mythtv user on the core and compared them to what was on the Media Director.. as I suspected, they were different... setting the media director to match the core fixed the problem.

Dennis

davegravy

  • Addicted
  • *
  • Posts: 551
    • View Profile
Re: lmce 1004 and MythTV
« Reply #8 on: November 22, 2011, 03:00:12 am »
Thanks Dennis,

For other newbs like me, run on the core:

Code: [Select]
id -u mythtv
This gives a 3 digit value, we'll call it 'uuu'. Go to the MD and run:

Code: [Select]
usermod -u uuu mythtv
and reboot.

The groups lined up the same for me, just the UIDs were off.

slampt

  • Veteran
  • ***
  • Posts: 102
    • View Profile
Re: lmce 1004 and MythTV
« Reply #9 on: March 23, 2013, 10:48:51 am »
Hey Guys,

Sorry to dig up an old thread, I thought it would be better to reply to this one than start a new one.
I finally got around to installing my HDHomerun DVB-T. I had to scan for the channels manually but after that, I seem to be getting the same permissions error.


2013-03-23 17:36:55.483 TFW, Error: Opening file '/mnt/device/65/public/data/pvr/livetv/1007_20130323173654.mpg'.
         eno: Permission denied (13)
2013-03-23 17:36:55.527 TVRec(1) Error: RingBuffer '/mnt/device/65/public/data/pvr/livetv/1007_20130323173654.mpg' not open...
2013-03-23 17:36:55.618 TVRec(1) Error: CreateLiveTVRingBuffer() failed
2013-03-23 17:36:55.685 TVRec(1) Error: Failed to create RingBuffer 1
2013-03-23 17:36:55.768 TVRec(1): Changing from WatchingLiveTV to None
2013-03-23 17:36:55.646 ProcessPAT: Program not found in PAT.
         Rescan your transports.

Permissions are;

drwxrwsr--  3 root public 4096 2013-03-23 17:41 pvr


Any help would be appreciated..

Cheers
Slampt


Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: lmce 1004 and MythTV
« Reply #10 on: March 23, 2013, 02:11:17 pm »
and what are the permissions in pvr/live?

slampt

  • Veteran
  • ***
  • Posts: 102
    • View Profile
Re: lmce 1004 and MythTV
« Reply #11 on: March 23, 2013, 04:14:44 pm »
Sorry Posde,

Here it is;


dcerouter_1032070:/var/log/mythtv# ls -la /mnt/device/65/public/data/pvr/
total 12
drwxrwsrwx 3 root public 4096 2013-03-23 18:27 .
drwxr-xr-x 8 root public 4096 2012-05-16 00:40 ..
drwxrwsr-x 2 root public 4096 2013-03-23 17:56 livetv
-rwxrwxrwx 1 root public    0 2013-03-23 23:06 livetv.folderlock



dcerouter_1032070:/var/log/mythtv# ls -la /mnt/device/65/public/data/pvr/livetv
total 478884
drwxrwsr-x 2 root   public      4096 2013-03-23 17:56 .
drwxrwsrwx 3 root   public      4096 2013-03-23 23:13 ..