Actionscript 3 :: Encode A Stream Of RGBA Values To Video?
Aug 29, 2011
More specifically: I have a sequence of 32 bit unsigned RGBA integers for pixels- e.g. 640 integers per row starting at the left pixel, 480 rows per frame starting at the top row, repeat for n frames. Is there an easy way to feed this to ffmpeg (or some other encoder) without first encoding it to a common image format?I'm assuming ffmpeg is the best tool for me to use in this case, but I'm open to suggestions (the output video format doesn't matter too much).
I know the documentation would enlighten me if I just knew the right keywords... In case I'm asking the wrong question, here's what I'm trying to do at the highest level: I have some Actionscript code that draws and animates on the display tree, and I've wrapped it in an AIR application that draws BitmapData frame-by-frame. AIR has proved to be woefully inefficient at directly encoding this output- the best I've managed is a few frames per second, and I need to render at least 15 fps, preferably more like 100 fps, which I get out of ffmpeg when I feed it PNG images (AIR can take 1+ seconds to encode one 640x480 png... appalling). Instead of encoding inside AIR I can send the raw byte data out to an encoder or to disk as fast as it's rendered.
If you're wondering why I'm using Actionscript to render an animation or why it has to be encoded quickly, don't. Suffice it to say, the frames are computed at execution time (not stored as an animation in a .swf file, for example), I have a very large amount of video to create and limited time to do so, and using something other than Actionscript to produce the frames is not an option.
View 1 Replies
Similar Posts:
Nov 11, 2010
I am trying to encode and stream live video. I have downloaded both the Flash Media Encoder and Flash Media Server. The problem i have now is, i can't able to connect to Flash Media Server. The FMS url is as default: rtmp://localhost/live. Do i have to purchase a FMS url? How do i make sure that my FMS is running/ activated?
View 1 Replies
Jun 24, 2009
I have a live encode to the media server with dvr enabled for H264/MP3 format. When I try to play the dvr cache stream, all I get is audio and no video. If I switch to VP6/MP3, the stream plays fine. If I do a live encode with no dvr, it streams fine. Does dvr with H264 work only when you flatten the file using F4V post processor tool? Will the dvr cache stream work if I switch to AAC instead of MP3?
View 3 Replies
Sep 17, 2010
What we would like to do is create an archive (f4v or mp4) on the FMS 4 server any live stream that is pushed from our endpoints. Primarily as a backup and if necessary - an editable file within CS4 or CS5.
We are at a University and capture lecture powerpoints natively and sometimes need to edit the files. flv is not enough and we would like to take afvantage of mp4 and the FMS server while we use it for overflow as a recorder.
View 9 Replies
Nov 20, 2009
I have this video that a client want's me to put on his website. Now the video is about 10 minutes long and its made up of about 4 different sections. He wants me to make it so people can click on links to jump around in the video.For instance there is a section called "Home Control" and one called "Lighting" that when clicked would jump to that section of the video.From a bandwith perspective what makes sense. Should I just have one FLV that is the whole video and create markers so that it will just jump to whatever section people want to go to or should I break the video up into 4 different FLV's?
View 2 Replies
Jun 2, 2009
Is there a way to convert an uploaded video file to an flv file? Either through AS3 or through a pre-built app somewhere? Does AS3 have a function built in for converting videos in any way?
View 1 Replies
May 6, 2011
i would like to learn can Flash Media Encoder or other Adobe's product encode video then sent to FMS for streaming by combining two different sources (for example: from two cams).
View 8 Replies
Dec 21, 2009
Is it possible to record video through Flash's "Webcam" facility and receive encoded video on server side without any further processing (i.e. just saving the stream to a file)? Or is server side software always needed to encode the input? If server side software is necessary, are there free / Open Source solutions available?
View 1 Replies
Oct 21, 2011
I have an Adobe Air Flash, Action script 3.0 application. I need to save the webcam (or rather a series of bitmap as frames) to a video file. The video file needs to be compressed and needs to save as the frames go.
View 1 Replies
May 22, 2009
I'm having a bit of trouble with flash cs3 video encoder. I'd like to encode some mpeg files to flv but I keep getting errors when trying to encode. The mpeg files are raw imported from my dvd video cam. I'm guessing they are mpeg-2 720 by 480 res. Quicktime files encode fine but I haven't tried any other video types. I thought it was a codec problem as all I use is vlc for video. So I tried k-lite codec pack nut no success, same errors. Just wondering if anyone had any advice. I suppose I could encode my mpeg files to mov first? But what encoder would I use to keep high quality?
[Code].....
View 7 Replies
Feb 2, 2011
How to encode any video format into flv dynamically so that it can be used for streaming.
View 1 Replies
Aug 12, 2011
I want to encode a video to obtain high quality. Is there any way to encode a video on flash media server?
View 1 Replies
Jun 30, 2010
This will create an flv video file on flash media server:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.publish("yourCamera", "record");
ns.attachVideo(Camera.get());
How can I generate an image for the current video frame every 2 seconds?
View 1 Replies
Feb 16, 2010
For fun I'd like to recreate [URL]. Basically i need to be able to stream webcam video from one computer to another using flash.
View 1 Replies
May 12, 2010
I am trying to style a DataGrid component so that the background is transparent (Flex 4). Rgba colors work fine if I make "alternatingItemColors" an attribute on the component, but if I try to declare it in my css stylesheet, I cannot declare the alpha value.
Works (mxml):
<mx:DataGrid id="songGrid" width="800" height="529" dataProvider="{songs}" itemClick="handleRowClick(event);" x="145" y="168" headerStyleName="dataGridHeader" alternatingItemColors="[0xFFFFFFFF, 0xFFFFFFFF]">
[Code]...
If I enter the values as "0xFFFFFFFF", I get a parse error, because it's not proper css (of course, most of flex's css isn't proper css, but I digress...). So, is there any way to declare the alpha value of these colors in the css?
View 2 Replies
Jul 14, 2009
What is the fastest and most efficient way to get RGBA from an image you don't want to display?
I don't care if it uses air or is backwards compatible with a previous version of the player.
Should I be using file io and reading in the bytes and writing my own parser?
Maybe loadBitmap and getPixel?
Are there certain tricks and optimizations to prevent excess work on the player's side?
View 3 Replies
Dec 17, 2010
We have values generator that outputs someting like FF00FF5F. We have some coordinates like 50, 300. We want to draw on stage. (I mean we opened new .fla doc in flash, pressed f9 and started coding, sorry - I am new to flash)
View 1 Replies
Dec 17, 2010
we have values generator that outputs someting like FF00FF5F. We have some coordinates like 50, 300, 10. We want to draw a point in 3d on stage. Not using PV3d or anething like that. thay say there is going to be no default z sorting but I can live with that...
View 1 Replies
Mar 18, 2012
Is there any library in Action Script that be able to convert any video format to .FLV?
I've been looking for it with no success. I thought that as3 had functions for that purposes but not found.
I want to give the possibility that in my site, users can upload any video, so I need to convert it to a standard and compress it to a fixed resolution.
View 1 Replies
Jun 6, 2011
I have a 100mb movie that my friend wants me to stream onto his website to the size of a youTube HD video.
He would prefer the movie to be loaded onto his host than youtube.
What are possible options?
What would you recommend in converting the 100mb to a smaller size whilst still have an acceptable quality like youTube videos. What size are we looking at for a 100mb downgraded for streaming?
View 2 Replies
Jun 22, 2010
I have to stream videos in my php site? how to do that. any body knows any free flash player given sites link.
View 1 Replies
Sep 17, 2011
How can i stream video live by the help of PHP like live tv? I am willing not to use flash media server. If it is must to use it then which server is free and reliable?
View 1 Replies
Feb 13, 2012
I'm looking to be able to embed an SWF file that will stream videos from a server
It needs to be an SWF because we are embedding the SWF in the OpenSpace Isometric world in order to display video.
View 2 Replies
Oct 2, 2010
I am trying to stream video from several web cams...
View 2 Replies
Feb 21, 2010
Possible to place or insert text on live video stream using the FMS?Whether with any solution or plugin.I am a web radio broadcaster and would like to have information on the screen like the station's phone number instead of having to keep reading it out all the time.
View 2 Replies
Sep 10, 2011
[code]...
As seen above, I have only one idea how to take an external video file which is not in library.If I put this swf to a domain and put in the same domain this video also, what should be the link like.There is an rtmp protocol and fms server which I have little knowledge.Also , is a url loader or request method available for external video files to play in the swf.
View 3 Replies
Mar 1, 2012
i am new to flex. I have this task. My boss wants an application that will enable his secretary in another room listen and view and probably take minutes of his meeting in the conference room. There is a webcam attached to one of the computers in the conference room.
View 1 Replies
Apr 23, 2010
I did a lot of reading and made my own AS3 class for a streaming video player. The class seems to work, i'm getting debug output from the player and hear the sound but the video is not being displayed on the stage. My AS3 code :
ActionScript Code:
//
package net.edje{
import flash.display.*;
[Code].....
View 1 Replies
Mar 21, 2012
How do you stream a live camera feed in a flash/actionscript file?What video format do you need to stream it in a swf?
View 1 Replies
Sep 11, 2009
how to stream a video from within an email? Basically, a client receives an email, and can start to play the video from within the email itself.
View 5 Replies