Tool/software:
I am working on a GStreamer pipeline on the AM68A board to capture video from a camera and audio from a microphone simultaneously, encode them, and save to a file (e.g., MKV).
The pipeline works and records correctly, but when I press Ctrl+C to stop, the application repeatedly prints:
Interrupt received, sending EOS...
and never exits properly. It seems the pipeline is stuck waiting for EOS (end-of-stream) and does not shut down cleanly.
Here is the GStreamer command I am running:
gst-launch-1.0 -e \
v4l2src device=/dev/video2 ! videoconvert ! queue ! v4l2h264enc ! h264parse ! queue ! mux. \
alsasrc do-timestamp=true ! queue ! audioconvert ! audioresample ! avenc_aac ! aacparse ! queue ! mux. \
matroskamux name=mux ! filesink location=test.mkv sync=false
Could you please advise on:
-
Best practices or recommended pipeline structure for simultaneous video/audio capture on AM68A?
-
How to properly handle EOS and Ctrl+C to cleanly exit the pipeline without hanging?
-
Any example code or documentation for handling EOS messages and graceful shutdown on TI GStreamer?