java - How to Play a Video file in javacv / javacpp -
does have example code play simple video file current javacpp/javacv version , ffmpegframegrabber?
i tried this solution, apparently old , not work current javacv version because of incompatible framegrabber interface (returns "frame"-object instead of "iplimage"-object). if change code manually (using frame instead of iplimage), returns error message:
java.lang.verifyerror: bad type on operand stack exception details: location: org/bytedeco/javacv/ffmpegframegrabber.startunsafe()v @1291: invokespecial reason: type 'org/bytedeco/javacpp/avutil$avframe' (current frame, stack[2]) not assignable 'org/bytedeco/javacpp/pointer' current frame: bci: @1291 flags: { } locals: { 'org/bytedeco/javacv/ffmpegframegrabber', integer, 'org/bytedeco/javacpp/avformat$avinputformat', 'org/bytedeco/javacpp/avutil$avdictionary', integer, 'org/bytedeco/javacpp/avcodec$avcodec', integer, integer, integer, integer } stack: { uninitialized 1283, uninitialized 1283, 'org/bytedeco/javacpp/avutil$avframe' } bytecode: 0x0000000: 2a01 b500 332a bb00 8659 01b7 0087 b500............
fyi: i'm comparing different java libraries playing video files , extract pixel data (xuggler, vlcj, ...) , search best one. include javacv in tests it's not working :(
Comments
Post a Comment