Skip to content

Commit

Permalink
ffmpeg fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kjake committed Mar 24, 2024
1 parent 2680f90 commit b6a70f9
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 -i - -c:v libx264 -c:a copy "/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 -y "/home/download/${streamName} - ${streamDate} - ${streamTitle}.mp4"
sleep ${streamPoll:-60}s
done

0 comments on commit b6a70f9

Please sign in to comment.