2023-02-11, 09:23 PM
here is the logs. Let me know if you need others
2023-02-11, 09:48 PM
Ok, so you haven't tried to play this in NextPVR yet, just running the script.
When I check your command sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1003 | ffplay -i pipe: -v panic I think you are missing the port number on the test. Does the extra file have an additional parameter after the 1003? Martin
2023-02-11, 09:52 PM
<extras>
<channel name="{channel-name}"> <command>bash</command> <args>-c "/var/opt/nextpvr/scripts/opendct.sh {channel} \"DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1\" 7824\"</args> </channel> </extras>
2023-02-11, 10:03 PM
(This post was last modified: 2023-02-11, 10:05 PM by mvallevand.)
Actually it doesn't matter it will send the default port 7819 for testing (it has been a long time since I had a look at this) you could add 7824 for completeness but it isn't necessary.
This looks good. 16:01:28.774 [SageTVRequestHandler-85CT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1] INFO NIOSageTVMediaServer - Connecting to SageTV server on socket /192.168.2.254:7819... but this means the python server error 16:04:18.794 [SageTVRequestHandler-89:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'STOP DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1' but the server was running and communicating well Edit opendct.py and remove the comment character # in front of lines 136 and 139, 150 and 152 and try the test again. You can redirect to a file instead of ffplay. Martin
2023-02-11, 10:10 PM
no # on those lines
2023-02-11, 10:19 PM
sudo bash opendct.sh 1110 "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" /tmp/some.ts
stills plays 1mb file. That is if you wanted the # in front of the print lines.
2023-02-11, 10:39 PM
That syntax is wrong you want > /dev/null or a file.
Which opendct.py file are you using? Maybe zip it and I can compare with the one I am looking at here, there should be some output to stderr on the console. Martin
2023-02-11, 10:51 PM
sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1003 /tmp/so.ts
and stop seem to work fine and produce files. This is without your last changes
2023-02-11, 11:04 PM
/var/opt/nextpvr/scripts$ sudo bash opendct.sh 1110 "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" /tmp/some.ts
START DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1|1110|12345678|/tmp/some.ts|Great OK Exit GET_SIZE DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1 679996 Exit STOP DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1 OK This is what produces the 1mb file |
|