NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 7 8 9 10 11 … 34 Next »
Request for supporting Ceton devices on Linux

 
  • 0 Vote(s) - 0 Average
Request for supporting Ceton devices on Linux
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#31
2019-12-16, 08:58 AM
I think the delay might work with raw mode but not sure, certainly the file was not big enough for ffmpeg in NextPVR to be able to transcode, it might also work ok with direct play but it is hard to say.

Only one tuner is supported because it is hard coded to listen on one socket. The next version will do open a socket per tuner.

For the tuning issue i'd have to see the opendct logs, and I'd have to ask the people that use this with Ceton's. I don't have one myself so like I said this was all theory. Confirm the channel number is 747 in Myth and also see if it takes longer to tune we can boost the timeout in the script.

The next instructions will automate everything we learned so far into one command.

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#32
2019-12-16, 09:36 AM (This post was last modified: 2019-12-16, 10:19 AM by dapharsyde.)
(2019-12-16, 08:58 AM)mvallevand Wrote: For the tuning issue i'd have to see the opendct logs, and I'd have to ask the people that use this with Ceton's.  I don't have one myself so like I said this was all theory.  Confirm the channel number is 747 in Myth and also see if it takes longer to tune we can boost the timeout in the script.

Confirmed the channel number is correct.  I changed opendct.py to sock.settimeout(60) instead, and by running the script by itself, a video file is created, but only after a short delay.

I ran: python3 /var/opt/nextpvr/scripts/opendct.py "START" "DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 2" 747 /tmp/foodtv.ts

After about 18 seconds, the python script completed with the "OK" message, and the /tmp/foodtv.ts file was created with 0 bytes.

After about another 14 seconds, (32s total), the file began to grow in size.

While attempting to play this channel from the Guide on the web interface, the player times out after 30s before playing the video - is there a way to extend this timeout?

Edit:  I found a few other channels this happens with also - tuning seems to take a long time, and the video never works through the web player.  I can look into the opendct logs - do you know where are they located?  Or do I need to enable debugging for logs to be created?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#33
2019-12-16, 01:56 PM (This post was last modified: 2019-12-16, 01:57 PM by mvallevand.)
I have reached out to the SageTV community regarding the timeout question.

Sub would have to address the web server question. I don't test using the browser since transcoding adds extra unnecessary variables. Direct play via vlc or ffplay to me makes more sense ie.

ffplay "http://localhost:8866/live?channel=747"

Logs should be in /var/log/opendct

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#34
2019-12-16, 09:14 PM
(2019-12-16, 01:56 PM)mvallevand Wrote: Logs should be in /var/log/opendct

Thanks for the pointer.  While testing some more I've come to realize that there is some inconsistent behavior when tuning into channels.

Here is a opendct.log that shows success tuning to 745 (copy free), success tuning to 747 (copy free), then failure tuning back to 745 (copy never)

of particular note is these line entries:
Code:
Line 143: 12:40:56.806 [SageTVRequestHandler-48:DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6] INFO  InfiniTVCaptureDevice - Starting the encoding for the channel '745' from the device 'DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6' to the file 'stdout' via the upload id '8888'...
Line 200: 12:40:59.067 [SageTVRequestHandler-48:DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6] DEBUG InfiniTVStatus - The returned value was trimmed to 'Copy Control Information: "Copy Free" (00)'

Line 276: 12:41:19.428 [SageTVRequestHandler-48:DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6] INFO  InfiniTVCaptureDevice - Starting the encoding for the channel '747' from the device 'DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6' to the file 'stdout' via the upload id '8888'...
Line 374: 12:41:23.396 [SageTVTuningMonitor-50] DEBUG InfiniTVStatus - The returned value was trimmed to 'Copy Control Information: "Copy Free" (00)'

Line 417: 12:41:59.921 [SageTVRequestHandler-48:DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6] INFO  InfiniTVCaptureDevice - Starting the encoding for the channel '745' from the device 'DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6' to the file 'stdout' via the upload id '8888'...
Line 449: 12:42:02.659 [SageTVRequestHandler-48:DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 6] DEBUG InfiniTVStatus - The returned value was trimmed to 'Copy Control Information: "Copy Never" (0x03)'

It is strange that the same channel is going between copy free and copy never.  I guess I need to troubleshoot this with the SageTV team also?  If that's the case, can you point me to them?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#35
2019-12-16, 09:32 PM
You might want to check the Ceton log too I believe I found it is at http://cetonip/Services/Log.html

There is a blog-like thread for OpenDCT here https://forums.sagetv.com/forums/showthread.php?t=62774 That is one reason I quickly got you into a new thread, I don't find 135 page threads helpful

I did post some questions there this morning but have yet to get a response.

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#36
2019-12-16, 11:13 PM
(2019-12-16, 09:32 PM)mvallevand Wrote: I don't find 135 page threads helpful

I totally agree Smile

I posted there anyways, just waiting for the moderator to approve my post since my account is new.  Hopefully I hear back from them.

Thanks for walking me through everything up to this point!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#37
2019-12-19, 03:01 AM
I might be not understanding certain command in the SageTV protocol that I don't see with my HDHR  I am looking to see if you get a WRITEOPEN request.

In opendct.py

add  the following

Code:
            if received[0]=='WRITE':
...
add these  3 lines
            elif received[0]=='WRITEOPEN':               
                data = 'OK\r\n'
                connMediaServer.send(data.encode())
before
            else:

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#38
2019-12-23, 08:59 PM
(2019-12-19, 03:01 AM)mvallevand Wrote: I might be not understanding certain command in the SageTV protocol that I don't see with my HDHR  I am looking to see if you get a WRITEOPEN request.

In opendct.py

add  the following

Code:
            if received[0]=='WRITE':
...
add these  3 lines
            elif received[0]=='WRITEOPEN':               
                data = 'OK\r\n'
                connMediaServer.send(data.encode())
before
            else:

Martin

Hi again - sorry for the slow response.

For the most part, I'm still concerned that I have inconsistent results tuning to certain channels, with CCI flipping between Copy Free and Copy Never.  This seems to be a problem that can only be addressed over on the Sage forums, where it's been relatively quiet.

In the meantime I can continue to test your new changes like above, but I'm unclear what it is meant to improve.  Once I make this change, what should I test, and what logs should I upload for you to review?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#39
2019-12-23, 09:13 PM (This post was last modified: 2019-12-23, 09:14 PM by mvallevand.)
I looked at the opendct log you posted on the SageTV forum and that is a protocol command that was failing that I probably need to support but I don't have a device that uses it. Once it is implmented I want to go back to the forum with other comment

SageTV is dying certainly but then again so is Ceton so I think this should work once we get it going.

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#40
2019-12-23, 09:41 PM
(2019-12-23, 09:13 PM)mvallevand Wrote: I looked at the opendct log you posted on the SageTV forum and that is a protocol command that was failing that I probably need to support but I don't have a device that uses it. Once it is implmented I want to go back to the forum with other comment

SageTV is dying certainly but then again so is Ceton so I think this should work once we get it going.

Martin

Got it.  So what should I test, and are there logs that you want to see?
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (29): « Previous 1 2 3 4 5 6 … 29 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Command Line To Initiate SchedulesDirect EPG Update LinuxDVR 1 152 2025-04-13, 06:35 PM
Last Post: mvallevand
  Linux install failed -- permission denied? FrogFan 4 391 2025-03-26, 12:39 AM
Last Post: FrogFan
  Is there a 'recommended' version/release of Linux? Bobthegoldfish 1 353 2024-12-24, 12:28 AM
Last Post: mvallevand
  Downgrade on Linux eriberg 3 417 2024-09-04, 08:46 PM
Last Post: mvallevand
  Pi5 / Firefox 128.0 - ctrl key in devices screen does not work TheRealRoland 4 596 2024-08-02, 07:26 PM
Last Post: TheRealRoland
  linux mint 22 bccicone 2 510 2024-08-01, 10:10 PM
Last Post: bccicone
  Client Recommendations on Linux devarionarias 6 1,509 2024-06-18, 04:31 PM
Last Post: devarionarias
  Linux setup - Help a Windows user... prothed 18 2,335 2024-06-03, 11:08 AM
Last Post: Rod Hutchinson
  Install NexPVR backend in Buildroot based Linux Tnix 3 958 2024-03-14, 11:50 AM
Last Post: mvallevand
  Wake after Suspend issue with dvbt devices (LE12 Kodi 21) ShadowMask 41 4,378 2024-02-09, 07:11 AM
Last Post: ShadowMask

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode