Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on using appsink on android #9

Open
fatbringer opened this issue Apr 22, 2024 · 0 comments
Open

Question on using appsink on android #9

fatbringer opened this issue Apr 22, 2024 · 0 comments

Comments

@fatbringer
Copy link

i looked through the implementation of gstreamer and it seems like there is a function that i need named Gst.parse_launch_full as well as pipeline.getElementByName("appsink") as AppSink

however, i cant find it in the android implementation of gstreamer.
I looked into the c code and could only find these functions

/* List of implemented native methods */
static JNINativeMethod native_methods[] = {
        {"nativeInit", "()V", (void *) gst_native_init},
        {"nativeFinalize", "()V", (void *) gst_native_finalize},
        {"nativePlay", "()V", (void *) gst_native_play},
        {"nativePause", "()V", (void *) gst_native_pause},
        {"nativeSurfaceInit", "(Ljava/lang/Object;)V",
                (void *) gst_native_surface_init},
        {"nativeSurfaceFinalize", "()V", (void *) gst_native_surface_finalize},
        {"nativeClassInit", "()Z", (void *) gst_native_class_init},
        {"nativeGetGStreamerInfo", "()Ljava/lang/String;", (void *) gst_native_get_gstreamer_info},
        {"nativeSetPipeline", "(Ljava/lang/String;)V", (void *) gst_native_set_pipeline}
};

is there something else equivalent to ```Gst.parse_launch_full```` ?

my goal is to be able to capture individual frames from the video stream so that i can save screenshots (not of the whole screen), save the video,, and also perform object detection (which implies i need to be able to extract the bitmap)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant