SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 08-09-2008, 06:20 PM
zoop's Avatar
zoop zoop is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Elkridge, MD
Posts: 184
Quote:
Originally Posted by bcjenkins View Post
Stage is all set, wondering if anyone has an experience they'd like to share before I manage to incur the wrath of poor WAF.

B
not yet... i am afraid
__________________

AMD Ryzen 7 1700 w/ SageTV Server Linux V9.1.8.774 - Ubuntu 16.04LTS AMD64
-- 1x HDHomeRun Prime
-- 1x HDHR-DT
-- 1x HD-PVR
2x SageTV HD-300 Media Extenders
1x NVIDIA ShieldTV
Reply With Quote
  #22  
Old 08-10-2008, 04:36 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Well..

Running the most recent driver code I plugged the device in.
It threw off the naming of my PCI cards on reboot. I wrote a udev rule to set the name, but it doesn't change the value of the kernel number.

I blacklisted hdpvr and am now modprobing it in rc.local.

Upon first launch in SageTV I went to configure the device, and inputs are note selectable in the screen. Tailing the log, the only thing I see is:

Quote:
Sun 8/10 6:28:04.085 setUI(sage.b1@1af4db4[Setup Wizard - Capture Device InputSelect]) histIdx=9 uiHistory=[sage.b1@eeeb48[Main Menu], sage.b1@18baf24[Setup Menu], sage.b1@63278e[Setup Wizard - Summary Page], sage.b1@53bfb7[Setup Wizard - Capture Device Select], sage.b1@1af4db4[Setup Wizard - Capture Device InputSelect], sage.b1@eeeb48[Main Menu], sage.b1@18baf24[Setup Menu], sage.b1@63278e[Setup Wizard - Summary Page], sage.b1@53bfb7[Setup Wizard - Capture Device Select], sage.b1@1af4db4[Setup Wizard - Capture Device InputSelect]]
Sun 8/10 6:28:04.817 Failed opening COM port 0. Trying again!
Sun 8/10 6:28:04.818 Failed opening COM port 0. Darn!
Note: Looks like SageTV is written by sailors..

v4l2-ctl --device=/dev/video3 -I --get-audio-input
Video input : 0 (Component)
Audio input : 0 (RCA back)

Anyone have any thoughts?

B
Attached Images
File Type: png Picture 1.png (45.3 KB, 325 views)
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #23  
Old 08-10-2008, 08:30 AM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
I see in your sig you are running 64 bit linux, In order to get sage running I'm sure you already went through the process of getting 32 bit java and the required libs for sage setup, you will need a one line patch to the hd-pvr driver to make it work with 32 bit apps when it is compiled for a 64 bit kernel,

add the following line:

.compat_ioctl = v4l_compat_ioctl32,

to the file linux/drivers/media/video/hdpvr/hdpvr-video.c
to the bottom of the hdpvr_fops struct near line 611

and recompile/reload the hdpvr module

Let me know if that works ( I wont be able to test the new sage support for hdpvr until the middle of next week ) and I'll try to get it added to the hd-pvr driver upstream source
Reply With Quote
  #24  
Old 08-10-2008, 11:58 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Added it to:

Code:
static const struct file_operations hdpvr_fops = {
        .owner          = THIS_MODULE,
        .open           = hdpvr_open,
        .release        = hdpvr_release,
        .flush          = hdpvr_flush,
        .read           = hdpvr_read,
        .poll           = hdpvr_poll,
        .ioctl          = hdpvr_ioctl,
        .compat_ioctl   = v4l_compat_ioctl32,
};
That did the trick. I set a recording up and will check it out after the movie.

Thanks

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #25  
Old 08-10-2008, 04:33 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Partial success

The stream records and plays back on an HD Extender, but it isn't tuning channels. I think it is partially failing:

Quote:
Sun 8/10 15:08:12.741 Seeker.startRecord(video3 FA[stationID=51529 The
Cleaner time=Sun 8/10 14:30:00.000 dur=1:00:00], currTime=Sun 8/10
15:08:12.739) currRecord=null switch=false
Sun 8/10 15:08:12.741 Setting up MMC video for recording new show &
tuning channel conn=video3 Component
Sun 8/10 15:08:12.741 Not using desired quality setting of DVD
Standard Play because the capture device doesn't support it
Sun 8/10 15:08:12.741 Using quality setting "" for recording
Sun 8/10 15:08:12.741 Seeker resetting the encoder because it'll pass
the max duration
Sun 8/10 15:08:12.741 VideoStorage for new file: /var/media/tv1 - Use All
Sun 8/10 15:08:12.741 MediaFile created
subfile:/var/media/tv1/TheCleaner-RagDolls-7006725-0.mpg
MediaFile[id=7131110 A[7006725,6808003,"The
Cleaner",51529@0810.14:30,60] host=sagetv-server encodedBy=video3
format=MPEG2-PS 0:00:00 0 kbps []]
Sun 8/10 15:08:12.752 Added:MediaFile[id=7131110
A[7006725,6808003,"The Cleaner",51529@0810.14:30,60]
host=sagetv-server encodedBy=video3 format=MPEG2-PS 0:00:00 0 kbps []
/var/media/tv1/TheCleaner-RagDolls-7006725-0.mpg, Seg0[Sun 8/10
15:08:12.741-Wed 12/31 19:00:00.000]]
Sun 8/10 15:08:12.760 Seeker channel string=842
Sun 8/10 15:08:12.761 startEncoding for V4L capture device
file=/var/media/tv1/TheCleaner-RagDolls-7006725-0.mpg chan=842
Sun 8/10 15:08:12.761 V4L: getV4LCardType /dev/video3
Sun 8/10 15:08:12.761 V4L: getV4LInputName /dev/video3 0
Sun 8/10 15:08:12.761 V4L: video3 input 0 name is Component
Sun 8/10 15:08:12.761 Matched SageTV input type=5 index=0 to v4l input #0
Sun 8/10 15:08:12.761 V4L: setInput0 0 0 1 1
Sun 8/10 15:08:12.761 V4L: setting standard to 0x3000
Sun 8/10 15:08:12.765 V4L: Failed setting the input on the capture device
Sun 8/10 15:08:12.765 Built:sage.EncodingException: ERROR (654,0xb):
There was a problem setting up software audio compression.
Sun 8/10 15:08:12.765 processOptionsMenu
optionsMenu=default:BASE-77347|OptionsMenu:ErrorMessage
Here's the corresponding dmesg output as well:

Quote:
compat_ioctl32: VIDIOC_S_AUDIOioctl32(java:14753): Unknown cmd fd(39) cmd(40345622){t:'V';sz:52} arg(cbbabc80) on /dev/video3
compat_ioctl32: VIDIOC_S_EXT_CTRLSioctl32(java:14753): Unknown cmd fd(39) cmd(c0185648){t:'V';sz:24} arg(cbbab858) on /dev/video3
compat_ioctl32: VIDIOC_ENCODER_CMDioctl32(java:28687): Unknown cmd fd(43) cmd(c028564d){t:'V';sz:40} arg(c5efee50) on /dev/video3
I sent it in, but I think I'll switch back to network encoder mode for now.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 08-11-2008 at 03:48 PM.
Reply With Quote
  #26  
Old 08-11-2008, 04:09 PM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
That actually does look like some more 32bit <-> 64 bit problems, i dont see VIDIOC_S_AUDIO or VIDIOC_S_EXT_CTRL in compat_ioctl32.c

but VIDIOC_ENCODER_CMD should definetely be working..

Would be so nice if the sage guys could just get sage for linux recompiled for 64 bit......
Reply With Quote
  #27  
Old 08-11-2008, 04:58 PM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
as near as I can tell, VIDIOC_S_AUDIO, VIDIOC_S_EXT_CTRLS, VIDIOC_ENCODER_CMD need to be added to v4l_compat_ioctl32 in video/compat_ioctl32.c hd-pvr seems to be the first v4l2 driver that needs them which is why they havent been in there before. I will add them and test tonight
Reply With Quote
  #28  
Old 08-11-2008, 06:21 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
cool, these are the same errors I see with using hvr-1600s

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #29  
Old 08-11-2008, 10:44 PM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
Hrm, i cant even get my sage server past the setup wizard with the hdpvr driver

after selecting component on the video0 device in the setup wizard, I get a "There was a Capture Error in playback. Details: ERROR (647,0x6e): There was a problem setting up software audio compression.

and in the sage log:

Mon 8/11 22:41:10.262 V4L: createEncoder /dev/video0
Mon 8/11 22:41:10.262 V4L: detected hdpvr
Mon 8/11 22:41:10.262 V4L: getV4LCardType /dev/video0
Mon 8/11 22:41:10.262 V4L: getV4LInputName /dev/video0 0
Mon 8/11 22:41:10.262 V4L: setInput0 0 0 1 1
Mon 8/11 22:41:10.262 V4L: setting standard to 0x3000
Mon 8/11 22:41:20.260 V4L: Failed to set video standard to 12288.
Mon 8/11 22:41:20.307 V4L: getV4LCardType /dev/video0
Mon 8/11 22:41:20.307 V4L: getV4LInputName /dev/video0 0
Mon 8/11 22:41:20.307 V4L: setInput0 0 0 1 1
Mon 8/11 22:41:20.307 V4L: setting standard to 0x3000
Mon 8/11 22:41:30.300 V4L: Failed to set video standard to 12288.

Nothing in dmesg,
kernel 2.6.24 x86_64

How did you get yours past the setup wizard?
Reply With Quote
  #30  
Old 08-12-2008, 12:35 AM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
OK, got it working, also squashed 2 of those missing 32 bit wrapper ioctls, still working on the last one
Reply With Quote
  #31  
Old 08-12-2008, 12:43 AM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
It would seem that placeshifter cannot play the video output by the hd-pvr? I just get a black screen. Using the 6.4.7 placeshifter for mac...

Interestingly mplayer for mac crashes trying to play a sample file catted from the hddvr device, and I thought mplayer was used by placeshifter to actually display video..
Reply With Quote
  #32  
Old 08-12-2008, 05:09 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
It is actually ffmpeg. I don't think FFMpeg is capable of playing this back yet, easily. The HD extender can play the files back without issue though.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #33  
Old 08-12-2008, 05:11 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by trueno View Post
Hrm, i cant even get my sage server past the setup wizard with the hdpvr driver

after selecting component on the video0 device in the setup wizard, I get a "There was a Capture Error in playback. Details: ERROR (647,0x6e): There was a problem setting up software audio compression.

and in the sage log:

Mon 8/11 22:41:10.262 V4L: createEncoder /dev/video0
Mon 8/11 22:41:10.262 V4L: detected hdpvr
Mon 8/11 22:41:10.262 V4L: getV4LCardType /dev/video0
Mon 8/11 22:41:10.262 V4L: getV4LInputName /dev/video0 0
Mon 8/11 22:41:10.262 V4L: setInput0 0 0 1 1
Mon 8/11 22:41:10.262 V4L: setting standard to 0x3000
Mon 8/11 22:41:20.260 V4L: Failed to set video standard to 12288.
Mon 8/11 22:41:20.307 V4L: getV4LCardType /dev/video0
Mon 8/11 22:41:20.307 V4L: getV4LInputName /dev/video0 0
Mon 8/11 22:41:20.307 V4L: setInput0 0 0 1 1
Mon 8/11 22:41:20.307 V4L: setting standard to 0x3000
Mon 8/11 22:41:30.300 V4L: Failed to set video standard to 12288.

Nothing in dmesg,
kernel 2.6.24 x86_64

How did you get yours past the setup wizard?
I don't wait for the video to render. Just click component and move forward.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #34  
Old 08-12-2008, 05:18 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by trueno View Post
OK, got it working, also squashed 2 of those missing 32 bit wrapper ioctls, still working on the last one
I'd be interested in that patch.

Thanks,

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #35  
Old 08-12-2008, 10:08 AM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
I'll send it along as soon as I figure out the last ioctl (which looks to be a huge PITA). Should be this evening..
Reply With Quote
  #36  
Old 08-12-2008, 05:50 PM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
How in the heck do you get sagetv to use the spdif audio input (input 2 via v4l2-ctl --device=/dev/video0 --set-audio-input=2)

Sage seems to set it to Audio input : 0 (RCA back)
on startup, and I don't see anything obvious in Sage.properties to override it.. ugh
Reply With Quote
  #37  
Old 08-12-2008, 06:16 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
I don't have access to my server right now, but take a look in the Sage.properties file at the mmc/encoders section.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #38  
Old 08-12-2008, 08:24 PM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
OK, here is the patch that enables hdpvr to work fully under 64 bit kernels with SageTV, it will also silence anyone seeing dmesg errors about VIDIOC_S_AUDIO, VIDIOC_ENCODER_CMD, and VIDIOC_S_EXT_CTRLS

please test!

Last edited by trueno; 01-28-2017 at 01:59 PM.
Reply With Quote
  #39  
Old 08-13-2008, 03:54 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Patch applied and works on my HVR1600s. Will test HDPVR later. THANK YOU VERY MUCH.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #40  
Old 08-13-2008, 09:58 AM
trueno trueno is offline
Sage User
 
Join Date: May 2003
Posts: 39
Happy to help!

Quick question, My extenders seem to freeze (they still respond, but video is frozen and has to be restarted) when changing channels recorded via the hd-pvr, everything works fine if I hit stop, and then change channels via the guide, but If I just key in a new channel number while watching another, it seems to freeze a second after the channel change. Are you seeing anything like this? (Latest extender beta firmware)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HD PVR and IR tuning? Deacon Crusher Hardware Support 39 12-06-2009 11:17 AM
Capture Devices Gone After Reboot hchucky Hardware Support 6 11-14-2008 10:24 PM
SageTV V6.4.2 Public Beta is Here! Narflex SageTV Beta Test Software 3 05-13-2008 08:19 PM
The Beginning of the End? lobosrul General Discussion 76 05-01-2007 06:39 PM


All times are GMT -6. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.