Questions tagged [javacpp]

JavaCPP - a bridge between Java and native C++.

JavaCPP provides efficient access to native C++ inside Java, not unlike the way some C/C++ compilers interact with assembly language.

115 questions
0
votes
1 answer

Audio Video out of sync when i append videos - Android JavaCpp

I am creating videos through Android MediaRecorder.. This is the code where i am appending the videos, Audio is always longer then video.... Video stays stuck at the end for 3 - 5 seconds while audio keeps on playing. private void doAppend(String…
Salmaan
  • 3,498
  • 8
  • 31
  • 58
0
votes
1 answer

AVPacket to Android MediaCodec

I'm using JavaCPP av_read_packet to read AVPackets from H264 (MPEG4 AVC) source, then I'm trying to pass only the video packets to Android's MediaCodec to decode them and to render into a Surface (for display). I've read it's necesary to use…
WotG
  • 5
  • 2
0
votes
1 answer

Call function with reference

I'm trying to call the following c++ function: uint32_t FunctionName(uint32_t *arg1,uint32_t *arg2,uint32_t *arg3) but I cannot find a way to map this in Javacpp. How do I pass the pointer reference to the function, and how do I retrieve the…
hammer
  • 113
  • 5
0
votes
1 answer

Segfault after 15 seconds while reading a RTSP stream with ffmpeg in Android

I'm trying to read a RTSP stream using ffmpeg by way of javacv. I'm able to view the fist 15 seconds or so before I get a segfault on the call to sws_scale. Does this mean I've ran out of memory? If so, any idea what I'm doing wrong? …
ABentSpoon
  • 4,597
  • 1
  • 24
  • 22
0
votes
1 answer

Rebuild javacv.jar for Android

I hate to sound like a n00b but I have been trying to figure this out for several hours now and could really use some help. I have successfully been able to use FFmpeg and OpenCV in my Android app by using javacv.jar and javacpp.jar provided here.…
Mark
  • 955
  • 2
  • 14
  • 30
0
votes
1 answer

javacv cvExtractSURF

I’m trying to implement the example for using JavaCv Surf. I downloaded the example code, the .jar files and installed everything that the official web page asks for (http://code.google.com/p/javacv/). But there is one function that seems to be…
Du_
  • 645
  • 1
  • 7
  • 16
0
votes
1 answer

JavaCPP problems compiling the example

I just wanted to test JAVACPP and tried the first example from the webpage within my eclipse: http://code.google.com/p/javacpp/ (LegacyClass and LegacyLibrary) As soon as I type: javac -cp libs\javacpp.jar:. src\LegacyLibrary.java into the…
Vladimir S.
  • 420
  • 1
  • 10
  • 22
-1
votes
1 answer

Opencv javacpp-presets findContours gives error: Unrecognized or unsupported array type in cvGetMat

I am trying to extract text from image(binarize) using opencv javacpp-presets (version 3.0.0-1.0) and using the code-snippit below. The snippit is a translate from this python version of the code. The input image is from file and is loaded through…
s.ijpma
  • 822
  • 1
  • 11
  • 22
-2
votes
3 answers

About java.lang.UnsatisfiedLinkError:org.bytedeco.javacpp.avutil

I try to work it out a couple days. But it didn't work. Below is full error logs: 02-19 09:41:31.239 17753-17753/com.superdata.cxim E/art: dlopen("/system/lib64/libdl.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "__cxa_finalize"…
Noo Li
  • 1
  • 1
-4
votes
1 answer

How to run this project as a jar file?

Can you make a jar file out of this project that runs with no initializererror? Project here. https://github.com/piersy/BasicTesseractExample I've tried using jarsplice to splice the project jar with the tesseract & javacpp jars and I get this…
1 2 3 4 5 6 7
8