It looks like TestProcessVideoRTSPToMP4.java is close in that you
connect to an RTSP stream, press enter to start, get images then send
to pipeline for conversion to MP4.
Put in a RTSP feed and get the following error when doing the setup
work to write a captured image. The exception gets thrown on the
following
info.setFlags(NativeFlags.toInt(srcBuffer.getFlags()));
Any thoughts?
GST finished initialization.
Processing of RTSP feed started, please wait...
Press ENTER to start processing footage from the cam, or type 'QUIT'
and press ENTER to exit...
Press ENTER to stop the process...
Feb 07, 2021 1:43:13 PM com.sun.jna.Native$1 uncaughtException
WARNING: JNA: Callback
org.freedesktop.gstreamer.elements.AppSink$2@4524411f threw the
following exception
org.freedesktop.gstreamer.GstException: Not supported by requested
GStreamer version
at org.freedesktop.gstreamer.Gst.checkVersion(Gst.java:613)
at org.freedesktop.gstreamer.Buffer.getFlags(Buffer.java:255)
at org.freedesktop.gstreamer.examples.TestProcessVideoRTSPToMP4$AppSinkListener.newSample(TestProcessVideoRTSPToMP4.java:253)
at org.freedesktop.gstreamer.elements.AppSink$2.callback(AppSink.java:232)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:520)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:551)
> --
> You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
gstreamer-jav...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/gstreamer-java/CAPxOS5HEd-%3Di5F-hRkzxEi1hnLQSFt7pojbB91-E0QW94bH11A%40mail.gmail.com.