Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kjake committed Mar 24, 2024
1 parent ae7d994 commit a5e0468
Showing 1 changed file with 1 addition and 1 deletion.
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 -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"
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"
sleep ${streamPoll:-60}s
done

0 comments on commit a5e0468

Please sign in to comment.