views:

390

answers:

2

Does flash provide an api to deal with remote stream like IP camera does?

A: 

No.

Flash can only handle .flv video streams, which none of publicly available IP cameras can produce.

Also, you are very limited on manually handling this, as Flash allows external network connections only when target "server" is going to allow flash connections, which your IP camera obviously would not allow.

BarsMonster
We can stream pc camera,but can't IP camera?
wamp
Yes, IP cameras are totally different.Even if Adobe would want to implement such support, it would be extremely hard to build a universal solution. Flash is client-side software, so it is not supposed to proxy video stream with re-converting on-the-fly.
BarsMonster
Live stream from camera is just re-converting on-the-fly, which is supported seeminglessly...
wamp
For USB cam it's not reconverting, it's just compressing from RAW video.You can't even be sure which compression format used by IP Camera, that's why it's hard to support it.
BarsMonster
A: 

Axis has a number of IP cameras that directly support RTMP:

http://search.axis.com/search?restrict=&ie=%3DUTF-8&site=All_sites&output=xml_no_dtd&client=axis_com&lr=%3DUTF-8&proxystylesheet=axis_com&oe=%3DUTF-8&q=rtmp&btnG.x=0&btnG.y=0

Wowza can re-transmit an RTSP stream as RTMP. It's not necessary to actually transcode to do this. The same video can be transmitted as either RTSP or RTMP and it's just a matter of different transmission protocols. Software can capture one and retransmit the other without actually transcoding the video.

http://www.wowzamedia.com/forums/showthread.php?t=6470

I was sure FMS supported this too, but I couldn't find any definitive references.

Here's an example where someone connects to an Axis IP camera and rebroadcasts the image to FMS for streaming to Flash (which involves fully decoding and re-encoding):

http://www.geekorgy.com/index.php/2010/06/ip-camera-to-fms-flash-video-howto-osx/

Here's an announcement that the first IP camera with built-in RTMP support exists, although either I'm blind or it fails to mention which camera it's referring to (or perhaps it's just an early beta and thus not mentioned):

http://groups.google.com/group/c-rtmp-server/browse_thread/thread/f5de18f4e8b5ea5f

Sam
Do you mean there is no way to support arbitary IP cams?
@user198729, no, you cannot support any arbitrary IP camera. **Nothing can support any arbitrary camera**. The camera can provide any variety of video codecs over various protocols. Many IP cameras are security related and only provide video in a proprietary format that requires custom software they provide (for example, the Panasonic IP cameras in our building do this).
Sam