-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add webcam streaming * test: webcam streaming * feat: remove webcam local recording * feat: reduce webcam streaming resolution to 720p * fix: ffmpeg record use port 101 from vlc * fix(dev_env): use xhci (usb 3.0) * fix: handle device disconnect * fix: use udevadm to monitor webcam events * fix(startup.sh): vlc spelling * feat: include input audio in webcam streaming * fix: Set webcam keyframe interval to 15 fps Using fixed keyframe interval significantly reduce stream latency and reduce *.ts fragment file size. * fix(startup.sh): move udevadm up before vlc to avoid missing video device remove event * feat(startup.sh): wait kills udevadm and cvlc only if terminated instead of status change * feat(startup.sh): udevadm specify video device * feat(startup.sh): prevent cpu hogging when video device not present and print debug * feat(startup.sh): kill -9 if cvlc fails to exit * fix(startup.sh): let kill terminate with exit code because we're not using exit on error * feat(startup.sh): pick webcams by id rather than /dev/video0 * feat: process substitution instead of pipeline for udevadm * fix(startup.sh): correct timeout * feat: simplify process killing logic * feat: add sigkill to startup.sh's peer stop * feat: Add audio device picker * feat: Add audio device utils for vnoiconf.sh * feat: allow glob and manual audio source config * feat: add comments to regexes in vnoiconf.sh * feat: pattern matching notes * feat: move default audio_source for clarity * chore: Cleanup github workflow jobs * fix: fix workflow image-toolkit config secret name * chore: drop root requirement when generating secrets * feat: Use workaround to gain extra space from github actions * fix: keep docker cache and image * feat: Remove IMAGE and ICPC folder in github actions mode * fix: Reorder github actions remove files * fix: use different tmp path for gh workflows scp actions * fix: Use homemade scp script * fix: please fix this scp madness --------- Co-authored-by: Nguyen Minh Nhat Noe <[email protected]> Co-authored-by: Minh Hung Tran <[email protected]>
- Loading branch information
1 parent
31f7be4
commit 7c84b51
Showing
9 changed files
with
306 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Maximize build space | ||
uses: easimon/maximize-build-space@master | ||
with: | ||
root-reserve-mb: 512 | ||
swap-size-mb: 1024 | ||
remove-dotnet: 'true' | ||
remove-codeql: 'true' | ||
remove-haskell: 'true' | ||
remove-android: 'true' | ||
|
||
- name: Check free space | ||
run: echo "Free space $(df -h /)" | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -29,28 +42,32 @@ jobs: | |
CONTENT: ${{ secrets.CONFIG_LOCAL_SH }} | ||
FILENAME: config.local.sh | ||
|
||
- name: Write image-toolkit/config.local.sh | ||
run: echo $CONTENT | base64 -d > $FILENAME | ||
env: | ||
CONTENT: ${{ secrets.SRC_CONFIG_LOCAL_SH }} | ||
FILENAME: image-toolkit/config.local.sh | ||
|
||
- name: Write image-toolkit/config.sh | ||
run: echo $CONTENT | base64 -d > $FILENAME | ||
env: | ||
CONTENT: ${{ secrets.SRC_CONFIG_SH }} | ||
CONTENT: ${{ secrets.TOOLKIT_CONFIG_SH }} | ||
FILENAME: image-toolkit/config.sh | ||
|
||
- name: Build image | ||
run: sudo ./build.sh icpc_build --github-actions | ||
|
||
# - name: Push to Server | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# host: ${{ secrets.SCP_HOST }} | ||
# username: ${{ secrets.SCP_USERNAME }} | ||
# key: ${{ secrets.SCP_KEY }} | ||
# port: ${{ secrets.SCP_PORT }} | ||
# source: live-build/contestant.iso | ||
# target: ${{ secrets.SCP_TARGET }} | ||
# tar_tmp_path: live-build/ | ||
|
||
- name: Push to Server | ||
if: ${{ github.event.inputs.iso_location == 'server' }} | ||
uses: appleboy/[email protected] | ||
uses: nogsantos/scp-deploy@master | ||
with: | ||
src: live-build/contestant.iso | ||
host: ${{ secrets.SCP_HOST }} | ||
username: ${{ secrets.SCP_USERNAME }} | ||
key: ${{ secrets.SCP_KEY }} | ||
remote: ${{ secrets.SCP_TARGET }} | ||
port: ${{ secrets.SCP_PORT }} | ||
source: live-build/contestant.iso | ||
target: ${{ secrets.SCP_TARGET }} | ||
user: ${{ secrets.SCP_USERNAME }} | ||
key: ${{ secrets.SCP_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.