From 6cc1a351fb10f6dd2abfd52d0627d7ab394e5a1b Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 18 Sep 2023 10:43:17 -0700 Subject: [PATCH] adding in simple mux record that works for test srcs --- mux.mp4 | 0 record_mux.sh | 9 +++++++++ simple_test_record_to_file.sh | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 mux.mp4 create mode 100755 record_mux.sh create mode 100755 simple_test_record_to_file.sh diff --git a/mux.mp4 b/mux.mp4 new file mode 100644 index 0000000..e69de29 diff --git a/record_mux.sh b/record_mux.sh new file mode 100755 index 0000000..08b4757 --- /dev/null +++ b/record_mux.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +rm -rf mux.mp4 + +gst-launch-1.0 alsasrc ! voaacenc ! queue ! mux. \ + v4l2src ! video/x-raw,width=640,height=480,framerate=30/1 ! \ + x264enc ! h264parse ! \ + mp4mux name=mux ! \ + filesink location="mux.mp4" diff --git a/simple_test_record_to_file.sh b/simple_test_record_to_file.sh new file mode 100755 index 0000000..f4da3a4 --- /dev/null +++ b/simple_test_record_to_file.sh @@ -0,0 +1,4 @@ +#!/bin/bash + + +gst-launch-1.0 -e videotestsrc ! x264enc ! mp4mux name=mux ! filesink location="bla.mp4" audiotestsrc ! lamemp3enc ! mux.