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
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#21
2019-12-16, 03:43 AM (This post was last modified: 2019-12-16, 03:47 AM by mvallevand.)
Sorry I pasted the windows version for the opendct.sh instruction try this instead.

Code:
opendct=/var/opt/nextpvr/scripts/opendct.py                                                                                                                    
python3 $opendct STOP "$2"                                                      
python3 $opendct START "$2" $1 2>/dev/null

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#22
2019-12-16, 03:53 AM
(2019-12-16, 03:35 AM)mvallevand Wrote: That is normal for livetv.  NextPVR seems to be running the command ok.  If you run

/var/opt/nextpvr/scripts/opendct.sh  703 "DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 2" /tmp/somefile.ts

Does the file still get created?

Martin

You're onto something - 

Code:
dapharsyde@BonTV:~/recordings$ /var/opt/nextpvr/scripts/opendct.sh 703 "DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 2" /tmp/somefile.ts
python3: can't open file '%opendct%': [Errno 2] No such file or directory
dapharsyde@BonTV:~/recordings$ more /var/opt/nextpvr/scripts/opendct.sh
set opendct=/var/opt/nextpvr/scripts/opendct.py
python3 %opendct% "STOP" %2
python3 %opendct% "START" %2 %1  2> /dev/null

I am in linux, so the % convention is probably not used.  Instead I updated opendct.sh to this:

Code:
opendct=/var/opt/nextpvr/scripts/opendct.py
python3 $opendct "STOP" $2
python3 $opendct "START" $2 $1  2> /dev/null

Now when I run the script with arguments, the video file is NOT created, and it just does this:

Code:
dapharsyde@BonTV:~/recordings$ /var/opt/nextpvr/scripts/opendct.sh 703 "DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 2" /tmp/somefile.ts
STOP DCT-Ceton
OK
Exit

Notably, the "DCT-Ceton" string is truncated (probably due to the space?)  My bash scripting knowledge is not good enough to fix this Sad
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#23
2019-12-16, 03:55 AM
Yes if you see my previous post the $2 should be "$2"

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#24
2019-12-16, 03:58 AM
Even with $2 in quotes?

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#25
2019-12-16, 04:02 AM
(2019-12-16, 03:55 AM)mvallevand Wrote: Yes if you see my previous post the $2 should be "$2"

Martin

Got it, and updated the .sh file.

Things got a little further now, playing a video from the guide shows "Receiving data" and starts counting upwards, but then it dies with "Streaming Failed (transcoder exited)"

Logs attached.


Attached Files
.zip   logs-20191215-2000.zip (Size: 196.76 KB / Downloads: 2)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#26
2019-12-16, 04:10 AM (This post was last modified: 2019-12-16, 04:11 AM by mvallevand.)
We might have to put a delay in python

in opendct.py

at the top

import time

and insert the wait after

#print("Connection from: " + str(address))
time.sleep(5)

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#27
2019-12-16, 04:11 AM
(2019-12-16, 04:02 AM)dapharsyde Wrote:
(2019-12-16, 03:55 AM)mvallevand Wrote: Yes if you see my previous post the $2 should be "$2"

Martin

Got it, and updated the .sh file.

Things got a little further now, playing a video from the guide shows "Receiving data" and starts counting upwards, but then it dies with "Streaming Failed (transcoder exited)"

Logs attached.

I changed back to DynamicConsumerImpl instead of RawSage, and it works now!!  The RawSage option looks to be creating a file with too much for ffmpeg to handle...

Thanks for all your help Martin!!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#28
2019-12-16, 04:26 AM
It probably handles the delay in tuning before streaming starts. Good to know though, thanks for being the pioneer on this. Others won't have to do the testing.

We haven't finished though since we need to do a bit more to get multiple tuners running. I have a modification I made to opendct to support multiple servers, each START opens up a server listener, OpenDCT expected on SageTV server.

Play with this for a while first to see how it meets your needs and then we can move forward if you wish.

Thanks again.

Martin
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#29
2019-12-16, 04:44 AM
(2019-12-16, 04:26 AM)mvallevand Wrote: It probably handles the delay in tuning before streaming starts.  Good to know though, thanks for being the pioneer on this.  Others won't have to do the testing.

We haven't finished though since we need to do a bit more to get multiple tuners running.  I have a modification I made to opendct to support multiple servers, each START opens up a server listener, OpenDCT expected on SageTV server.

Play with this for a while first to see how it meets your needs and then we can move forward if you wish.

Thanks again.

Martin

Actually, I did not make any changes with the delay.  The switch back to Dynamic instead of RawSage in opendct.properties allowed the video to be transcoded properly.

Yes I will definitely do some more testing with this.  Is only one tuner supported for now?  After starting a video with the opendct.sh script, will anything issue the STOP command, or does the tuner stay busy?
dapharsyde
Offline

Junior Member

Posts: 24
Threads: 1
Joined: Dec 2019
#30
2019-12-16, 08:25 AM
While testing some other channels, I found one that never tunes in for some reason.

Code:
python3 opendct.py "START" "DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 4" 747 /tmp/foodtv.ts
START DCT-Ceton InfiniTV Ethernet (00-80-8d-8a) Tuner 4|747|12345678|/tmp/foodtv.ts|Great
Exit
Traceback (most recent call last):
  File "opendct.py", line 188, in <module>
    main(sys.argv)
  File "opendct.py", line 41, in main
    payload = sendMessage(message)
  File "opendct.py", line 74, in sendMessage
    data = sock.recv(1024)
socket.timeout: timed out

This channel works in mythbackend, so I don't think it is DRM locked or CCI related. Do you know how I could debug this further?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (29): « Previous 1 2 3 4 5 … 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,508 2024-06-18, 04:31 PM
Last Post: devarionarias
  Linux setup - Help a Windows user... prothed 18 2,334 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,377 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