Skip to content

Commit

Permalink
feat: convert record to separated media files and push to s3 (#351)
Browse files Browse the repository at this point in the history
* convert raw record to independent audio and video tracks with summary

* upload to s3

* fix missing track ended event in record

* allow convert to local or s3

* fixing typos

* update deps
  • Loading branch information
giangndm authored Jul 17, 2024
1 parent bfdcfc3 commit 8d18a1d
Show file tree
Hide file tree
Showing 10 changed files with 364 additions and 224 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
with:
use-cross: ${{ matrix.cross }}
command: build
args: --verbose --release --package media-server-record --target ${{ matrix.target }} --bin convert_webm
args: --verbose --release --package media-server-record --target ${{ matrix.target }} --bin convert_record

- name: Rename server
if: ${{ matrix.build != 'windows gnu x64' && matrix.build != 'windows msvc x64' }}
Expand All @@ -227,7 +227,7 @@ jobs:
- name: Rename record
if: ${{ matrix.build_record_tool && matrix.build != 'windows gnu x64' && matrix.build != 'windows msvc x64' }}
run: |
mv ./target/${{ matrix.target }}/release/convert_webm${{ matrix.extension }} convert_webm-${{ matrix.target }}${{ matrix.extension }}
mv ./target/${{ matrix.target }}/release/convert_record${{ matrix.extension }} convert_record-${{ matrix.target }}${{ matrix.extension }}
- name: Upload Artifact to Summary
if: ${{ matrix.build != 'windows gnu x64' && matrix.build != 'windows msvc x64' }}
Expand All @@ -252,8 +252,8 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: convert_webm-${{ matrix.target }}${{ matrix.extension }}
asset_name: convert_webm-${{ matrix.target }}${{ matrix.extension }}
file: convert_record-${{ matrix.target }}${{ matrix.extension }}
asset_name: convert_record-${{ matrix.target }}${{ matrix.extension }}
tag: ${{ github.ref }}
overwrite: true

Expand Down
Loading

0 comments on commit 8d18a1d

Please sign in to comment.