How to record video by actionscript 3 ? - actionscript-3

Can we record video (capture/ streaming) by actoinscript 3 ? and upload the same to server ?
Anybody have any reference link for it ?
your help will be appreciable
Thank you

Yes, there is support for recording video and surely you can send this data to the server.
There are many tutorials available, you can find them with a simple google search:
https://influxis.com/simple-as3-recorder/
https://code.google.com/p/flvrecorder/ --- has a sample
http://www.purplesquirrels.com.au/2012/12/record-and-play-back-video-with-air-for-ios-on-ipad/
and many, many others.
If you want to use free server, where to send video to, I suggest to look into Red5, it seems that it's not supported for a while now, but the latest releases are running well.
Red5: http://www.red5.org

You can capture audio and video from a webcam using Flash/ActionScript.
The encoded audio and video data is streamed (through rtmp) from the Flash client running in a browser to a media server like Red5, Wowza and AMS where it is saved in .flv, mp4 or .f4v video files.
For the exact client AS3 code see this answer.

Related

how does torrent streaming works using html5?

I stumbled upon this site and I wonder how does it work? I mean the streaming part
I don't think it is torrent streaming. I think it is regulat file streaming. And this file downloads with a torrent client on server side.
For example you can set uterrent (it supports downloading with first parts priority) to pickup new torrents from some folder. It start download automaticly. All you need is start stream this file for user when there is enough data downloaded.
It's not html5 !
All videos are downloaded to servers using NodeJS Web technology.

Streaming Icecast through flash

Hi my name is Tamer and this is very first post in stackoverflow as far as I know. :)
I've been searching this for an issue of mine for a while but haven't found any solutions yet. I want to forward my radio broadcast from it's original host to my embedded flash player once the play button is hit. Is it possible via action script (flash - as3) ? My broadcast is in Icecast format, and I'm playing mp3 but my mount point is not exactly /listen.mp3. It has some more extention like ?auth and some random fixed stuff (I mean, there are some other things at the end of the auth part, but it's same all the time like a fixed link).
Thanks for your help and time!
Yes, you can play your stream with Flash. It doesn't matter what your mount point is. Just plug in the real URL for the stream. The file name extension and what not doesn't matter.
When using the above answer high memnory use may be an issue for your viewers as the "Sound" variable downloads the data while playing.
Would be better off using progressive play/download but would have to change your streaming format from mp3 as it only allows for M4A streaming (AAC audio data in an MP4 container).
var netConnection:NetConnection = new NetConnection();
netConnection.connect(null);
var netStream:NetStream = new NetStream(netConnection);
netStream.play(“http://your.stream.url/stream.m4a”);
Just my 2cents :)

Record Video from Browser using Webcam and Microfone inputs

I need to record a video through user browser using input from camera and microphone and send to my server. Since html5 still doesn't make that magic happen, I'm looking for flash solutions.
Do I really need some flash media server to do that, or can I do a POST request?
I want to get both inputs(webcam and microphone), put them in a .flv and send to my server.
I've seen some implementations using bytearrays to record and send, audio and video separated. The problem is that it generates a series of synchronization problems when you try to compose them in a single file.
If you're still looking for a solution check out:
http://framebase.io
They have an embed-able recording widget that can transcode the videos automatically. I'd check out the docs, but on success, you can run an API call to check the status of transcoding and download it to your server or you can just use your own S3 bucket.

How to record audio and save it in mp3 format in AS3 (Adobe Air2.5)?

I am building one desktop application in Air2.5, which needs to record and save audio.
In AS3 (Specially with Air 2.5), is it possible to record and save audio in mp3 format?
Here is library to convert audio to mp3 :
https://github.com/kikko/Shine-MP3-Encoder-on-AS3-Alchemy
To record audio informations are here :
http://titansturf.in/2010/02/08/fetching-data-from-the-microhpone-and-recording-sound/
This also should be usefull :
http://suzhiyam.wordpress.com/2011/04/14/as3-microphone-record-and-save-as-wave-file/
And about save read this :
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html
I use this pre-built Flash + JavaScript solution. It costs money, but works great. It will record, encode to MP3, and upload via PHP:
http://recorder.denniehoopingarner.com/
Here is a free related example that will use Flash to encode to OGG:
http://labs.byhook.com/2011/02/22/ogg-vorbis-encoder-decoder-for-flash/
I sat next to some Google programmers at a recent hackathon in SF who shared with me that Chrome will have the audio recording flag turned on by default starting April 2013 which technically makes recording in pure JS possible, but I have not seen a solution to encode and upload to a server yet. Good luck!

How to read stream video from IP cam

I am trying to read the streaming from a Network IP Camera.
I can connect to the IP Camera (web server) by proprietary web interface and I can watch the video (h.264 format), but I need to read the video stream and put it in a web page that I am developing.
How can I read only the stream video ?
I think I have to authenticate in some way before read the video stream, right ? (and how ?)
Do exist some particular camera that allow me to read easily the video stream ?
Is there some plugin, applet or something that I can use in my html page ?
I know: to many question :) you can suggest me some web page that can help me.
Thank you,
Alessandro
hej allesandro,
only streaming the h.264 video data looks like a task for RTSP. There are some HTML-plugins for websites which can start a RTSP stream. Either you use one of them or you simply program your own plugin for your website. live555 is a powerful library for RTP and RTSP streaming. Try to find out if your server supports RTSP...
greetings,
jens.