How to encode live audio to a-law?

Hi all,
I would like to know how to configure the processor to encode live audio to a-law datasource. I got something like this when I tried to start processor:
Failed to build a graph for the given custom options.
Failed to realize: com.sun.media.ProcessEngine@765a16
Cannot build a flow graph with the customized options:
Unable to transcode format: LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian
, Signed
to: alaw, 8000.0 Hz, 8-bit, Mono
outputting to: RAW
Error: Unable to realize com.sun.media.ProcessEngine@765a16
Thanks.

I think the format has to be one of those included in the getSupportedFormats().
For example if you have a single track processor,
Format[] formats = processor.getTrackControls()[0].getSupportedFormats()
This should be callled on a confured processor. it returns an array of supported encoding/transcoding or output format for this configured processor. setting any of these should be successfull.
Once format is set, the processor can be realized and started
In your case I guess you have to find the format in the array that best matchs your a-law format then use this format from the array to set to the processor. (dont worry, their will be a few a-law formats)
I think that in your case, transcoding 16-bit to 8-bit was the problem.
Also, capturing at lower than 44100.0hz when transcoding to alaw 8000 could be considered, I mean capturing at 8000.0hz could work too

Similar Messages

  • Encoder live audio in stereo

    Hi sorry for my english,im try to create a radio online, but
    don't find what is the best option to transmit single audio in
    stereo, Im try with Flash media Encoder but the audio encoder
    configuration its more limited and I believe that encoder only in
    Mono.
    It is possible to encoder audio in stereo with FME ?
    What is the best option to encoder live audio for a Web Radio
    Online with FMS ?
    Thanks in advance.

    And how increase the sampling rate and/or the bitrate of the
    audio codec?
    Sampling at 22050 and a bitrate ceiling of 32kbps are both
    quite limiting. Is there any chance of at least increasing the
    bitrate to something like 128kbps or more?
    Thanks in advance.

  • How to enable live audio streaming in FF running Windows 7

    I am unable to listen to live audio streams, please help !

    Which plugin is used for those streams?
    Your More system details list shows the WMP plugin and the Flash plugin as commonly used plugins to play streams.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How to Stream live Audio and metadata

    Helo there,
    i'm trying to build some kind of online radio. Therefore i'll be streaming audio (mp3) in real time.
    Ok,  so here's my problem: i have a play-list on my server and the idea is  for this play-list to play all day long, but on the client side  the user can only do play and stop the music.
    The problem is  when one music stops and the next one starts i need the server to send  not only the new audio but also all the info about this file: duration,  author and music name, this way my player can show a play /stop and all  the info about the current music playing.
    Until now i've only come across with video live streaming, but very  little information on how to do a live transmission of audio.
    ps: the only info on streaming audio that i've found so far is about  audio on demand, but the way i want things to happen the client can't  chose the music.
    any ideas?
    thanks in advance!
    Marco Monteiro

    I think you can use Server-side Stream object to create a playlist and other functions on server-side.
    Basically you can add your mp3 files to be played, basically just their names to an array object, and on the fly update it.
    Now take first file from the array and create the playlist and keep on adding new files from the names array.
    Also you can define onPlayStatus on your stream object to track when one song finishes and other starts.
    Also since you have names of the files, you can set an interval based on current song's duration which would get triggered and send information to client of next song to be played. For this you can use onId3 method as mp3 files would not have metadata defined.

  • Encoding live audio

    I'm new to Tiger, but have two Panthers, all networked. I want to download audio from analog to my hard drive. My old mac 9 did this transparently, creating AIFF files, but I can't figue out how to do it in OSX 10.3.9 or 4. I've tried iMovie, which works, but out paces my hard drive so I can only get about a minute or so per track. Any suggestions? I don't want to buy Quick Time Pro, unless that's my only option.
    MacBook, iMac350, Power PC g4 Dual   Mac OS X (10.3.9)   and 10.4, latest update

    GarageBand.

  • How to merge multiple live audio streams into a single stream in FMS?

    I need to merge multiple live audio streams into a single stream so that i can pass this stream as input to VOIP through a softphone.
    For this i tried the following approach:
    Created a new stream (str1) on FMS onAppStart and recorded the live streams (sent throgh microphone) in that new stream.
    Below is the code :
    application.onAppStart = function()
    application.myStream=Stream.get("foo");           
    application.myStream.record();
    application.onPublish = function (client,stream)
          var streamName = stream.name;
          application.myStream.play(streamName,-2,-1};
    The problem is that the Stream.play plays only 1 live stream at a time.As soon as a the 2nd live stream is sent to FMS then Stream.play stops playing the previous live stream.So,only the latest live stream is getting recorded.Whereas i need to record all the live streams in the new stream simultaneously.
    Any pointers regarding this are welcome.
    Thanks

    well i tried this once for one of my scripts and the final conclusion is its not possible to combine two streams into 1.....how would you time/encode the two voices......there is no know solution to this in flash. If you continue on despite me and find a solution please post it so we can explain to rest of world.

  • How do I remove audio from an imported live clip?

    I feel like an idiot having to ask this because I'm sure the answer is right in front of me.
    I'm trying to make a music video that consists of some live footage over a previously recorded song. I'm also trying to match up the live footage with the sound clip but every time I put one of the live clips in, the live audio overwrites the audio clip I want to keep.
    How do I remove the audio from the live clips so that this does not happen?

    Unlink audio from video by deactivating the button in the right upper corner of the timeline (next to the snapping button). Then click on the audio part and delete it.

  • Steps to Publish Live Audio for HTTP Streaming

    I wanted to confirm some steps in order to stream Live Audio from FMS to a mobile device using HTTP Streaming and HTML 5 audio/video tags.  I have a system setup like below:
    Lets say my application which recieves the live audio is called CLASSROOM.
    Lets say my application instance is called "TEST"
    So I have application code like:
    In "onAppStart()"
    this.broadcast_live_stream = Stream.get("f4f:livestream");
    this.broadcast_live_stream.liveEvent = "TEST";
    this.broadcast_live_stream.record("record");
    To play the incoming audio:
    application.broadcast_live_stream.play(streamName); // name of the stream sending audio to the server
    Thus, I have a folder:
    Flash Media Server 4.5\applications\CLASSROOM\streams\TEST\livestream
    which contains a bootstrap, control, meta, f4f, and f4x files.
    Since I specified the Event name as "TEST", I also created the folder:
    Flash Media Server 4.5\applications\livepkgr\events\_definst_\TEST
    Which contains event.xml:
    <Event>
    <EventID>TEST</EventID>
    - <Recording>
    <FragmentDuration>4000</FragmentDuration>
    <SegmentDuration>400000</SegmentDuration>
    <DiskManagementDuration>3</DiskManagementDuration>
    </Recording>
    </Event>
    and manifest.xml:
    <manifest xmlns="http://ns.adobe.com/f4m/1.0">
    <media streamId="livestream" bitrate="100" />
    </manifest>
    Should I then be able to create a video tag and hear the live audio:
    <video id='slide1' controls='controls'><source src='http://fms-dns/hls-live/livepkgr/_definst_/Test/livestream.m3u8'></video>
    I am not sure what other steps are needed, or a good way to test.  I don't understand how the Live Media Encoder would be needed in this situation.

    So I implemented the above change, using code from the livepkgr.
    My custom application is called Unity3, and the instance is Test, and I am trying to  publish to an event called "Test".
    I now have:
    applications\Unity3\streams\Test\livestream
    Which contains segment files, which update when I send audio in my application.
    I have:
    C:\Program Files\Adobe\Flash Media Server 4.5\applications\Unity3\events\Test\Test
    Which contains my event.xml (EventId Test), manifest.xml (StreamId livestream).  I also have a ".stream" file in this folder.  The contents of which are:
    <?xml version="1.0" encoding="UTF-8"?>
    <stream xmlns="http://ns.adobe.com/liveevent/1.0">
    <type>
    f4f
    </type>
    <name>
    livestream
    </name>
    <path>
    C:\Program Files\Adobe\Flash Media Server 4.5\applications\Unity3\streams\Test\livestream
    </path>
    </stream>
    So everything there seems to be good.  I try to use:
    <video id='live' controls='controls'><source src='http://[fms-dns]/hls-live/Unity3/Test/Test/livestream.m3u8'></video>
    or
    <audio id='live' controls='controls'><source src='http://[fms-dns]/hls-live/Unity3/Test/Test/livestream.m3u8'></audio>
    I don't hear audio, the controls don't seem to respond as though they recognize a source.  Are there certain browsers which can be confirmed work?  Any other mistakes stand out?
    Thanks.

  • How to play live streaming in windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight app. In my I want to show live streaming youtube channel , I think it is not possible, 
    Actually that youtube channel is a television channel , I want to stream that live tv in my app.(I tried to load youtube channel in webbrowser in iframe tag but it is not opening)
    Anybody help me how to play live tv or live streaming in my app,
    Thanks..
    Suresh.M

    Hello,
    You will likely need to write a custom
    MediaStreamSource that can access the media stream and parse it. Windows Phone supports h.264 natively and as long as the site serves up a media stream that contains h.264 frames you can parse it and have our built in decoder decode and display it. You
    will need to have intimate knowledge of the streaming protocol used by the website that you are trying to play. You must also make sure that the website is not using protected content. IANAL so I would recommend that you have your local law professional
    (lawyer) review the licensing of the website that you are attempting to connect to and stream from before continuing your development. Your lawyer can make sure make sure their licensing allows you to do this.
    I hope this helps,
    James
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • Won't Change Back to Regular Audio After Setting "Encoded Digital Audio"

    I have a first generation Mac Pro, and I've just recently upgraded to Lion. I used to play a fair bit of DVDs on the computer, but recently I've slacked off doing that. Today I popped in a DVD to play and then opened DVD Player up. Everything worked fine as it was supposed to. I've got the DVD player set to send digital audio out so I can get surround sound through my receiver. When I quit DVD player I don't get sound anymore through the optical out unless it's encoded digital audio. I've had that problem before, and to solve it I'd go to Audio Midi Setup and change the format to what it was prior to being set to "Encoded Digital Audio" by DVD Player. However, now with the upgrade to Lion it will not switch back. The option to do it is there, and I can click on 16, 20, or 24bit audio all day long and I won't get audio output from that port unless I restart the computer.
    This is obviously a system bug that needs to be reported to Apple if they aren't aware of it already, but what I'm wanting to know is how can I avoid restarting to get audio back? Restarting Core Audio doesn't do the trick as I've already tried that.

    From the iPod's Main Menu choose Videos -> Settings and make sure TV Out is set to Off.
    Otherwise, try a hard reset as well.  To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    B-rock

  • Can i make Live Audio/Video application between 2 users

    Hello,
    I am new to FLASH and FLEX.
    I want to know if i can make a Live Audio/Video application(
    using Microphone and Camera) for a website by using FMS. If yes
    then should i use FMSS or FMIS. I will be using FLEX Buidler IDE .
    Any one who has made this type of application or link to a
    tutorial.
    What i would like to make is like an application of Webcam
    with 2 users can see/view each other and also talk on web site. And
    alos how can i embed this application in java(EE) project.
    I would be very thankful if you people can guide me in this
    problem.
    Hopefully i have explained my probelm.
    Regards,
    Saad

    Yes you can make a Live A/V app with FMS! that is exactly
    what it was designed for. You would need FMIS as that is the
    interactive version that enables live capabilities.

  • How does Airplay transfer audio file format to an Airport Express?

    Hi, everyone
    How does Airplay transfer audio file format to an Airport Express?
    Many from the Internet claim that iTunes encodes an AIFF file format into an Apple Lossless Audio Codec (ALAC) file format before sending signal to an Airport Express.
    Is that true?
    If so, would it still make sense for me to have AIFF files on my music server
    or should I have ALAC files instead?
    Please advise.
    Thank you.
    BR,
    George Lien

    Many from the Internet claim that iTunes encodes an AIFF file format into an Apple Lossless Audio Codec (ALAC) file format before sending signal to an Airport Express.
    Is that true?
    Yes. The AirPort Express Base Station (AX) works only with iTunes v4.6+ and is limited to music files that iTunes can read; ie, 16-bit data only. These data, though, can be in any file format that iTunes recognizes, from lossy MP3s at the low-quality end of the spectrum to Apple Lossless and lossless AIFF or WAV files at the high end. It is also important to note that the AX functions only at a 44.1kHz sample rate. When you play 32kHz or 48kHz data, iTunes sample-rate-converts the data in real time before sending it to the AX.
    iTunes uses a QuickTime CODEC to convert audio files to Apple Lossless, and then, uses AirPlay to send them to the AX. In turn, the AX uses built-in software that converts the Apple Lossless to an Encoded Digital Audio format. From there, digital audio is sent to a optical transceiver to convert the electrical signal to an optical one before sending it to the innermost part of the audio port. For analog, the AX has a built-in DAC to convert the Encoded Digital Audio to Analog which is sent to the same audio port.
    If so, would it still make sense for me to have AIFF files on my music server
    or should I have ALAC files instead?
    If you have audio files in both formats, I would elect just to keep the ALAC (.m4a) files on the music server.

  • Problem with running example 'Generating Live Audio/Video Data'

    Hello,
    Concerning the example 'Generating Live Audio/Video Data', I'm having trouble with the run instructions.
    http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html
    How does JMFRegistry know about the location of jmfsample?
    How is 'live' resolved as a URL?
    2.Register the package prefix for the new data source using JMFRegistry
    - Run JMFRegistry
    - In the Protocol Prefix List section add "jmfsample" and hit Commit.
    4.Select File->Open URL and enter "live:"
    Much thanks,
    Ben

    I'm getting the following error message: "Could not create player for live"Implies you've either not registered the "live:" protocol prefix in the JMF Registry, or, it couldn't load the class you registered for it...or it might be erroring out inside the actual live protocol, I'm not sure what that would look like, but a System.err.println statement in the constructor of both of those classes might be a good idea.
    I added the output of javac (DataSource.class and LiveStream.class) to a directory on the classpath.
    C:\Program Files\JMF2.1.1e\lib\jmfsample\media\protocol\liveEh, that looks a little questionable to me. I'm not 100% sure that the JRE will automaticlly descend into the package subdirectories like that, looking for classfiles, for every folder on the path. I am, of course, fully open to the idea that it does and I just never thought about it...but I guess I just thought it only did that for JAR files, not CLASS files. Regardless, I'd recommend:
    1) Make sure you've registered the protocol prefix "live:" correctly in JMF Registry
    2) Try to run it with the 2 compiled class files in the same folder as your project
    3) Try to run it with the 2 compiled class files in the lib directory, if that's on the classpath
    4) Try to run it with the 2 compiled class files installed in the JRE as an extension (google for how to do this because I don't remember off the top of my head)
    5) Reinstall JMF and see if that helps

  • How to encode FCP files to Windows Media files by using Discreet Cleaner?

    Do you know how to encode from FCP to Windows Media files in Discreet Cleaner 6.0?
    Which is the right settings?
    I got errors when I tries
    In beforehand thank you very much for your answer

    Hello Mikey
    I have put up the following in the settings in Cleaner 6.0.1:
    SETTING
    Windows Media
    OUTPUT:
    Windows media
    TRACKS:
    Video media will be encoded into the output file
    IMAGE:
    - crop: manual
    - image size: 320x240
    - constrain aspect ratio: 4:3
    - deinterlace: auto
    Sharpen: radius: 1.5, amount: 50
    Adaptive noise reducwe: mild
    ADJUST:
    - Gamma: 15
    - Brightness: -5
    - Contrast: 5
    ENCODE:
    - Windows Media Video V7
    - Frame rate: 24 fps
    - Insert Key frames: every 300 frames
    - Video data rate: limit to 400 kbits/sec
    AUDIO:
    - Sample rate: 44.100 kHz
    - Data rate: 48.0 kbits/sec
    - Channels: stereo
    BATCH> set default destination- her har jeg valgt en folder på harddisk
    STATUS
    - "Ready"
    PLAY
    I get the following message after to played:
    "You need to clear the status and/or change settings for the media to begin encoding"
    What is wrong with the settings or status?
    Kind regards
    mary Ann

  • Can't play live audio (or video) mobile using 4.5.1

    I'm trying to play a live audio stream in a mobile project and cannot get it to work.
    Can someone point me to the best way to play live audio from an rtmp stream in Flash Builder 4.5.1?  I've tried VideoPlayer, VideoDisplay, Sound object, used a netStream and can't get anything to work.  I've tested the stream with a Flex 3 project and can hear the audio there fine.  I'd like to do video later, but I need the audio to work first.
    Here's just some pieces of what I've tried:
         ins = new NetStream(inc);
         var nspo:NetStreamPlayOptions = new NetStreamPlayOptions();
         nspo.streamName = rtmpSession;
         ins.play2(nspo);
         videoInstructor.source =rtmpPath + "/" + rtmpSession;
         videoInstructor.play();
         videoInstructorHost.host = rtmpPath;
         videoInstructorStreamName.streamName = rtmpSession;
    <s:VideoDisplay id="videoInstructor" left="10" right="10" bottom="10" height="331" source="" autoPlay="true"/>
    <s:DynamicStreamingVideoSource id="videoInstructorHost" host="" streamType="live">
      <s:DynamicStreamingVideoItem id="videoInstructorStreamName" streamName="" />
    </s:DynamicStreamingVideoSource>
    <s:VideoDisplay id="videoInstructor" left="10" right="10" bottom="10" height="331" source="{videoInstructorHost}" autoPlay="true"/>
    Any information would be very much appreciated.

    Moving files from an existing install can indeed cause problems, as the error message you got indicated. Existing files and registry entries will point to a particular location, that will not have changed as you moved the files. It sounds like you may have to do a CleanSweap (removal of drivers and software) and reinstall. Let us know how you get on.
    You can find some details on uninstalling/reinstalling on our Kbase:
    http://ask.americas.creative.com
    SID72
    CatMessage Edited by Catherina-CL on 0--2004 :52 PM

Maybe you are looking for

  • Can't drag Livetype Icon over to FCP - fix?

    Hi Haven't used my FCP for over a year - using it today...I thought I used to be able to simply drag my Livetype (1.2) file from Livetype over to FCP 4.5...now it doesn't work, I'm sure I used to do this...I grab the Livetype icon on top the canvas i

  • How to create an XML from Source Table

    Hi, I am new to ODI and have a requirement as part of our project - Say have a table in Source schema with few columns and need to convert the same to XML format and insert the XML as a CLOB column in table of target schema. There could also be a cas

  • Converting 1d array of double

    I have a 1-D array of double inside of a while loop.  I would like to control the execution of the while loop based on one of the numeric values in that array (like I would stop the while loop if the numeric value in the array is less than or equal t

  • Error 9. Cannot restore 4s

    Hello, 4s 16GB phone was updated to 8.0.2 and was using for several days. One day phone automaticly restarted and never loaded again: after serveral seconds view of apple logo phone restarted again and this happened all time time. Tried reboot phone

  • Is it possible to change the opacity of a window without affecting its children?

    hi I want to set the opacity of  a window to something like 0.2 but it seems to be that it also affects the opacity of its children Is there a way to do it without affecting its children?