Skip to content

Commit

Permalink
Adding VAAPI Support
Browse files Browse the repository at this point in the history
Removing ARM64 support
  • Loading branch information
kjake committed Mar 24, 2024
1 parent b6a70f9 commit e1c31cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64/v8
platforms: linux/amd64
tags: ${{ env.IMAGE_NAME }}:latest
push: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV streamlinkCommit=8d73b096066e3a84af4057f5aa589f7a65e5ab34

RUN apk add --update --no-cache && \
apk add --no-cache gosu --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && \
apk add --no-cache py3-pip jq git ffmpeg ca-certificates && \
apk add --no-cache py3-pip jq git ffmpeg ca-certificates intel-media-driver libva-intel-driver libva-mesa-driver mesa-vdpau && \
pip3 install --upgrade git+https://github.com/streamlink/streamlink.git@${streamlinkCommit} && \
echo 'export PATH="${HOME}/.local/bin:${PATH}"' && \
mkdir /home/download && \
Expand Down
2 changes: 1 addition & 1 deletion streamlink-recorder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ while [ true ]; do
# Extract stream title from JSON
streamTitle=$(echo $streamInfo | jq -r '.metadata.title')
# Download and convert stream
streamlink $streamOptions $streamLink $streamQuality --stdout | ffmpeg -i pipe:0 -c:v libx264 -c:a copy -movflags +faststart -f mp4 -y "/home/download/${streamName} - ${streamDate} - ${streamTitle}.mp4"
streamlink $streamOptions $streamLink $streamQuality --stdout | ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i pipe:0 -filter_hw_device foo -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi -c:a copy -movflags +faststart -f mp4 -loglevel error -y "/home/download/${streamName} - ${streamDate} - ${streamTitle}.mp4"
sleep ${streamPoll:-60}s
done

0 comments on commit e1c31cf

Please sign in to comment.