java - Android MediaMetadataRetriever OPTION_CLOSET not working for some videos -


itemprop = "text">

I'm just starting on Android development

I am trying to take some time to frame the video files I have on my phone:

  MediaMetchData retrieve = new mediamatetitriver (); Retriever.setDataSource (getApplicationContext (), linkToVideo); // linkToVideo Uri ImageView FrameView = (ImageView) findViewById (R.id.video_frame); FrameView.setImageBitmap (retriever.getFrameAtTime (frameTime, MediaMetadataRetriever.OPTION_CLOSEST)); // FramesTimeMicrosoft  

this is 640x480 Works for mp3 video, but my camera has not recorded for 1280x720 .3gp files It just takes a terrible long time and ultimately the app stops responding. When I use OPTION_CLOSEST_SYNC, everything runs smoothly, but I'm interested in getting more than sync frames.

How can I solve it? I was trying to avoid video encoding, but if there is no other option then I would support it.

Try to help me in advance

Try:

  import wseemann.media.FFmpegMediaMetadataRetriever; ... FFMPMMediaDataDietRetriever = newFFMPPMMediaDataDetter (); Retriever.setDataSource (getApplicationContext (), linkToVideo); // linkToVideo Uri ImageView FrameView = (ImageView) findViewById (R.id.video_frame); FrameView.setImageBitmap (retriever.getFrameAtTime (frameTime, MediaMetadataRetriever.OPTION_CLOSEST)); // Microsoft in framestime  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -