ActionScript 3 :: Encode Raw Data From Microphone SampleData Event
Aug 9, 2010
I get a raw data from Microphone's SampleDataEvent, and I want to encode this data before streaming to my server. So I'd like to know if there any standard audio encoder provided in actionscript3? Or do I have to implement it myself? I know that the Microphone class provide 2 codec (Nellymoser and Speex) that can be used when sending a stream to Flash Media Server( via NetStream) only. Is there any way we use this codec to encode raw data?
View 1 Replies
Similar Posts:
Dec 19, 2011
We need send h264 from flash to Wowza and after to vlc by RTSP protocol. But if we send sound in Speex codec, we not listens sound. what it is possible to make?
View 1 Replies
Dec 13, 2010
I have bought Learning AS 3.0 (O'Reilly) but I have been having difficulty getting one of the tutorials to run. The tutorial shows how to record data from a microphone to a byte array, playback the saved data and save as a WAV file. For some reason, I can't get this working. When the swf runs, the Flash Settings screen doesn't pop up to request permission to access the microphone but I can still trace properties such as gain.
I've uploaded a zip containing all the classes and an FLA - just use RecordMicrophone_Example.as file as the document class. Here is the problematic area of the code:
[Code]....
View 0 Replies
Mar 13, 2011
saving the data from microphone to hard disk.I manage to save the data but is heavily distorted.Here is the as3 code:[CODE]
import flash.events.ActivityEvent[code]........
View 4 Replies
Apr 1, 2005
I have on my website a formular which sends its data to my database via a pho script.
everything works fine except for words like "� � � � ...." french and german letters like � �....etc
I tried to encode the data with rawurlencode or utf8_encode but still the same prob, the database can't read the letters �,�,�...etc is it possible to encode the data within AS? it seems to me the only solution....or not? something else, I ha ve a php script which takes from my DB data containing letters like �,�...etc...and before sending it to AS I encode it with utf8_encode and this wokrs really fine.
View 6 Replies
Nov 29, 2010
Can any one provide me with an example of how to encode data and pass it to a php file using JSON and flash?
View 1 Replies
Aug 24, 2011
I have an actionscript 2 code that uses base64 to encode/decode incoming data. problem is that data is binary and includes null (0 characters), actionscript 2 fails when handing null to charCodeAt.I figured what I need is an actionscript 2 lib that can do base64 encoding/decoding on an array rather than a String.
View 1 Replies
Jan 1, 2010
It is possible to convert microphone data into AMR based data?
View 1 Replies
Oct 2, 2009
How to encode LONG_INT binary representation from AS3 Number data type (using ByteArray)?Need it for implementing data transmission protocol between client and server.
View 5 Replies
Oct 7, 2009
I'm setting up an application where I need to record users' voice every so often during the course of the users' interaction with the application. Recording is fine, and the quality is fine, but now my issue is understandng how Flash handles the microphone when it gets attached to a stream for publishing.Basically, the problem is that when I "publish" my stream, the voice gets cut off (clipped) at the beginning. So, I initially thought this may have to do with buffer settings on the FMS server side, but it wasn't. Then I investigated client side stuff. For some reason, my internal mic .activityLevel property is -1 even though I have called Microphone.getMicrophone(). According to Flash's documentation, this shouldn't be the case:
activityLevel propertyactivityLevel:Number [read-only]Language Version : ActionScript 3.0Player Version : Flash Player 9The amount of sound the microphone is detecting. Values range from 0 (no sound is detected) to 100 (very loud sound is detected). The value of this property can help you determine a good value to pass to the Microphone.setSilenceLevel() method.If the microphone is available but is not yet being used because Microphone.getMicrophone() has not been called, this property is set to -1.I am using a timer to investigate the microphone .activityLevel property every 50 milliseconds:
package
{
import fl.controls.Button;
import fl.controls.TextInput;[code].....
View 1 Replies
Nov 18, 2011
I'm working on a virtual piano keyboard that processes imported mp3 sound samples. I've come to a solution with this question, but as I run this test code below, the sound loops its last data chunk of each sound source forever, and obviously, I want it to stop at the end of the extracted sound data. The same happens with any extracted sample data, I don't even have to mix it. I added a dynamically drawn graphic waveform so you can visually check what happens. This is my first time using the ByteArray class, so I don't know how to solve this issue.
[Code]...
View 1 Replies
Nov 28, 2011
Created an editable flex grid which exposes a method called getGridData() to javascript. I am using the JSON.encode() method of the [url]....library to convert the grid object's dataProvider into JSON before returning it.
ExternalInterface.addCallback("getGridData", getGridData);
public function getGridData():String
{[code].....
However, when I sort a column in the user interface, the encode method is failing throwing the following error
Property usingCustomCompareFunction not found on mx.collections.SortField and there is no default value.
View 1 Replies
Dec 2, 2010
How to trigger a custom jQuery event from Flash, passing some data through event object?
View 2 Replies
Jul 4, 2009
I was wondering if there was a way to encode a SWF with ActionScript 3. For example, could you take a MovieClip and encode it into a separate SWF file? If this isn't possible in the Flash player, is it possible with AIR?
View 4 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
Oct 23, 2005
I've been pondering this problem for some time now, and I need someone to correct me if Im wrong. Im trying to make a little search box to input a Polish word, so that Flash will url encode it, add then add it to and address and display the result on a html page.Now, the problem that I came upon is as far as Im know, that some of the Polish signs aren't supported by the URL encoding. From what I've read from google, most of the Polish signs are ISO-8859-1 encoded, BUT there are a few like: "S" with an ' on top of it, that is coded in ISO-LATIN-2 which isn't in the URL encode list.
View 1 Replies
May 22, 2009
I would like to know whether i can upload any type of video into FMS and it will encode it as flv on the fly while streaming?
View 1 Replies
Nov 9, 2011
I am using Final Cut Pro 3 and would like to export FLV movies either directly FCP timeline or from Quicktime export. I have used systems with Adobe CS3 installed and they have a quicktime plug-in for encoding. However, I've just purchased Adobe CS5.5 Production Premium and I have not gained that functionality.
how to get export from FCP with what I have? Do I have use CS3 or CS4? Or do I have to export a quicktime movie from FCP then use Adobe Media Encoder to create FLV files?
View 2 Replies
Oct 30, 2009
We are going to be hosting some videos that will be streamed (not progressive download). Which is recommended? CBR (constant bit rate) or VBR (variable bit rate) encoding?
View 3 Replies
Apr 22, 2010
As the title suggests, is it possible to use AMF to encode/decode Dictionaries (without subclassing, that is)? For example, here's a test case:
[Code]...
View 2 Replies
Mar 6, 2011
I'm trying to generate an embeded flash widget on a page with Python using a dynamic parameter. Here's the code I currently have.[code]...
The {{query}} parameter is passed through as a URL parameter. I'm not very technical, but I think the query value needs to be encoded for the flash to work. How do I encode the flash parameter?
View 1 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
Jun 30, 2009
If I URL encode my flashvars, is there a prefered technique/method(s) for handling them inside as3?
During some of my testing, I recently url encode the = and & symbols, but my AS did not seem to translate them when using LoaderInfo(this.root.loaderInfo).parameters (Maybe I was doing it wrong... Hehe, it has been known to happen.) Question: Using AS3, should I decode the parameters? Or, does that happen automatically?
I assume I need to run some sort of url decode. What is the best way to handle Flashvars? Do you folks have any tips?
View 3 Replies
Apr 26, 2010
How can I make a quotation mark show up inside a string? [code]
View 2 Replies
Dec 1, 2011
I'm recording audio in a Flash app and need to encode the bytearray being sent to the server. I haven't found a good encoder (client-side) to compress the bytearray before sending.
View 5 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
Nov 24, 2009
I have tried countless times in finding out from Adobe what would be the best solution to use the already 100s of videos encoded to H.264 in the mp4 container. Unfortunately, salesmen never know the answer yet keep asking me to buy. What benefits, if any is there to encoding to F4V over MP4 other than the ability to inject metadata without having to use a sidecar xmp file like you would if using MP4? The only downside I see with going F4V is that files will not be playable on set tops, gaming consoles, and also iPods.
Does FMS protect files already encoded to MP4 and if not, is there a tool to rewrap the MP4 into a F4V? My overall goal is to be able to put all metadata needed into the file and use actionscript 3 to populate the information on a web page and in the future an AIR app. I would love to pull the trigger and buy FMS but it just seems like the salesmen are reading from a brochure and never once address my questions let alone find me answers.
View 3 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
Apr 13, 2012
How can I encode a string according to RFC 2396, using Actionscript/Flex 3?
View 1 Replies
Dec 15, 2009
I am writing a business app in Flex that uses web services to communicate with a middle tier. The web services accept and return messages in XML format. In many cases, I need to be able to allow the user to type something like the following into a field in the app, which in turn will be added as an element in an XML payload bound for a SOAP web service (without the quotes):
"account balance < 1000"
The Flex parser chokes when trying to serialize an element with this in the Text node (e.g., account balance < 1000. So I need some way to encode the "<" to "<" prior to doing the XML serialization. In addition, I would prefer a generic way to do this, such as with an attribute on the service declaration, since I have over 40 services that must support this kind of input.
View 1 Replies