Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1006834 // Video to .jpegs [dev.]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 1860K of libraries. Click here for Pure Java version (2416L/17K/69K).

!7

static int framesToEncode = 100000;

p {
  inputFilePath("Video to extract", voidfunc(final File video) {
    thread {
      int n = 0;
      for (BufferedImage img : framesFromVideo_reordering(video)) {
        File file = prepareProgramFile(video.getName()+"-"+(n+1)+".jpeg");
        saveJPEG(file, img);
        print("Frames: " + n + "/" + framesToEncode + " - " + f2s(file));
        if (++n >= framesToEncode) break;
      }
    }
  });
}

Author comment

Began life as a copy of #1006825

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006834
Snippet name: Video to .jpegs [dev.]
Eternal ID of this version: #1006834/3
Text MD5: 7ef67afe34670c380a61d6be03fbf964
Transpilation MD5: e40de343a312e8b31c9f82614f388411
Author: stefan
Category: javax video
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-05 07:38:48
Source code size: 467 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 380 / 431
Version history: 2 change(s)
Referenced in: [show references]