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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:43:09+00:00 2026-06-04T10:43:09+00:00

Basically I want to be able to send a few second delayed live feed

  • 0

Basically I want to be able to send a few second delayed “live” feed over less than 3g. It’s ok if it very low quality. I could even go with like 4 bit grayscale if necessary (though 128-256 colors would be preferable). I’d be willing to go as low as 160×120 at >1fps if necessary. Fully uncompressed at this crummiest of settings means an over-saturated low bandwidth connection.

Should I look into simply snapshotting as images? Is anyone familiar with the capabilities of Bitmapfactory with regard to the lowest quality JPEGs possible?

Should I look into PNGs or GIFs? My understanding is that solid fields work best with these. I’m not sure I can depend a lot on solid fields other than a good portion of sky, as I’m looking to have control over a drone that sends back “video.” Faux video with a several second delay is fine and even preferable as I expect losing and regaining server connection often.

I get like 128k up on “3g” with a decent signal, but i can’t exactly depend on that. I can do any necessary decoding server side – that shouldn’t be a problem.

So I ask you, Stack, you want to see from your smartphone over the internet and cannot depend on a good connection. How do you approach it?

  • 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-06-04T10:43:12+00:00Added an answer on June 4, 2026 at 10:43 am

    I think the most simple approach will be grabbing the preview images and sending those.

    Here’s a nice piece of code I found for grabbing the preview image as a JPEG. It’s nice and fast and should suit your needs. I was also using it for uploading, so I was after very small file size.

    When outputting 1920×1080 images the file size was anywhere between 150-300KB.

        camera.setOneShotPreviewCallback(new PreviewCallback() {
                @Override
                public void onPreviewFrame(byte[] data, Camera camera) {
                    try {
                        Camera.Parameters parameters = camera.getParameters();
                        Size size = parameters.getPreviewSize();
                        YuvImage image = new YuvImage(data, parameters.getPreviewFormat(),
                                size.width, size.height, null);
                        File file = new File(getCacheDir().getPath() + "/out.jpg");
                        FileOutputStream filecon = new FileOutputStream(file);
                        image.compressToJpeg(
                                new Rect(0, 0, image.getWidth(), image.getHeight()), 90,
                                filecon);
                    } catch (FileNotFoundException e) {
                    }
                }
            });
    

    Here’s how I just set the preview size to the maximum setting, but you can set it to a lower one to speed things up.

    Camera.Parameters parameters = camera.getParameters();
    List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes();
    imageWidth = previewSizes.get(0).width;
    imageHeight = previewSizes.get(0).height;
    parameters.setPreviewSize(imageWidth, imageHeight);
    camera.setParameters(parameters);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I want to create an application on Android device which able to send
I basically want to be able to deploy multiple versions of the same EAR
I have a scraping object basically. I want to be able to add POST
I have two action methods that are conflicting. Basically, I want to be able
I want to be able to create multiple threads and send data to a
Basically I want to send gps coordinates (displayed on a map in the iPhone)
On my website, I basically want a user to be able to invite his
Basically i want to be able to get a 32bit int and attach its
I basically want to do this in code: PersonList myPersonList; //populate myPersonList here, not
I basically want to make things easier by just looping LinkButtons instead of making

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.