On Mon, 27 Feb 2023 at 20:50, Nick <
birdbr...@gmail.com> wrote:
> I am trying to replicate the (-e) at the end of the command line. But can't figure out why the saved video with the program doesn't work like (-e). Pushing an EOS event was suggested above put maybe I am doing that wrong.
It doesn't look like you're waiting for the event to propagate down
the pipeline to the sink before the process ends.
Firstly, try adding another sleep after you stop the pipeline and see
if the video is working.
You probably want to add an EOS listener to the pipeline bus and stop
the pipeline / quit the application from there using Gst.main() and
Gst.quit().
See also use of Gst.main() and Gst.quit(), and use of the scheduler
rather than sleeping at
https://github.com/gstreamer-java/gst1-java-examples/blob/master/BasicPipeline/src/main/java/org/freedesktop/gstreamer/examples/BasicPipeline.java#L70
Best wishes,
Neil
--
Neil C Smith
Codelerity Ltd.
www.codelerity.com
Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD