Skip to content

Commit

Permalink
Merge pull request #416 from zebrunner/develop
Browse files Browse the repository at this point in the history
2.1.6
  • Loading branch information
vdelendik authored Jul 26, 2024
2 parents 59b85e2 + 537e1e7 commit beacec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/start-capture-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ echo -n "on" | nc ${BROADCAST_HOST} ${BROADCAST_PORT} -w 0 -v
echo "[info] [CaptureArtifacts] generating video file ${sessionId}.mp4..."
# you can add `-v trace` to enable verbose mode logs
# -use_wallclock_as_timestamps 1 - use system time for timestamps in stream, improve VFR (Variable Frame Rate) accuracy.
ffmpeg -f mjpeg -use_wallclock_as_timestamps 1 -i tcp://${BROADCAST_HOST}:${BROADCAST_PORT} -vf scale="-2:720" -r 10 -vcodec libx264 -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov ${FFMPEG_OPTS} -y /tmp/${sessionId}.mp4 &
ffmpeg -f mjpeg -use_wallclock_as_timestamps 1 -i tcp://${BROADCAST_HOST}:${BROADCAST_PORT} \
-vf scale="-2:720" -r 10 -vcodec libx264 -crf 35 -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov \
${FFMPEG_OPTS} -preset:v ultrafast -y /tmp/${sessionId}.mp4 &

exit 0

0 comments on commit beacec8

Please sign in to comment.