Captain_Kurtz
Registered:1421034362 Posts: 5,066
Posted 1553300293
· Edited
Reply with quote
#1
My desktop PC has a TBS6983 satellite tuner card installed. I'm using TSReader to control and tune the card. TSReader uses VLC to play a selected channel over HTTP via the loopback adapter address (127.0.0.1:1234). I was trying to figure out how to stream the satellite channel to VLC running on other computers on the LAN - specifically my laptop in this example. My ultimate goal is to make the stream DLNA compatible (using serviio maybe?) and send it directly to the TV, but I'm not there yet. These are very basic functions, but it took a lot more time and effort than I expected to get it to work because I wasn't fluent in VLC command line and much of the documentation online is either outdated, incomplete, or confusing. So this might be very basic to some of you, but it might save other people some time. I did search this forum (and the web) for specific instructions first, but didn't find anything recent or exactly what I was looking for. TSReader has a very neat feature on the Playback/VLC menu, that you can define up to 16 configurations (different sets of command line parameters) to pass to VLC; just click on "Settings" at the bottom of the menu. The first configuration, "Play", is already defined, like this:Description: Play Command: <IP> It simply passes the loopback address and port 1234 to VLC (127.0.0.1:1234), which conveniently is the address that TSReader is streaming to, and VLC launches and plays it. The "<IP>" at the start of each command must be there, and it's literally just the letters IP - don't substitute an actual IP address. I believe it gets parsed as the loopback address. Here are the Configurations that I added. Note that 192.168.1.27 is my desktop's IP address (host) and 192.168.1.22 is my laptop's IP address (client). You of course have to change those to your corresponding addresses. I set up the 2nd configuration to stream using HTTP like this:Description: HTTP Stream Command: <IP> --qt-start-minimized --sout "#standard{access=http,mux=ts,url=192.168.1.27:8080}" Note that VLC will start minimized in the system tray, and it will not play the stream locally on the desktop/host - it will be blank (which is why I have it start minimized to the system tray). This is to cut down on the CPU load on the desktop PC for high bit rate channels or feeds. (Note that there is a quirk whereby TSReader doesn't seem to properly shut down VLC if it's running minimized to the system tray.) If you don't want that, simply leave out the first part:Command: <IP> --sout "#standard{access=http,mux=ts,url=192.168.1.27:8080}" However, again VLC on the desktop will be streaming only, and not also playing the channel, which is why my 3rd configuration is:Description: Play and HTTP StreamCommand: <IP> --sout "#duplicate{dst=display,dst=standard{access=http,mux=ts,url=192.168.1.27:8080}}" this launches and plays the channel on the desktop and also streams it over HTTP, using just one instance of VLC running on the desktop. To play the stream on my laptop, I open VLC and from the Media menu choose "Open Network Stream" and enter the IP address and port of the desktop (host) VLC server like this:http://192.168.1.27:8080 (You can change the 8080 to any available HTTP port on the desktop/host.) OK, those both work great, but HTTP isn't ideal for our purposes because it uses TCP and thus has "guaranteed packet delivery", which is great when you are transferring a file, but for streaming video you're better off if it just drops packets if it encounters network congestion or other connectivity issues. A much better choice is the RTP protocol, which uses UDP, isn't afraid to drop a few packets, and has lower overhead. (Both RTP and HTTP support the "transport stream" output of TSReader without needing to transcode anything.) Here are the RTP configurations:Description: RTP Stream Command: <IP> --qt-start-minimized --sout=#rtp{mux=ts,dst=192.168.1.22} Description: Play and RTP Stream Command: <IP> --sout "#duplicate{dst=display,dst=rtp{mux=ts,dst=192.168.1.22}}" To play the stream on my laptop, I open VLC and from the Media menu choose "Open Network Stream" and enter the IP address and port of the desktop (host) VLC server like this:rtp://192.168.1.27@192.168.1.22 (The default port 5004 is being used and thus isn't specified in those examples. You can change it to any available rtp port on the desktop/host, but it has to be even.) Note that simply entering rtp://192.168.1.27 (the desktop IP address) does *not* work. Also, I used "unicast", the simplest case of RTP streaming, so the laptop's IP has to be specified in the configurations (as the destination, "dst=") and only the laptop can play that stream. You can use the "duplicate" command to send the stream using unicast to more than one location, e.g.:<IP> --sout "#duplicate{dst= rtp{mux=ts,dst=192.168.1.22} ,dst=rtp{mux=ts,dst=192.168.1.xx}}" and RTP has a "multicast" command, but I haven't figured that out yet. Anyway, that's a start and I hope it helps. There's so much more that can be done using the VLC Configurations - transcoding, multicasting, record to a file (manual DVR), etc.
Captain_Kurtz
Registered:1421034362 Posts: 5,066
Posted 1553301686
Reply with quote
#2
P.S. If you're trying to get HTTP streaming working, then make sure that on your desktop/host computer, that in VLC Preferences/Advanced Settings/Main interfaces, that "Web" isn't selected because it won't work. Not sure what the conflict is - probably with port 8080; tried changing to 8090 but that didn't work either; maybe something in the upper end of the range like 48080 might work? Don't know, I didn't try it because I have no need to have "Web" selected.
TorryOne
Registered:1198359249 Posts: 84
Posted 1553302497
Reply with quote
#3
I find all of that a bit curious,, as I run essentially the same setup, the identical TBS tuner, TSReader, and VLC. In addition, I run EBSpro on the front end. It all works marvelously well as integrated. Having a spectral scan rather very quickly is a Godsend verses blind scanning, which would drive me out of my mind 😉
Captain_Kurtz
Registered:1421034362 Posts: 5,066
Posted 1553302889
· Edited
Reply with quote
#4
Great, thanks for the tip. I think it might not be obvious to someone unfamiliar with the VLC command line interface how to stream over the network from TSReader using RTP, and that is a very useful feature to have! Other than watching on another computer, you could stream to a computer running VLC on linux, with the output going to the TV. Have you figured out how to stream over the network to a DLNA enabled TV?
TorryOne
Registered:1198359249 Posts: 84
Posted 1553303603
Reply with quote
#5
Actually, I have streamed using DLNA. All of my displays about the house are Samsung and networked (via cat5E).. It worked fairly well, but I did not fine tune the transcoding settings completely and experienced some video studdering on high bit rate muxes.
Captain_Kurtz
Registered:1421034362 Posts: 5,066
Posted 1553304144
Reply with quote
#6
Thanks. I also have a Samsung, also hardwired. I would be most thankful if you would share your settings and any tips for streaming using DLNA. Did you use a program like Serviio to transcode/encapsulate/serve the stream? Or is there a way to have VLC act as the DLNA server directly?
TorryOne
Registered:1198359249 Posts: 84
Posted 1553304851
Reply with quote
#7
I will have to revisit that for my setup/settings. I found it a bit counter intuitive to transcode a beautiful first generation feed as I now have a large UHD display connected directly to this PC. It was much more entertaining when there were a lot more unencrypted backhauls. Nothing was better than NFL football and the commentators just ragging on some teams during the commercial breaks..
Captain_Kurtz
Registered:1421034362 Posts: 5,066
Posted 1553307766
Reply with quote
#8
Quote:
I found it a bit counter intuitive to transcode a beautiful first generation feed as I now have a large UHD display connected directly to this PC.
I agree - I don't want to lose any picture quality if I can help it. But, it's also counter intuitive to have to use a computer graphics card to render the video, when my 4K TV has the hardware to do that built in.
rempfer
Registered:1287496390 Posts: 1,649
Posted 1768858253
Reply with quote
#9
This isn't quite on topic, but I didn't want to start another "TSReader" thread. Instead of asking how to output a stream FROM TSReader, I would like to find out how to OPEN a rtp stream with TSReader. I've tried everything I can think of it and won't quite do it. I'm sending a stream from dvbstream on a Linux machine to a Windows PC on the same LAN subnet. I know it's working, because on the Windows machine I can open the stream with VLC: But for the life of me, I cannot get TSReader to open the stream. The stream itself is of a single MUX with multiple PIDS. As I say, the above opens in VLC and one can choose from the channels VLC sees. Not so TSReader.
On a side note, if I send this stream to a file, TSReader opens it just fine and shows the list of broadcasts.
Please help?