Files
gstreamer-tests/record_mp4_video_audio.sh
2023-09-18 08:14:42 -07:00

13 lines
321 B
Bash
Executable File

#!/bin/bash
rm -rf test.mp4
export GST_DEBUG=3
gst-launch-1.0 -e v4l2src ! video/x-raw,width=640,height=480,framerate=30/1 ! \
videoconvert ! \
x264enc tune=zerolatency ! \
mux. alsasrc ! queue ! audioconvert ! \
audioresample ! voaacenc ! aacparse ! qtmux name=mux ! \
filesink location=test.mp4 sync=false