2021-02-20, 04:03 PM
I am having an issue with my LAN and V5 using the Hauppauge DCR-3250 Cable Card Triple Tuner. It is a TCP issue and will take some time to resolve. In the meantime, I am using V4, which uses UDP, as a workaround. I would like to return to V5 but I need to create an "extra" device to access the tuner using UDP. My research into creating an extra device has come from the Wiki snd examples from two other extra sources:
extra-locast.xml:
<channel name="WCBS" number="2.1" group="locast" tvg-id="16689.locast.org" output="m3u8">
<command>cmd</command>
<args>/c "C:\Users\Public\NPVR-data\scripts\locast\locast.bat" 104</args>
<icon>https://static.locastnet.org/logo/NewYork/WCBS.png</icon>
</channel>
Locast.bat:
@echo off
python C:\Users\Public\NPVR-data\scripts\locast\locast.py --tune %1 %2
extra-nasa.xml:
<channel name="NASA TV Media">
<command>c:/Program Files/NextPVR/Other/ffmpeg.exe</command>
<args>-user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0" -referer "https://www.nasa.gov/" -headers "Cookie: domain: nasa-i.akamaihd.net\r\nOrigin: https://www.nasa.gov" -i https://nasa-i.akamaihd.net/hls/live/253..._2000.m3u8 -codec copy -f mpegts -</args>
</channel>
If added the following channel to extra-nasa.xml for accessing the tuner device:
<channel name="UDP Source">
<command>cmd</command>
<args>/c "i:\Nextpvr-capture\curlcap\StartUDPTuner.bat"</args>
</channel>
StartUDPTuner.bat:
@echo off
:: Clear the tuner
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/channel none
:: Tune vChannel 504
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/vchannel 504
:: Direct output to target PC IPaddr and port using UDP and start the stream
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/target udp://192.168.1.154:5004
:: Receive stream with FFMPEG and re-redirect to stdout.
"C:\Program Files\NextPVR\Other\ffmpeg.exe" -f mpeg -i udp://192.168.1.154:5004 -f mpegts
::"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/channel none
Trying to watch the channel with the desktop app produces no picture or sound though the tuner is sending the stream: Launching VLC specifying port 5004 produces perfect picture and sound. If I tell FFMPEG to save the stream as a .ts file, file playback is flawless.
Attached are the logs from a service restart to cancelling the desktop app's empty screen.
Does anyone have a suggestion about what might be wrong? I'd really appreciate the help.
Thanks.
extra-locast.xml:
<channel name="WCBS" number="2.1" group="locast" tvg-id="16689.locast.org" output="m3u8">
<command>cmd</command>
<args>/c "C:\Users\Public\NPVR-data\scripts\locast\locast.bat" 104</args>
<icon>https://static.locastnet.org/logo/NewYork/WCBS.png</icon>
</channel>
Locast.bat:
@echo off
python C:\Users\Public\NPVR-data\scripts\locast\locast.py --tune %1 %2
extra-nasa.xml:
<channel name="NASA TV Media">
<command>c:/Program Files/NextPVR/Other/ffmpeg.exe</command>
<args>-user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0" -referer "https://www.nasa.gov/" -headers "Cookie: domain: nasa-i.akamaihd.net\r\nOrigin: https://www.nasa.gov" -i https://nasa-i.akamaihd.net/hls/live/253..._2000.m3u8 -codec copy -f mpegts -</args>
</channel>
If added the following channel to extra-nasa.xml for accessing the tuner device:
<channel name="UDP Source">
<command>cmd</command>
<args>/c "i:\Nextpvr-capture\curlcap\StartUDPTuner.bat"</args>
</channel>
StartUDPTuner.bat:
@echo off
:: Clear the tuner
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/channel none
:: Tune vChannel 504
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/vchannel 504
:: Direct output to target PC IPaddr and port using UDP and start the stream
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/target udp://192.168.1.154:5004
:: Receive stream with FFMPEG and re-redirect to stdout.
"C:\Program Files\NextPVR\Other\ffmpeg.exe" -f mpeg -i udp://192.168.1.154:5004 -f mpegts
::"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config" 192.168.1.155 set /tuner0/channel none
Trying to watch the channel with the desktop app produces no picture or sound though the tuner is sending the stream: Launching VLC specifying port 5004 produces perfect picture and sound. If I tell FFMPEG to save the stream as a .ts file, file playback is flawless.
Attached are the logs from a service restart to cancelling the desktop app's empty screen.
Does anyone have a suggestion about what might be wrong? I'd really appreciate the help.
Thanks.
Later...JohnC
System Status: Humming nicely!
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC
System Status: Humming nicely!
Desktop: Intel DX38BT MB - Intel Q9650 3GHz Quad - NVIDIA GeForce GTX 1050 Ti Graphics
Software: Win 10 Pro(Build 1909) - NextPVR - WinTV8
Video: Verizon FiOS - Hauppauge DCR-3250 - Hauppauge 1512 HDPVR2
RaspberryPi 4 Raspbian and FLIRC