Uses 1860K of libraries. Click here for Pure Java version (4847L/34K/122K).
!7 lib 1006715 // jcodec 0.2.0 lib 1006717 // jcodec 0.2.0 javase import org.jcodec.common.io.*; import org.jcodec.api.awt.*; p { double startSec = 0; File inFile = getProgramFile(#1006716, "test.mp4"); FileChannelWrapper ch = NIOUtils.readableChannel(inFile); AWTFrameGrab8Bit grab = AWTFrameGrab8Bit.createAWTFrameGrab8Bit(ch); try { //grab.seek(startSec); for (int i = 0; ; i++) { ping(); BufferedImage img = grab.getFrame(); if (img == null) { print("Done!"); break; } print(img.getWidth() + " * " + img.getHeight()); quickShowImage(img); print("Frame " + (i+1)); } } finally { NIOUtils.closeQuietly(ch); } }
Began life as a copy of #1006716
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: | #1006718 |
Snippet name: | Test reading .mp4 [invidual frames] from #1006716 - WORKS! |
Eternal ID of this version: | #1006718/17 |
Text MD5: | ee63b510a97f8d56622244f7f08379c7 |
Transpilation MD5: | c35bdd3fa34bb6c9d4acf73dc0c6fbf6 |
Author: | stefan |
Category: | javax video |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-03 00:00:10 |
Source code size: | 707 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 597 / 669 |
Version history: | 16 change(s) |
Referenced in: | [show references] |