DP-1-wl-record.sh 299 B

123456789101112
  1. #!/bin/bash
  2. pid=`pgrep wf-recorder -d -D`
  3. status=$?
  4. if [ $status != 0 ]
  5. then
  6. wf-recorder -c h264_vaapi -d /dev/dri/renderD128 --audio=alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor -o DP-1 -f ~/ScreenNonRecord/$(date +recording_%Y-%m-%d-%H%M%S.mp4);
  7. else
  8. pkill --signal SIGINT wf-recorder
  9. fi