Vlad: Home:   Demo User Sat, 06 Mar 2010 15:10:04
Home
About
    Reading
    Shooting
    Pictures
Forums
Software
    vTranslator
    OSSWEB
    OSSMON
    Maverix
    LMBOX
    Naviserver
News
Weather
Streaming with NaviServer and Flash player
To build Google-like video streaming page using naviserver nad nsffmpeg is
very easy. Assuming you have Happauge WinPVR card with mpeg encoder and
you want to be able to watch TV from the Web page without installing
special video player like VLC, Mplayer or Xine, just using Flash plugin.

Get Flash video player from
http://www.jeroenwijering.com/?item=Flash_Video_Player.

Create html page video.html and put it under /usr/local/ns/html or
/usr/local/ns/servers/server1/pages.

<object id=player type="application/x-shockwave-flash"
width="260" height="160" wmode="transparent"
data="flvplayer.swf?file=video.flv&autoStart=false" >
<param name="movie" value="flvplayer.swf?file=video.flv&autoStart=false" />
<param name="wmode" value="transparent" />
</object>

create Tcl script video.tcl and put it under
/usr/local/ns/modules/tcl where ity will be loaded
automatically on startup.

ns_register_proc GET /video.flv video_flv

proc video_flv { args } {

ns_write "HTTP/1.0 200 OK\r\nContent-Type: video/mpeg\r\n\r\n"
ns_ffmpeg transcode -i /dev/video0 -f flv conn:
}

Point you browser to your /video.html, then click on video
plager, you should be able to see video coming from WinTV
PVR card.

Other Postings:

Create USB MSDOS bootable disk in Linux
Simple GTK mixer
Emdedding VLC into SDL application
Reverse engineering PostgreSQL with Visio
Benchmarking Web Frameworks
Naviserver site
Streaming with NaviServer and Flash player
Future TV service
Naviserver project
LMBOX project is out
New demo of OSSWEB