Skip to content

Commit

Permalink
Remove VAAPI for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kjake committed Mar 24, 2024
1 parent a5e0468 commit fa0c1a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion streamlink-recorder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ 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 -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 -f mp4 -y "/home/download/${streamName} - ${streamDate} - ${streamTitle}.mp4"
#
# VAAPI for later
# 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 -f mp4 -y "/home/download/${streamName} - ${streamDate} - ${streamTitle}.mp4"
#
#
streamlink $streamOptions $streamLink $streamQuality --stdout | ffmpeg -i pipe:0 -c:v libx264 -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 fa0c1a0

Please sign in to comment.