I am trying to mux audio and video in my gstreamer pipeline from a usb streaming camera source. Here is the pipeline description I am using:
gst-launch-1.0 -v v4l2src device=/dev/video2 ! video/x-raw,width=1920,height=1080,framerate=30/1 ! videoconvert ! fisheyeptz ! videoconvert ! v4l2h264enc extra-controls="controls,video_bitrate_mode=1,video_bitrate=2500000,h264_profile=2" ! h264parse ! tee name=t alsasrc ! queue ! volume volume=1.0 ! audioconvert ! avenc_aac ! aacparse ! mux. t. ! queue ! matroskamux name=mux ! filesink location=gst.mkv
The resulting video file contains numerous “artifacts”: it is particularly blurry for things that are in motion.
When I remove the audio encoding portion and mux only the video, the video is sharp and responsive with zero artifacts.
I’ve attached two sample clips: one with audio that demonstrates that artifacts and one without. I am confused why the muxing process would cause these artifacts or how I can improve my pipeline or construct it different to avoid these artifacts. Any pointers appreciated!