I’m trying to stream a video and save it to disk with splitmuxsink. I’ve managed to get the pipeline to work as a terminal command, but I’m getting a couple of errors with the C code. The terminal pipeline that works is:
gst-launch-1.0 videotestsrc ! video/x-raw,width=320,height=240 ! videoconvert ! tee name=t t. ! queue ! nvoverlaysink t. ! queue ! timeoverlay ! omxh264enc ! h264parse ! splitmuxsink max-files=3 max-size-time=3000000000 location=video%02d.mp4
The errors that the C code is giving are:
DEBUG e[00m e[00;01;36m GST_PLUGIN_LOADING gstplugin.c:1549:gst_plugin_ext_dep_scan_dir_and_match_names:<plugin134>e[00m g_dir_open(/dev/v4l2) failed: Error opening directory '/dev/v4l2': No such file or directory
and
WARN e[00m e[00m omx gstomx.c:2826:plugin_init:e[00m Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/nvidia/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
The full C code and log output (debug level 5) can be found here: https://github.com/AtomicJosh/random_projects
Any ideas on what’s wrong with the C code? I’ve tried googling those errors and haven’t found anything definitive.