LinuxMCE Forums
May 18, 2013, 11:10:49 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: lmce 1004 and MythTV  (Read 1516 times)
ardirtbiker
Guru
****
Posts: 217



View Profile
« on: June 16, 2011, 01: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)
Logged
ardirtbiker
Guru
****
Posts: 217



View Profile
« Reply #1 on: June 18, 2011, 02: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
Logged
dextaslab
Veteran
***
Posts: 68


View Profile WWW
« Reply #2 on: June 18, 2011, 08: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, 08:42:52 am by dextaslab » Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2620


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #3 on: June 18, 2011, 09:26:31 am »

Could you paste the output of
Code:
ls -la /home/public/data/pvr/livetv
prior to the changing of the permissions, please.
Logged

ardirtbiker
Guru
****
Posts: 217



View Profile
« Reply #4 on: June 18, 2011, 01: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
Logged
ardirtbiker
Guru
****
Posts: 217



View Profile
« Reply #5 on: July 24, 2011, 08: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, 12:45:10 am by ardirtbiker » Logged
davegravy
Guru
****
Posts: 451


View Profile
« 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
Logged
ardirtbiker
Guru
****
Posts: 217



View Profile
« 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
Logged
davegravy
Guru
****
Posts: 451


View Profile
« Reply #8 on: November 22, 2011, 03:00:12 am »

Thanks Dennis,

For other newbs like me, run on the core:

Code:
id -u mythtv

This gives a 3 digit value, we'll call it 'uuu'. Go to the MD and run:

Code:
usermod -u uuu mythtv

and reboot.

The groups lined up the same for me, just the UIDs were off.
Logged
slampt
Veteran
***
Posts: 102


View Profile
« 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

Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2620


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #10 on: March 23, 2013, 02:11:17 pm »

and what are the permissions in pvr/live?
Logged

slampt
Veteran
***
Posts: 102


View Profile
« 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 ..

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!