diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5119eba..a399593 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 9dff708..82c2fe9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ diff --git a/streamlink-recorder.sh b/streamlink-recorder.sh index c74468a..61e0b4c 100644 --- a/streamlink-recorder.sh +++ b/streamlink-recorder.sh @@ -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