MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » MyTV - Engine 0.2 » Tips and Tricks


Tips and Tricks Post your Tips and Tricks in here.

Reply
 
Thread Tools Display Modes
Old 2006-01-19, 05:21   #1 (permalink)
Portal Member
 
Join Date: Jan 2005
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts


Default HOW TO: Stream TV over LAN using secondary card + VLC.

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.
htpcNoob is offline   Reply With Quote
Old 2006-01-19, 19:00   #2 (permalink)
Portal Member
 
Join Date: Sep 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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?
weekendowel is offline   Reply With Quote
Old 2006-01-19, 19:34   #3 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts


Default

That sounds interesting! Would it also work the other way around? (MP without a tv card...)
fera is offline   Reply With Quote
Old 2006-03-19, 22:34   #4 (permalink)
Super Moderator
 
Spragleknas's Avatar
 
Join Date: Dec 2005
Location: Rogaland
Age: 32
Posts: 3,810
Thanks: 179
Thanked 90 Times in 76 Posts

Country:

My System

Default

Gotto remeber this. Getting TVoIP / IPTV in nov/des.
__________________
Please read -> HOW TO START A SUPPORT THREAD !!!
Support MediaPortal! Donate by clicking HERE
Dedicated HTPC board (Norway) -> MSPC.no
Spragleknas is offline   Reply With Quote
Reply

Bookmarks

Tags
card, lan, secondary, stream, vlc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to start timeshifting Unable to create graph Topher5000 General Support 31 2008-09-06 18:35
Twinhan 1034 (Mantis) card stream fail to stream over network dutch_ pre 1.0 RC1 0 2006-11-16 15:56
TV recording question/problem 'Arry Installation, configuration support 9 2006-09-22 14:14
Recording from TV 'Arry General Support 2 2006-09-20 01:12
Cant get MyTV to work (2.0 RC3)? mdolan General Support 3 2006-03-30 15:58


All times are GMT +1. The time now is 19:03.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden