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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:48:48+00:00 2026-05-27T20:48:48+00:00

Question: How do you get a video thumbnail for an application-private file? Specifically, is

  • 0

Question:

How do you get a video thumbnail for an application-private file?
Specifically, is there a way to extract video frames from an .mpeg file directly?

Background:

  1. My application includes a camera that can record video.
  2. For product reasons, the video file is initially created and written in private mode in the application’s private data directory, making it private to the application. This is done using: Context#openFileOutput(fileName, Context.MODE_PRIVATE) – a typical file path looks like this: /data/data/[package.name]/files/[fileName].mp4 — FYI I already tried using Context.MODE_WORLD_READABLE instead of Context.MODE_PRIVATE but it didn’t help.
  3. Even though the video may eventually end up in external storage (by moving the file to Environment#getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES)), the thumbnail must be displayed while the video is in application-private storage.
  4. It seems like ThumbnailUtils.createVideoThumbnail(String, int) works fine for the file after it is moved to the public directory (regardless of adding it to the MediaStore), but silently fails (returns null) when the file is in internal storage.

    • Note: as long as the video file is in application-private storage, it is not added to the MediaStore (the image/video content provider on the device Gallery feeds on). Only once the video is moved to external storage do I add it the MediaStore. This is a product-related decision which I cannot circumnavigate; unless there’s a way to add the video the media store without it being visible to other apps… I wonder if videos in application-private storage can be added to the media store and would remain application-private but gain all the free “services” provided by the media store such as thumbnail generation.
  • 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-27T20:48:49+00:00Added an answer on May 27, 2026 at 8:48 pm

    Most of media APIs are just binder client of media server which runs in its own process. You may try to make the file public temporary.

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

Sidebar

Related Questions

Sort of a weird question. From 4shared video site, I get the embed code
From my question at Get Foreign Key Value , I managed to get the
Very basic question - how to get one value from a generator in Python?
Hopefully the last NN question you'll get from me this weekend, but here goes
so i continue from this question YouTube: get youtube title+ image+description like facebook `
I tried to use facebook fql.video get video from my Idol's wall, then, how
Is there any way to get to know that a link is download-able? means
This is a continuation question from Opencv video frame giving me an error I
Given a flv file, how do I get the video duration in java code?
So this question will get technical – eventually – but first check out Hanselminutes

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.