Video Stream

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1825
  • Loc: In the Great White North

Post 3+ Months Ago

Anyone know if its possible to use Flash to capture and display a video stream? I'm looking to capture a webcam/security cam stream and display it remotely. It seems like it should be possible, especially now that the Flash9/10 players can display an h.264 quicktime that hasn't been converted to an flv.

Ideas? Resources? Anyone done this?
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23469
  • Loc: Woodbridge VA

Post 3+ Months Ago

How is your camera outputting the stream?

Streaming quicktime movies is easy. Basically when importing the video have the mov file already on a web server and choose the Import option for already deployed to a webserver. This is a quickie .mov stream

If I'm understanding it right Flash converts it to FLV on the fly.

However, I think the feed from your webcam is going to have to be saved in a streamable format like .mov first. I don't know of anyway to "capture" a live stream in Flash.

At work an external company set us up with a proprietary encoding software. I basically had four cameras hooked up to an encoder card in a standard PC. I don't know anything about how the software works, but I'm fairly certain that it encoded it and used MMS - Microsoft Media Services to send to the server, because the object code used to display the stream uses the Windows Media Player 10 clsid 6BF52A52-394A-11D3-B153-00C04F79FAA6. However, the files that ran our video also included a dll file which I have no way to decompile and figure out what it is or does. Don't know if it's related or not.

I think to rebroadcast a live stream over the web you'll need to look into the MMS or possibly better RTSP - Real Time Streaming Protocol.

This page is pretty informative about what the protocols are ... tocols.htm

However, don't have time to look up much detail on how to use them for a purpose like you have in mind.

MMS - Microsoft Media Services

Microsoft's streaming server uses the Microsoft Media Services (MMS) protocol (also called NetShow Services) to transfer unicast data. MMS can be transported via UDP or TCP (MMSU and MMST protocols). If the Windows Media Player client cannot negotiate a good connection using MMS over UDP, it will resort to MMS over TCP. If that fails, the connection can be made using a modified version of HTTP (always over TCP). This is not as ideal for streaming as MMS over UDP, but ensures connectivity nonetheless.

The default protocol for streaming Windows Media is not MMS, but RTSP.

The default port for MMS is 1755.
RTSP - Real Time Streaming Protocol

The Real Time Streaming Protocol (RTSP), developed by the IETF and published in 1998 as RFC 2326, is a protocol for use in streaming media systems which allows a client to remotely control a streaming media server, issuing VCR-like commands such as "play" and "pause", and allowing time-based access to files on a server.

Some RTSP servers use RTP as the transport protocol for the actual audio/video data. Many RTSP servers use RealNetworks's proprietary RDT as the transport protocol.

RTSP can be transported via UDP or TCP (RTSPU and RTSPT protocols).

The default port for RTSP is 554.

This is the object code they used to embed the stream in the website. Thought I'd include it in case it gives you any ideas.

Code: [ Select ]
<OBJECT height=240 width=320
                  classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 VIEWASTEXT>
    <PARAM NAME="URL" VALUE="<%=url%>">
    <PARAM NAME="rate" VALUE="1">
    <PARAM NAME="balance" VALUE="0">
    <PARAM NAME="currentPosition" VALUE="0">
    <PARAM NAME="defaultFrame" VALUE="">
    <PARAM NAME="playCount" VALUE="1">
    <PARAM NAME="autoStart" VALUE="1">
    <PARAM NAME="currentMarker" VALUE="0">
    <PARAM NAME="invokeURLs" VALUE="-1">
    <PARAM NAME="baseURL" VALUE="">
    <PARAM NAME="volume" VALUE="50">
    <PARAM NAME="mute" VALUE="-1">
    <PARAM NAME="uiMode" VALUE="none">
    <PARAM NAME="stretchToFit" VALUE="1">
    <PARAM NAME="windowlessVideo" VALUE="0">
    <PARAM NAME="enabled" VALUE="-1">
    <PARAM NAME="enableContextMenu" VALUE="-1">
    <PARAM NAME="fullScreen" VALUE="0">
    <PARAM NAME="SAMIFilename" VALUE="">
    <PARAM NAME="captioningID" VALUE="">
    <PARAM NAME="enableErrorDialogs" VALUE="0">
    <PARAM NAME="_cx" VALUE="8467">
    <PARAM NAME="_cy" VALUE="6350">
  1. <OBJECT height=240 width=320
  2.                   classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 VIEWASTEXT>
  3.     <PARAM NAME="URL" VALUE="<%=url%>">
  4.     <PARAM NAME="rate" VALUE="1">
  5.     <PARAM NAME="balance" VALUE="0">
  6.     <PARAM NAME="currentPosition" VALUE="0">
  7.     <PARAM NAME="defaultFrame" VALUE="">
  8.     <PARAM NAME="playCount" VALUE="1">
  9.     <PARAM NAME="autoStart" VALUE="1">
  10.     <PARAM NAME="currentMarker" VALUE="0">
  11.     <PARAM NAME="invokeURLs" VALUE="-1">
  12.     <PARAM NAME="baseURL" VALUE="">
  13.     <PARAM NAME="volume" VALUE="50">
  14.     <PARAM NAME="mute" VALUE="-1">
  15.     <PARAM NAME="uiMode" VALUE="none">
  16.     <PARAM NAME="stretchToFit" VALUE="1">
  17.     <PARAM NAME="windowlessVideo" VALUE="0">
  18.     <PARAM NAME="enabled" VALUE="-1">
  19.     <PARAM NAME="enableContextMenu" VALUE="-1">
  20.     <PARAM NAME="fullScreen" VALUE="0">
  21.     <PARAM NAME="SAMIStyle" VALUE="">
  22.     <PARAM NAME="SAMILang" VALUE="">
  23.     <PARAM NAME="SAMIFilename" VALUE="">
  24.     <PARAM NAME="captioningID" VALUE="">
  25.     <PARAM NAME="enableErrorDialogs" VALUE="0">
  26.     <PARAM NAME="_cx" VALUE="8467">
  27.     <PARAM NAME="_cy" VALUE="6350">
  28.     </OBJECT>

In case you want to check it out, this is the company that set us up using the Cybervu software

Unfortunately, you may have to be on a Windows Server to use it as they use ASP code to stream it.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1825
  • Loc: In the Great White North

Post 3+ Months Ago

Hey thanks. I tried google but I just got lists and lists of flv players and converters. /* Rant */ Man whats with those things do they give you a block of gold for a $12 sale referral? /* rant */

Anyway the concept of real time flv encoding is interesting. I'll look into that and what kind of money is available for a rtsp server.

We have a client who wanted to combine several different streams (possibly from different locations) into one viewer application. We're just in a discovery phase right now and Flash seems like the obvious answer, but there's always the option of jQuery and some hide/show content hotness.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 8 guests
  • 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 post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.