android - generate a mp4 file from list of images by using jcodec library -


i using jcodec library convert list of bitmap images mp4 file. works fine generated mp4 file plays first image correctly , rest of images don't rendered properly.

here encoder code

  private class encoder extends asynctask<file, integer, integer> {     private static final string tag = "encoder";     protected integer doinbackground(file... params) {         sequenceencoder se = null;          bitmap[] arrayofbitmap = {bmp, bmpdef};           try {             se = new sequenceencoder(new file(params[0].getparentfile(),                     "jcodec_enc.mp4"));                  (int = 0; < arraybitmap.length; i++) {                             se.encodeimage(arraybitmap[i]);                   }              se.finish();                          } catch (ioexception e) {             log.e(tag, "io", e);         }          return 0;     }      @override     protected void onprogressupdate(integer... values) {         progress.settext(string.valueof(values[0]));     } } 

please me making mistake


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -