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 6591701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:27:32+00:00 2026-05-25T17:27:32+00:00

More specifically: I have a sequence of 32 bit unsigned RGBA integers for pixels-

  • 0

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 640×480 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.

  • 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-25T17:27:33+00:00Added an answer on May 25, 2026 at 5:27 pm

    The solution I’ve come up with is to use x264 instead of ffmpeg.

    For testing purposes, I saved frames as files: 00.bin, 01.bin, .. nn.bin, containing 640x480x4 ARGB pixel values. The command I used to verify that the approach is feasible is the following horrible hack:

    cat *.bin | \
    perl -e 'while (sysread(STDIN,$d,4)){print pack("N",unpack("V",$d));}' | \
    x264 --demuxer raw --input-csp bgra --fps 15 --input-res 640x480 --qp 0 \
         --muxer flv -o out.flv -
    

    The ugly perl snippet in there is a hack to swap four-byte endian order, since x265 can only take BGRA and my test files contained ARGB.

    In a nutshell,

    1. Actionscript renders ARGB values into ByteArray
    2. swap the endian to BGRA
    3. pipe it to x264: raw demuxer, bgra colorspace, specify fps/w/h/quality
    4. ??
    5. profit.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some questions about logging, more specifically about setting it up and making
Does anyone have an example using the table object in YUI library. More specifically,
I have recently started having problems with TortoiseCVS, or more specifically with plink, the
More specifically making HTML, Java, and python more readable? Does anyone have suggestions for
More specifically what are the characteristics (if any) that delegates have that functions as
More specifically, let's say I have a class template with parameters A and B
More specifically, let's say I have a class template with parameters A and B
I have a file (more specifically, a log4j configuration file) and I want to
I have three C# methods that almost perform identically. More specifically there is a
I am using EclEmma in Eclipse (more specifically, RSA 8). I have the following

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.