Closed spectacularcrackers closed 2 years ago
According to the docs at https://trac.ffmpeg.org/wiki/Capture/Desktop something like this should work:
FrameGrabber grabber = new FFmpegFrameGrabber("1");
grabber.setFormat("avfoundation");
grabber.setFrameRate(30);
grabber.start();
I tried using that. However, I keep getting an av_find_input_format() error Could not find input format "avfoundation"
. Any ideas on how to resolve this?
When I run ffmpeg -f avfoundation -framerate 30 -i "0" -target pal-vcd ./test.mpg
in terminal, it records video and saves it to my computer. ffmpeg -s 640x480 -f avfoundation -i "1:0" screenRecording.mpg' saves a screen recording. However, when I try to do the same in a java application, the
av_find_input_format() error` arises. The same error happens when I try to capture either the webcam or the screen.
I am using the following dependencies:
implementation("org.bytedeco:ffmpeg:5.0-1.5.7")
implementation("org.bytedeco:javacv:1.5.7")
implementation("org.bytedeco:javacv-platform:1.5.7")
Here is the full error statement:
Exception in thread "main" org.bytedeco.javacv.FFmpegFrameGrabber$Exception: av_find_input_format() error: Could not find input format "avfoundation". (For more details, make sure FFmpegLogCallback.set() has been called.)
at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:881)
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:849)
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:844)
I tried calling FFmpegLogCallback.set()
before FrameGrabber grabber = new FFmpegFrameGrabber("1");
, but nothing was in the console
I was able to record from the webcam using OpenCVFrameGrabber
rather than FFmpegFrameGrabber
. However, I could not record the screen using OpenCVFrameGrabber
.
Could you check what you get after setting the "org.bytedeco.javacpp.logger.debug" system property to "true"?
I do not see the path org.bytedeco.javacpp.logger.debug
. However, I do see the debug variable in org.bytedeco.javacpp.tools.Logger.java
. Is this what you are referring to? If so, how do I edit the file? I am using the gradle dependency, and the external libraries are all read-only
It's a "system property", you can set it however your want: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
Typically, calling something like System.setProperty("org.bytedeco.javacpp.logger.debug", "true")
works.
Got it, thanks.
Here is what it gives
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Loader
Debug: Loading /Users/sc/.javacpp/cache/javacpp-1.5.7-macosx-arm64.jar/org/bytedeco/javacpp/macosx-arm64/libjnijavacpp.dylib
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Pointer
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading library gcc_s
Debug: Failed to load for gcc_s@.1: java.lang.UnsatisfiedLinkError: no gcc_s in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library quadmath
Debug: Failed to load for quadmath@.0: java.lang.UnsatisfiedLinkError: no quadmath in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library gfortran
Debug: Failed to load for gfortran@.5: java.lang.UnsatisfiedLinkError: no gfortran in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library gfortran
Debug: Failed to load for gfortran@.4: java.lang.UnsatisfiedLinkError: no gfortran in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library gfortran
Debug: Failed to load for gfortran@.3: java.lang.UnsatisfiedLinkError: no gfortran in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading /Users/sc/.javacpp/cache/openblas-0.3.19-1.5.7-macosx-arm64.jar/org/bytedeco/openblas/macosx-arm64/libopenblas_nolapack.0.dylib
Debug: Loading /Users/sc/.javacpp/cache/openblas-0.3.19-1.5.7-macosx-arm64.jar/org/bytedeco/openblas/macosx-arm64/libjniopenblas_nolapack.dylib
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading /Users/sc/.javacpp/cache/openblas-0.3.19-1.5.7-macosx-arm64.jar/org/bytedeco/openblas/macosx-arm64/libopenblas.0.dylib
Debug: Loading /Users/sc/.javacpp/cache/openblas-0.3.19-1.5.7-macosx-arm64.jar/org/bytedeco/openblas/macosx-arm64/libjniopenblas.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading library opencv_cudev
Debug: Failed to load for opencv_cudev@.405: java.lang.UnsatisfiedLinkError: no opencv_cudev in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_core.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_imgproc.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_core.dylib
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.opencv_core.CvSlice
Debug: Registering org.bytedeco.opencv.opencv_core.CvSlice[address=0x600001607760,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x600001607760,deallocatorAddress=0x16a40840c]]
Debug: Registering org.bytedeco.opencv.opencv_core.CvSlice[address=0x60000166f840,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x60000166f840,deallocatorAddress=0x16a40840c]]
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_imgproc.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_imgcodecs.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_imgcodecs.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_videoio.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_videoio.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_highgui.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_highgui.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_flann.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_flann.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_features2d.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_features2d.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_calib3d.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_calib3d.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_aruco
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_aruco
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_aruco.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_aruco.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_dnn.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_dnn.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_video
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_video
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_video.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_video.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_bgsegm
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_video
Debug: Loading class org.bytedeco.opencv.global.opencv_bgsegm
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_bgsegm.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_bgsegm.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_bioinspired
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_bioinspired
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_bioinspired.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_bioinspired.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_objdetect
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_objdetect
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_objdetect.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_objdetect.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_photo
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_photo
Debug: Loading library opencv_cuda
Debug: Failed to load for opencv_cuda@.405: java.lang.UnsatisfiedLinkError: no opencv_cuda in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library opencv_cudaarithm
Debug: Failed to load for opencv_cudaarithm@.405: java.lang.UnsatisfiedLinkError: no opencv_cudaarithm in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library opencv_cudafilters
Debug: Failed to load for opencv_cudafilters@.405: java.lang.UnsatisfiedLinkError: no opencv_cudafilters in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading library opencv_cudaimgproc
Debug: Failed to load for opencv_cudaimgproc@.405: java.lang.UnsatisfiedLinkError: no opencv_cudaimgproc in java.library.path: /Users/sc/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_photo.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_photo.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_face
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_objdetect
Debug: Loading class org.bytedeco.opencv.global.opencv_photo
Debug: Loading class org.bytedeco.opencv.global.opencv_face
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_face.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_face.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_img_hash
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_img_hash
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_img_hash.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_img_hash.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_phase_unwrapping
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_phase_unwrapping
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_phase_unwrapping.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_phase_unwrapping.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_structured_light
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_phase_unwrapping
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_structured_light
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_structured_light.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_structured_light.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_ml
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_ml
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_ml.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_ml.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_text
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_ml
Debug: Loading class org.bytedeco.opencv.global.opencv_text
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_text.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_text.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_plot
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_plot
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_plot.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_plot.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_tracking
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_plot
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_video
Debug: Loading class org.bytedeco.opencv.global.opencv_tracking
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_tracking.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_tracking.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_shape
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_shape
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_shape.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_shape.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_xfeatures2d
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_ml
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_shape
Debug: Loading class org.bytedeco.opencv.global.opencv_xfeatures2d
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_xfeatures2d.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_xfeatures2d.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_ximgproc
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_video
Debug: Loading class org.bytedeco.opencv.global.opencv_ximgproc
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_ximgproc.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_ximgproc.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_xphoto
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_photo
Debug: Loading class org.bytedeco.opencv.global.opencv_xphoto
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_xphoto.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_xphoto.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_barcode
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_barcode
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_barcode.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_barcode.dylib
Debug: Loading class org.bytedeco.opencv.global.opencv_wechat_qrcode
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_wechat_qrcode
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_wechat_qrcode.405.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_wechat_qrcode.dylib
Debug: Loading class org.bytedeco.opencv.opencv_java
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.openblas.global.openblas
Debug: Loading class org.bytedeco.opencv.global.opencv_core
Debug: Loading class org.bytedeco.opencv.global.opencv_imgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_imgcodecs
Debug: Loading class org.bytedeco.opencv.global.opencv_videoio
Debug: Loading class org.bytedeco.opencv.global.opencv_highgui
Debug: Loading class org.bytedeco.opencv.global.opencv_flann
Debug: Loading class org.bytedeco.opencv.global.opencv_features2d
Debug: Loading class org.bytedeco.opencv.global.opencv_calib3d
Debug: Loading class org.bytedeco.opencv.global.opencv_aruco
Debug: Loading class org.bytedeco.opencv.global.opencv_dnn
Debug: Loading class org.bytedeco.opencv.global.opencv_video
Debug: Loading class org.bytedeco.opencv.global.opencv_bgsegm
Debug: Loading class org.bytedeco.opencv.global.opencv_bioinspired
Debug: Loading class org.bytedeco.opencv.global.opencv_objdetect
Debug: Loading class org.bytedeco.opencv.global.opencv_photo
Debug: Loading class org.bytedeco.opencv.global.opencv_face
Debug: Loading class org.bytedeco.opencv.global.opencv_img_hash
Debug: Loading class org.bytedeco.opencv.global.opencv_phase_unwrapping
Debug: Loading class org.bytedeco.opencv.global.opencv_structured_light
Debug: Loading class org.bytedeco.opencv.global.opencv_ml
Debug: Loading class org.bytedeco.opencv.global.opencv_text
Debug: Loading class org.bytedeco.opencv.global.opencv_plot
Debug: Loading class org.bytedeco.opencv.global.opencv_tracking
Debug: Loading class org.bytedeco.opencv.global.opencv_shape
Debug: Loading class org.bytedeco.opencv.global.opencv_xfeatures2d
Debug: Loading class org.bytedeco.opencv.global.opencv_ximgproc
Debug: Loading class org.bytedeco.opencv.global.opencv_xphoto
Debug: Loading class org.bytedeco.opencv.global.opencv_barcode
Debug: Loading class org.bytedeco.opencv.global.opencv_wechat_qrcode
Debug: Loading class org.bytedeco.opencv.opencv_java
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libopencv_java.dylib
Debug: Loading /Users/sc/.javacpp/cache/opencv-4.5.5-1.5.7-macosx-arm64.jar/org/bytedeco/opencv/macosx-arm64/libjniopencv_java.dylib
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libavutil.57.dylib
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libjniavutil.dylib
Debug: Loading class org.bytedeco.ffmpeg.avutil.LogCallback
Debug: Registering org.bytedeco.javacv.FFmpegLogCallback[address=0x6000016d49a0,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000016d49a0,deallocatorAddress=0x177d1f95c]]
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libswresample.4.dylib
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libjniswresample.dylib
Debug: Loading class org.bytedeco.ffmpeg.global.avcodec
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading class org.bytedeco.ffmpeg.global.avcodec
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libavcodec.59.dylib
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libjniavcodec.dylib
Debug: Loading class org.bytedeco.ffmpeg.global.avformat
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading class org.bytedeco.ffmpeg.global.avcodec
Debug: Loading class org.bytedeco.ffmpeg.global.avformat
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libavformat.59.dylib
Debug: Loading /Users/sc/.javacpp/cache/ffmpeg-5.0-1.5.7-macosx-arm64.jar/org/bytedeco/ffmpeg/macosx-arm64/libjniavformat.dylib
Debug: Loading class org.bytedeco.ffmpeg.avformat.Read_packet_Pointer_BytePointer_int
Debug: Registering org.bytedeco.javacv.FFmpegFrameGrabber$ReadCallback[address=0x6000016d13f0,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000016d13f0,deallocatorAddress=0x177f022b4]]
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading class org.bytedeco.ffmpeg.global.avcodec
Debug: Loading class org.bytedeco.ffmpeg.global.avformat
Debug: Loading class org.bytedeco.ffmpeg.avformat.Seek_Pointer_long_int
Debug: Registering org.bytedeco.javacv.FFmpegFrameGrabber$SeekCallback[address=0x6000016d4a40,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000016d4a40,deallocatorAddress=0x177f03724]]
Debug: Opening org.bytedeco.javacpp.PointerScope@30f842ca
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading class org.bytedeco.ffmpeg.global.avcodec
Debug: Loading class org.bytedeco.ffmpeg.global.avformat
Debug: Loading class org.bytedeco.ffmpeg.avformat.AVFormatContext
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.PointerPointer
Debug: Registering org.bytedeco.javacpp.PointerPointer[address=0x6000001e6000,position=0,limit=8,capacity=8,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000001e6000,deallocatorAddress=0x16aa48f40]]
Debug: Attaching org.bytedeco.javacpp.PointerPointer[address=0x6000001e6000,position=0,limit=8,capacity=8,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000001e6000,deallocatorAddress=0x16aa48f40]] to org.bytedeco.javacpp.PointerScope@30f842ca
Debug: Registering org.bytedeco.javacpp.PointerPointer[address=0x6000001e6040,position=0,limit=8,capacity=8,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000001e6040,deallocatorAddress=0x16aa48f40]]
Debug: Attaching org.bytedeco.javacpp.PointerPointer[address=0x6000001e6040,position=0,limit=8,capacity=8,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x6000001e6040,deallocatorAddress=0x16aa48f40]] to org.bytedeco.javacpp.PointerScope@30f842ca
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.ffmpeg.global.avutil
Debug: Loading class org.bytedeco.ffmpeg.global.swresample
Debug: Loading class org.bytedeco.ffmpeg.global.avcodec
Debug: Loading class org.bytedeco.ffmpeg.avcodec.AVPacket
Debug: Registering org.bytedeco.ffmpeg.avcodec.AVPacket[address=0x600003f58770,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x600003f58770,deallocatorAddress=0x177e3fc5c]]
Debug: Attaching org.bytedeco.ffmpeg.avcodec.AVPacket[address=0x600003f58770,position=0,limit=1,capacity=1,deallocator=org.bytedeco.javacpp.Pointer$NativeDeallocator[ownerAddress=0x600003f58770,deallocatorAddress=0x177e3fc5c]] to org.bytedeco.javacpp.PointerScope@30f842ca
Debug: Closing org.bytedeco.javacpp.PointerScope@30f842ca
Exception in thread "main" org.bytedeco.javacv.FFmpegFrameGrabber$Exception: av_find_input_format() error: Could not find input format "avfoundation". (For more details, make sure FFmpegLogCallback.set() has been called.)
at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:881)
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:849)
at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:844)
at com.sc.videocapturedemogradle.trials.ScreenGrab.main(ScreenGrab.java:26)
Execution failed for task ':ScreenGrab.main()'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
I see, FFmpegFrameGrabber.tryLoad()
isn't getting called. I mistakenly commented that out with the upgrade to FFmpeg 5.0, but it's still needed. I've fixed this in commit https://github.com/bytedeco/javacv/commit/fef1d8ee8778dca195bfca35bdf81e9031d2ed12, but we can easily work around that just by calling it explicitly manually.
It works now! Thank you @saudet!
It the default pixel format (bgr24) gave an error. [avfoundation @ 0x119fae530] Selected pixel format (bgr24) is not supported by the input device.
I used one of the suggested supported pixel formats grabber.setPixelFormat(avutil.AV_PIX_FMT_0RGB);
, and it worked perfectly.
@saudet do you know of a more efficient way of saving the captured frames? I am currently capturing the screen frames, displaying them on a CanvasFrame and recording from the frame. Do you have an example of how to have the program capture the screen without using a CanvasFrame?
I am trying to use a while loop to continuously capture the frames. However, only one frame gets captured and the recording stops. Any ideas on what I am doing wrong?
Frame frame;
while((frame = grabber.grab()) != null){
recorder.record(frame);
}
recorder.stop();
grabber.stop();
I am getting the following warnings but could not figure out how to resolve them:
[AVFoundation indev @ 0x12de64c00] Configuration of video device failed, falling back to default.
[avfoundation @ 0x12de64980] Stream #0: not enough frames to estimate rate; consider increasing probesize
[aac @ 0x103506660] 1 frames left in the queue on closing
@saudet do you know of a more efficient way of saving the captured frames? I am currently capturing the screen frames, displaying them on a CanvasFrame and recording from the frame. Do you have an example of how to have the program capture the screen without using a CanvasFrame?
You can stop using CanvasFrame entirely, that's just to display frames. We don't need it to record them.
I am trying to use a while loop to continuously capture the frames. However, only one frame gets captured and the recording stops. Any ideas on what I am doing wrong?
Frame frame; while((frame = grabber.grab()) != null){ recorder.record(frame); } recorder.stop(); grabber.stop();
I am getting the following warnings but could not figure out how to resolve them:
[AVFoundation indev @ 0x12de64c00] Configuration of video device failed, falling back to default.
[avfoundation @ 0x12de64980] Stream #0: not enough frames to estimate rate; consider increasing probesize
[aac @ 0x103506660] 1 frames left in the queue on closing
I don't know, but according to a quick search, it just sounds like a permission problem with your system, for example, see https://github.com/kapoorlakshya/screen-recorder/issues/88#issuecomment-629139032.
I also saw that thread and made sure the permissions were correctly set. The screen gets recorded for one second and the one-two frame clip gets saved. However it then terminates.
@spectacularcrackers There's another issue in the case of avfoundation that was fixed in commit https://github.com/bytedeco/javacv/commit/8d75c0a33c9a105c7da08e754179ac785bf6f788, see issue #1784. Please give it a try with the snapshots: http://bytedeco.org/builds/
The new snapshot fixed it. Thanks @saudet !
The fix has been released with JavaCV 1.5.8. Thanks for reporting!
I would like to take a screenshot of my mac every second using opencv. Is this possible? If so, is there an example that I could reference?
I see the wiki document for windows (https://github.com/bytedeco/javacv/wiki/Screen-Capture-on-Windows), but I am not sure how to implement it for Mac.