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).

1  
!7
2  
3  
static int framesToEncode = 100000;
4  
5  
p {
6  
  inputFilePath("Video to extract", voidfunc(final File video) {
7  
    thread {
8  
      int n = 0;
9  
      for (BufferedImage img : framesFromVideo_reordering(video)) {
10  
        File file = prepareProgramFile(video.getName()+"-"+(n+1)+".jpeg");
11  
        saveJPEG(file, img);
12  
        print("Frames: " + n + "/" + framesToEncode + " - " + f2s(file));
13  
        if (++n >= framesToEncode) break;
14  
      }
15  
    }
16  
  });
17  
}

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: 386 / 439
Version history: 2 change(s)
Referenced in: [show references]