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 … 8 9 10 11 12 … 34 Next »
Request for supporting Ceton devices on Linux

 
  • 0 Vote(s) - 0 Average
Request for supporting Ceton devices on Linux
run088
Offline

Member

us
Posts: 133
Threads: 1
Joined: Mar 2020
#191
2023-02-12, 01:06 PM
Tried to isolate the # sections. I went threw them all. I have all uncommented but these 3 and the notable comments. These are the errors for each and the number and command they correspond to when the pipe window was exited

sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 | ffplay -i pipe: -v panic

126
#print ('listening')

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>

127
#print("Connection from: " + str(address))

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe

136
#print(data)

[Errno 32] Broken pipe
Traceback (most recent call last):
  File "/var/opt/nextpvr/scripts/opendct.py", line 136, in media_server
    print(data)
BrokenPipeError: [Errno 32] Broken pipe

=====================================================

this command seems to work to keep it in python. But when I control-c to stop it I get this error

sudo bash opendct.sh 1110 "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" > file

Traceback (most recent call last):
  File "/var/opt/nextpvr/scripts/opendct.py", line 221, in <module>
    main(sys.argv)
  File "/var/opt/nextpvr/scripts/opendct.py", line 58, in main
    mediaServerThread.join()
  File "/usr/lib/python3.10/threading.py", line 1096, in join
    self._wait_for_tstate_lock()
  File "/usr/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
    if lock.acquire(block, timeout):
KeyboardInterrupt
run088
Offline

Member

us
Posts: 133
Threads: 1
Joined: Mar 2020
#192
2023-02-12, 01:24 PM
time.sleep(5) seconds is now the max before timeout. I assume its because of the uncommented sections.
run088
Offline

Member

us
Posts: 133
Threads: 1
Joined: Mar 2020
#193
2023-02-12, 01:59 PM
switching to raw I can increase the sleep. I am as high as 10 and it is not timing out. Is there anything higher than that you want me to try?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,532
Threads: 964
Joined: May 2006
#194
2023-02-12, 02:57 PM
I fail to understand why you don't want to do what I ask to test without ffplay (to take that out of the equation, that could be the broken pipe), but if it is not timing out then it should work with NextPVR and you can add the comments back. The sleep should be as low as possible to have it work consistanly.

Using raw is recommended so if that works use it, othewise opendct is remuxing the raw stream before sending it to NextPVR.

Martin
run088
Offline

Member

us
Posts: 133
Threads: 1
Joined: Mar 2020
#195
2023-02-12, 09:46 PM
I didnt have that information when I ran those test. Those test were ran during the night before you responded. I was posting the results when I seen your next post.

I will send the logs. I spent hours on

sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 6" 1110 > /dev/null

I just fell asleep before I posted any results with it

It writes to file fine it seems. Its what handles the timeout pretty much any number you want to throw at it.

I tried to just run test on everything I seen you ask about in the thread. Everything I could find in the 20 pages.

At one point I could see the device status changing when I tried to launch tv from nextpvr but it produced failed stream. Now it doesnt  seem to respond at all.

Raw seem to produce alot of errors in the logs but appeared to run fine.


Attached Files
.7z   J.7z (Size: 1.56 MB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,532
Threads: 964
Joined: May 2006
#196
2023-02-12, 10:06 PM
In both these posts I asked for a redirect file test since I didn't care about ffplay.

https://forums.nextpvr.com/showthread.ph...#pid578857
https://forums.nextpvr.com/showthread.ph...#pid578887

Since I wasn't getting the answer I offered to login remotely but you didn't reply to that either so I assume you want to do this mainly on your own, but I am still game to continue.

Is the current status that it works to > /dev/null but transcoded playback in NextPVR is still failing? if I you haven't reinserted the comments then the file will be corrupt.

There will be errors in any QAM broadcasts, that is one reason there is the dynamic option but those errors normally won't impact NextPVR.

Martin
run088
Offline

Member

us
Posts: 133
Threads: 1
Joined: Mar 2020
#197
2023-02-12, 10:32 PM (This post was last modified: 2023-02-12, 10:33 PM by run088.)
I stopped opendct

changed back to raw

uncommented out all the #

set sleep for 7 seconds

ran 2 commands

sudo python3 opendct.py "STOP" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 > /dev/null
sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 | ffplay -i pipe: -v panic


Attached Files
.7z   opendct.7z (Size: 5.34 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,532
Threads: 964
Joined: May 2006
#198
2023-02-12, 10:50 PM (This post was last modified: 2023-02-12, 11:06 PM by mvallevand.)
I don't want to see output to ffplay and you don't need to redirect the stop. Sorry to harp on this but feeding ffplay hurts the test.

sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 > /dev/null

That took a long time for opendct lower the sleep to 4 and change the sock.settimeout(10) from 10 to 15.

Martin
run088
Offline

Member

us
Posts: 133
Threads: 1
Joined: Mar 2020
#199
2023-02-13, 12:04 AM
line 95 changed from 10 to 15

sleep changed to 4

opendct restarted

ran this command once in this log

sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 > /dev/null


Attached Files
.7z   opendct.7z (Size: 5.11 KB / Downloads: 3)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,532
Threads: 964
Joined: May 2006
#200
2023-02-13, 12:43 AM
In those opendct could not open your. ceton device, was this after a reboot?
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (29): « Previous 1 … 18 19 20 21 22 … 29 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get Hauppage firmware running on Linux Mint Higgo 9 1,036 2025-07-09, 07:50 AM
Last Post: Higgo
  Extras Tuners Not Loading on NextPVR 3.1 Linux Install Siftingice 1 319 2025-07-03, 12:12 AM
Last Post: mvallevand
  Extras Tuners Not Loading on NextPVR 3.1 Linux Install Siftingice 0 225 2025-07-03, 12:02 AM
Last Post: Siftingice
  Linux Command Line To Initiate SchedulesDirect EPG Update LinuxDVR 1 564 2025-04-13, 06:35 PM
Last Post: mvallevand
  Linux install failed -- permission denied? FrogFan 4 1,064 2025-03-26, 12:39 AM
Last Post: FrogFan
  Is there a 'recommended' version/release of Linux? Bobthegoldfish 1 680 2024-12-24, 12:28 AM
Last Post: mvallevand
  Downgrade on Linux eriberg 3 805 2024-09-04, 08:46 PM
Last Post: mvallevand
  Pi5 / Firefox 128.0 - ctrl key in devices screen does not work TheRealRoland 4 1,013 2024-08-02, 07:26 PM
Last Post: TheRealRoland
  linux mint 22 bccicone 2 854 2024-08-01, 10:10 PM
Last Post: bccicone
  Client Recommendations on Linux devarionarias 6 2,466 2024-06-18, 04:31 PM
Last Post: devarionarias

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

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

Linear Mode
Threaded Mode