View previous topic :: View next topic |
Author |
Message |
col l33t
Joined: 08 May 2002 Posts: 820 Location: Melbourne - Australia
|
Posted: Tue Apr 05, 2005 6:08 am Post subject: vlc as windows media streaming server |
|
|
emerge tvtime
emerge xawtv
emerge smixer
USE="faac" emerge ffmpeg
USE="dvd ffmpeg mpeg mad wxwindows aac dts a52 ogg flac theora oggvorbis matroska freetype bidi xv svga gnutls stream vlm httpd cdda vcd cdio live v4l mp3 ffmpeg-faac" emerge vlc
edit /etc/smixer.conf
Code: |
# set line input recording
recsrc Line
|
This is a small shell script that grabs tv & audio from your bttv card. Things you can change here are vb (video bitrate) ab (audio bitrate), size (video size), and local IP address. This is good for a 256k uplink. When you run the script you can choose your channel and video source input using tvtime and then close tvtime.
Code: |
#!/bin/bash
#first choose your channel with tvtime
tvtime
v4lctl volume mute off
smixer -s /etc/smixer.conf
#this is all one line
vlc -vvv 'v4l:///dev/video0:norm=pal:size=320x240:adev=/dev/dsp' --sout '#transcode{vcodec=WMV2,vb=200,acodec=mp3,ab=48}:duplicate{dst=std{access=http,mux=asf,url=192.168.0.1:81}}'
exit 0
|
Then open windows media player and open url http://192.168.0.1:81
I use this to send TV to a friend overseas who uses windows. Here is some code to embed the feed into a web page ** remember to change the IP address ** :
Code: |
<OBJECT ID="MediaPlayer1" width=640 height=480
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName"
VALUE="http://youripaddress:81">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<EMBED type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
SRC="http://youripaddress:81" autostart="true" name="MediaPlayer1" width=640 height=480>
</EMBED>
</OBJECT>
|
If anyone has h264 working on vlc let me know how you did it. I would like to make a version of this for quicktime. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|