@@ -56,17 +56,23 @@ jobs:
56
56
if : runner.os == 'Linux'
57
57
- name : Start Screen Recording
58
58
run : |
59
- mkdir -p $PWD/videos
59
+ mkdir -p $PWD/videos-raw
60
60
no_close=--no-close # uncomment to see ffmpeg output (i.e. leave stdio open)
61
- start-stop-daemon $no_close --start --quiet --pidfile ~/var/run/ffmpeg.pid --make-pidfile --background --exec /usr/bin/ffmpeg -- -nostdin -f x11grab -video_size 1280x1024 -framerate 10 -i ${DISPLAY}.0+0,0 $PWD/videos/test.mp4
61
+ start-stop-daemon $no_close --start --quiet --pidfile ~/var/run/ffmpeg.pid --make-pidfile --background --exec /usr/bin/ffmpeg -- -nostdin -f x11grab -video_size 1280x1024 -framerate 10 -i ${DISPLAY}.0+0,0 $PWD/videos-raw /test.mp4
62
62
# pid=`cat ~/var/run/ffmpeg.pid`
63
63
# echo "Waiting for ffmpeg (pid $pid) to start recording (display $DISPLAY)..."
64
- # while [ ! -f $PWD/videos/test.mp4 ]; do
64
+ # while [ ! -f $PWD/videos-raw /test.mp4 ]; do
65
65
# echo -n .
66
66
# sleep 3
67
67
# done
68
68
if : runner.os == 'Linux'
69
- # - name: Setup SSH Debugging
69
+ - name : Cache VS Code Binary
70
+ id : vscode-test
71
+ uses : actions/cache@v3
72
+ with :
73
+ path : .vscode-test/
74
+ key : ${{ runner.os }}-vscode-test
75
+ # - name: SSH Debug Breakpoint
70
76
# uses: lhotari/action-upterm@v1
71
77
# with:
72
78
# limit-access-to-actor: true
@@ -76,12 +82,16 @@ jobs:
76
82
run : |
77
83
start-stop-daemon --stop --pidfile ~/var/run/ffmpeg.pid
78
84
sleep 3
79
- ffmpeg -i $PWD/videos/test.mp4 -vf format=yuv420p $PWD/videos/test-yuv420p.mp4
85
+ mkdir -p $PWD/videos
86
+ for f in $PWD/videos-raw/*.mp4; do
87
+ out=`basename $f`
88
+ ffmpeg -i $f -vf format=yuv420p $PWD/videos/$out
89
+ done
80
90
if : always() && runner.os == 'Linux'
81
91
- name : Archive Screen Recording
82
92
uses : actions/upload-artifact@v3
83
93
with :
84
- name : test-video
94
+ name : videos
85
95
path : |
86
96
videos/
87
97
if : always() && runner.os == 'Linux'
0 commit comments