From 75c94ef5903f0def0c5c8d7603ca01864768c5e4 Mon Sep 17 00:00:00 2001 From: Jigme Datse Yli-Rasku Date: Thu, 4 Apr 2024 10:52:25 -0700 Subject: [PATCH] Should Log This should (if I've not screwed stuff up) log standard error to .log file. --- multi-record/multi-record.sh | 6 +++++- multi-record/record.sh | 4 ++-- multi-record/video-record.sh | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/multi-record/multi-record.sh b/multi-record/multi-record.sh index ec46ea7..f08b3dd 100755 --- a/multi-record/multi-record.sh +++ b/multi-record/multi-record.sh @@ -3,8 +3,12 @@ ./record.sh -c "steinberg.json" & ./record.sh -c "webcam.json" & ./record.sh -c "capture.json" & -./video-record.sh -c "webcam-video.json" & ./video-record.sh -c "capture-video.json" & +./video-record.sh -c "video1.json" & +./video-record.sh -c "video4.json" & +./screen-record.sh -c "screen-right.json" & +./screen-record.sh -c "screen-left.json" & + diff --git a/multi-record/record.sh b/multi-record/record.sh index c7dd08e..6990958 100755 --- a/multi-record/record.sh +++ b/multi-record/record.sh @@ -84,7 +84,7 @@ mkdir -p $outputdir #echo ffmpeg -f v4l2 -framerate 24 -video_size 864x480 -c:v h264 -i ${inputvideo} -f pulse -i ${inputaudio} -c:a aac ${theoutput} #ffmpeg -f v4l2 -framerate 24 -video_size 864x480 -i ${inputvideo} -f pulse -i ${inputaudio} -c:a aac ${theoutput} -echo ffmpeg -f pulse -i ${inputaudio} -c:a flac ${theoutput} -ffmpeg -f pulse -i ${inputaudio} -c:a flac ${theoutput} 2> /dev/null +#echo ffmpeg -f pulse -i ${inputaudio} -c:a flac ${theoutput} +ffmpeg -f pulse -i ${inputaudio} -c:a flac ${theoutput} 2> ${theoutput}.log diff --git a/multi-record/video-record.sh b/multi-record/video-record.sh index 66416d1..5cb41d2 100755 --- a/multi-record/video-record.sh +++ b/multi-record/video-record.sh @@ -82,8 +82,8 @@ echo inputaudio $inputaudio mkdir -p $outputdir -echo ffmpeg -f v4l2 -framerate 24 -video_size 864x480 -c:v h264 -i ${inputvideo} -f pulse -i ${inputaudio} -c:a aac ${theoutput} -ffmpeg -f v4l2 -framerate 24 -video_size 864x480 -fflags +genpts -use_wallclock_as_timestamps 1 -r 15 -thread_queue_size 32 -i ${inputvideo} -f pulse -thread_queue_size 32 -i ${inputaudio} -use_wallclock_as_timestamps 1 -r 15 -c:v h264 -c:a aac ${theoutput} 2> /dev/null +#echo ffmpeg -f v4l2 -framerate 24 -video_size 1920x1080 -c:v h264 -i ${inputvideo} -f pulse -i ${inputaudio} -c:a aac ${theoutput} +ffmpeg -f v4l2 -framerate 24 -video_size 1920x1080 -fflags +genpts -use_wallclock_as_timestamps 1 -r 15 -thread_queue_size 32 -i ${inputvideo} -f pulse -thread_queue_size 32 -i ${inputaudio} -use_wallclock_as_timestamps 1 -r 15 -c:v h264 -c:a aac ${theoutput} 2> ${theoutput}.log #echo ffmpeg -f pulse -i ${inputaudio} -c:a flac ${theoutput} #ffmpeg -f pulse -i ${inputaudio} -c:a flac ${theoutput} 2> /dev/null