Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6340797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:54:14+00:00 2026-05-24T19:54:14+00:00

I am tasked with recording a live video stream from the camera on a

  • 0

I am tasked with recording a live video stream from the camera on a mobile device, then overlaying bitmaps that change over time, and adding an audio mp3 track to the video file, and then saving it to somewhere on the device like the Camera roll.

I saw a few posts that were helpful, mostly this one: AS3 Flash/AIR recording video with webcam and save it

But apparently, some have experienced app freezes on desktops. I can only imagine that on a mobile device it would be worse…

Also, how can I add the video info together with a separate audio mp3 into one file?

Has anyone accomplished something like this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:54:15+00:00Added an answer on May 24, 2026 at 7:54 pm

    Update, I got the video working. Kinda. I still get this error sometimes. Even with short videos.

    Error #2030: End of file was encountered.
    

    Sometimes it works fine. But at least I’m able to record FLVs from components. I haven’t done the audio addition yet.

    To run this code, you’ll need the FLVRecorder found here: http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air/

    <?xml version="1.0" encoding="utf-8"?>
    

            import mx.core.UIComponent;
            import mx.events.FlexEvent;
            private var file:File;
            private var recorder:FLVRecorder=FLVRecorder.getInstance()
            private var fps:uint = 10;
            private var timer:Timer;
            protected function viewnavigator1_creationCompleteHandler(event:FlexEvent):void
            {
    
                //              2. Define the target FLV-file’s properties, the file instance to your flv-file, width & height, framerate and the systemManager instance, that’s a Flash internal declared variable and the optional duration in seconds:
                file=File.desktopDirectory.resolvePath("recording.flv");
                recorder.setTarget(file,320,320,fps,systemManager)
    
                var camera : Camera = Camera.getCamera();
    
                if (camera)
                {
                    var ui      : UIComponent   = new UIComponent();
                    var video   : Video     = new Video(320, 320);
    
                    camera.setMode(320, 320, 24.);
    
                    video.attachCamera(camera);
                    ui.addChild(video);
                    cameraGroup.addElement(ui);
                }
    
                timer = new Timer(1000/fps);
                timer.addEventListener(TimerEvent.TIMER, captureScreen);
                timer.addEventListener(TimerEvent.TIMER_COMPLETE, stopRecording);
    
    
            }
    
            protected function stopRecording(event:Event):void
            {
                timer.stop();
                //when saving is done
                recorder.addEventListener(FLVRecorderEvent.FLV_CREATED, fileMade)
                //when saving starts
                recorder.addEventListener(FLVRecorderEvent.FLV_START_CREATION, startCreatingFLV)
    
                // TODO Auto-generated method stub
                recorder.stopRecording()
    
            }
    
            private function startCreatingFLV(e:FLVRecorderEvent):void{
                recorder.addEventListener(FLVRecorderEvent.PROGRESS,onFLVCreationProgress)
            }
    
            private function onFLVCreationProgress(e:FLVRecorderEvent):void{
                //e.progress: percent complete (0 to 1)
                //pbSaving: ProgressBar component in Flex
                trace("saving progress ", e.progress,1);
            }
    
            protected function captureScreen(event:TimerEvent):void
            {
                trace("captured screen");
                recorder.captureComponent(movieGroup)     //DisplayObject, takes a screenshot from that component
    
            }
    
            protected function startRecording(event:MouseEvent):void
            {
                // TODO Auto-generated method stub
                timer.start();
            }
    
            protected function fileMade(event:Event):void
            {
                trace("file made");
            }
    
        ]]>
    </fx:Script>
    <s:VGroup>
        <s:HGroup>
            <s:Button label="start" click="startRecording(event)"/>
            <s:Button label="stop" click="stopRecording(event)"/>
            <s:Label id="progress" text="waiting..."/>
        </s:HGroup>
        <s:Group id="movieGroup" width="50%" height="50%">
            <s:Group id="cameraGroup" width="100%" height="100%"/>
            <s:Image source="image.png" width="25%" height="25%"/>
        </s:Group>
    </s:VGroup>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been tasked with porting/refactoring a Web Application Platform that we have from ASP.NET
im tasked to create a virtual database that clients can create from our web
I'm tasked with exporting data from an old application that is using SQL Anywhere,
I've been tasked with the the maintenance of a nonprofit website that recently fell
I've been tasked to work on a project that has some confusing attributes. The
I've been tasked with creating a web app to be consumed by a mobile
I've been tasked with converting some text log files from a test reporting tool
I have recently been tasked with upgrading an application from .net 1.1 to 3.5
Recently I have been tasked with creating an application for a business that basically
I have been tasked to write a device driver for an embedded device which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.