DP-2-wl-record.sh 609 B

123456789101112131415161718192021222324252627282930
  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-2 -f ~/ScreenNonRecord/$(date +recording_%Y-%m-%d-%H%M%S.mp4);
  7. else
  8. pkill --signal SIGINT wf-recorder
  9. fi
  10. #pid=`pgrep wf-recorder -d -D`
  11. #status=$?
  12. #if [ $status != 0 ]
  13. #then
  14. #wf-recorder --audio-codec alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor -c h264_vaapi -d /dev/dri/renderD128 -o DP-1 -f ~/ScreenNonRecord/-$(date +recording_%Y-%m-%d-%H%M%S.mp4);
  15. #else
  16. # pkill --signal SIGINT wf-recorder
  17. #fi