Giter Site home page Giter Site logo

Comments (7)

wseemann avatar wseemann commented on September 26, 2024

Are you trying to use FFmpegMediaMetadataRetriever on a local file or over a URL? If you are going to create a bug report please include enough information to reproduce the issue.

from ffmpegmediametadataretriever.

gafurbd avatar gafurbd commented on September 26, 2024

HI,
video are in sdcard but when i play video that time make local streaming server.

User this code get first image and it work and some time do not work.

mmr = new FFmpegMediaMetadataRetriever();
mmr.setDataSource(URLDecoder.decode(vieopath, "UTF-8"));
Bitmap b = mmr.getFrameAtTime(2000000,FFmpegMediaMetadataRetriever.OPTION_CLOSEST);
imageView1.setImageBitmap(b);

Now i get image next time via this button click and it do not work

button1.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
Bitmap b = mmr.getFrameAtTime(2000000, FFmpegMediaMetadataRetriever.OPTION_CLOSEST); // frame at 2 second
imageView1.setImageBitmap(b);
}
});

So, What happen, First button click it work but for second button click it do not work.

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

I'm not sure what you mean by this:

"image are in sdcard but when i play video that time make local streaming server."

So is the file stored locally or you are attempting to pull the images via a URL? Can you post the URL you are testing with?

from ffmpegmediametadataretriever.

gafurbd avatar gafurbd commented on September 26, 2024

Hi,

Did you hear Local streaming?. Video file are in sdcard but i make a local stream from this sdcard video.

so, url like this :: http://172.0.0.1:4578/sdcard0/video.mp4.

Video are play good via android VideoView.

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

I saw that you mentioned local streaming but this didn't make much sense to me since there is no point in locally streaming a file that already resides on the sdcard. Hence, that's why I asked you to clarify. What software are you using to serve up the file locally? Also, what happens the second time. Is the returned null or is an error thrown?

from ffmpegmediametadataretriever.

gafurbd avatar gafurbd commented on September 26, 2024

Hi, I use jar file for local streaming
http://libeasy.alwaysdata.net/

Second time it give null value.

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

Closed due to inactivity.

from ffmpegmediametadataretriever.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.