HOW TO: Stream TV over LAN using secondary card + VLC. (1 Viewer)

htpcNoob

Portal Pro
January 23, 2005
52
0
For a while now, I've wanted my HTPC to stream TV to via TCP/IP. Ive finally succeded :) and here's what I used.

1) VLC 0.8.4a
2) Secondary *SOFTWARE BASED* tv tuner card (explanations why below)
3) Thats it :)

OK. Explanation for #2. I have a PVR-250 on my HTPC that I use to view and record tv. But to have it stream simultaneously over my LAN i needed a secondary card. I had a software based card (Compro Videomate Gold+) lying around so i used that as my streaming card. In fact, to stream over the LAN, it is better to use a software based card rather than a hardware encoding card.

WHAT????? you may ask. Here is a link explaining why: http://www.aardvark.co.nz/pvr/pvr7.shtml. Consider what the article says about editing the RAW video instead of an MPEG. The same logic can be applied to transcoding video for streaming. The CPU usage, believe it or not, would be about the same regardless of using an mpeg encoder card (PVR-250) or a 'dumb' card. So overall cpu usage under vlc, would be about the same. For anyone interested, here my VLC command line to start the streaming:

Code:
start /min /low "C:\Program Files\VideoLan\VLC\vlc.exe" -I rc --ttl 2 dshow:// :dshow-vdev="VideoMate TV Capture" :dshow-adev="NVIDIA(R) nForce(TM) Audio" :dshow-size="320x240" :dshow-caching=200 :dshow-chroma="NTSC_M" :dshow-fps=0.000000 :dshow-config :no-dshow-tuner :dshow-tuner-channel=3 :dshow-tuner-country=1 :dshow-tuner-input=0 :sout=#transcode{vcodec=mp4v,vb=768,scale=1,acodec=mp3,ab=128,channels=2}:standard{access=mmsh,mux=ts,url=:1234}} --sout-transcode-fps=30 --one-instance

Thats a looooong command line, well for the average windows user anyway.

Now theres an issue that I think is more personal (or maybe its VLC). The :dshow-config actually pops up 4 (thats right, FOUR) dialog box for the tv tuner's various properties. If i dont do this, VLC causes my system to BSOD :-(. On top of this, I use a remote to control my HTPC so the 4 dialogs were a real distraction. So I wrote a small program that uses windows FindWindow and SendMessage API's to actually press the OK buttons on all 4 popup dialog boxes automatically :). Luckily, I didnt have to set any options on the dialog boxes, just had to press to OK buttons.

I set the executable to run automatically before Media Portal starts when windows loads. To access my stream from another computer I use the following command using VLC:

Code:
"C:\Program Files\VideoLAN\vlc.exe" --crop-geometry 300x230+4+6 --width 450 --height 345 mmsh://192.168.1.100:1234

The crop-geotmetry is used to crop the corners of the image because of the 'noisy' areas that are present in all standard tv tuners around the corners.

Resource usage on my system:
My system is an A7N-266VM/AA mATX Mobo with 512mb or RAM, AthlonXP 1800+ processor, Radeon 9000AGP 64MB
CPU usage: between 10-18%. Occasional spike up to 23%.
Memory Usage of VLC: 25MB.
Also, from my VLC launch code above, Ive set the process priority to low using the /low parameter. That makes VLC only use cpu that is IDLE.

Other than a couple of RARE stutters, I have no problems streaming to 4 PC's simultaneously (2 wirelessB's). while running mp, listening to music, watching/recording tv using my PVR-250 or watching a dvd/divx. But YMMV depending on your system specs/windows setup/etc.

As a side note, when you configure the tuner card properties you should set the resoution of the image to reflect that of the command used in VLC. So if in VLC you encode to resolution 320x240 you should set the the tuner to output to 320x240. That way VLC wont use cpu resources 'downsizing' the image.
 

weekendowel

Portal Member
September 5, 2005
31
12
Stockholm
Home Country
Sweden Sweden
Nice!

I tried to get VLC to work this way but I didn't success the first time I tried it :)


Are you able to change channels from the remote machine or is it always the one you have on the serving machine?
 

fera

Portal Pro
October 13, 2005
71
0
That sounds interesting! Would it also work the other way around? (MP without a tv card...)
 

Users who are viewing this thread

Similar threads

P.S. - Strangely, the TV Server my single seat setup (1.27 on a modest machine running Windows 10 Pro x64) is working from my office machine MP client. Same exact network, firewall, Defender settings. It's a slightly older version of Win 10 though - I haven't updated to 20Hx on it yet. Maybe I shouldn't (or maybe I should image it...
P.S. - Strangely, the TV Server my single seat setup (1.27 on a modest machine running Windows 10 Pro x64) is working from my...
Let me start by asking if anyone has TV Server running PROPERLY on a Windows 10 machine, and if so are you using RTSP or UNC share...
Replies
9
Views
840
Would have been cool, but no. For this, and a few other reasons, I moved on to Channels DVR. More or less the same idea though, as I'm using Channels as a backend for Plex with xTeVe as a virtual tuner. I've lost touch somewhat with what's going on with MePo, but Channels is being very actively developed (which is key, as there's a...
Would have been cool, but no. For this, and a few other reasons, I moved on to Channels DVR. More or less the same idea though...
Love MediaPortal 1! I've been using it for years, originally with the MePo client and for the last few years as a backend for...
Replies
6
Views
2K
How can I use VLC on a client device (such as another computer on my network) to play live TV from my MP 2.1 server? For example, I have VLC Media Player installed on my Windows laptop. A full installation of MP 2.1 (server and client) is on another Windows machine on the same LAN. As far as I can tell, to access a stream, I'm...
How can I use VLC on a client device (such as another computer on my network) to play live TV from my MP 2.1 server? For example...
How can I use VLC on a client device (such as another computer on my network) to play live TV from my MP 2.1 server? For example...
Replies
0
Views
2K
  • Locked
Great! Will you capture this in a Jira so that it shows up in the Changelog?
Great! Will you capture this in a Jira so that it shows up in the Changelog?
MediaPortal 2 Version: 2.1.3 Description Hi there, first of all many thanks for all the great work you are doing! I run a...
Replies
6
Views
1K
Hi mm1352000, first thanks for your lightning fast reply. Of course this is not an issue of Mediaportal. Sorry if this somehow sounded like that. I just wanted to check, if someone has made similar experience and possibly found a solution/driver that works. But the chances that a similar configuration is in use is pretty low, I...
Hi mm1352000, first thanks for your lightning fast reply. Of course this is not an issue of Mediaportal. Sorry if this somehow...
Hi, I guess I need some help from the experts here. If you are looking for the Log-Files, please be so kind and take a minute to...
Replies
2
Views
991
Top Bottom