File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -346,8 +346,7 @@ VIDEO_RAW_OUTPUT=clip_raw.mkv
346346VIDEO_OUTPUT=$_arg_output
347347# Target an appropiate bitrate of filesize of 8MB for the video length
348348TARGET_MB=$_arg_target_mb
349- # Subtract a few megabyte to give some leeway for uploader limits
350- TARGET_BYTES=$(( ($TARGET_MB - 5 ) * 1024 * 1024 ))
349+ TARGET_BYTES=$(( ($TARGET_MB ) * 1024 * 1024 ))
351350TARGET_BITRATE=$(( $TARGET_BYTES * 8 / $RECORDING_LENGTH ))
352351TARGET_BITRATE_PLUS_SMEAR=$(( $TARGET_BYTES * 8 / $RECORDING_LENGTH_PLUS_SMEAR ))
353352VNC_PORT=$_arg_vnc
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def make_ffmpeg_clip(
4242 route_date = re .sub (r"^[^|]+\|" , "" , route )
4343
4444 # Target bitrate in bits per second (bps). Try to get close to the target file size.
45- target_bps = (target_mb - 5 ) * 8 * 1024 * 1024 // length_seconds
45+ target_bps = (target_mb ) * 8 * 1024 * 1024 // length_seconds
4646 # Start seconds relative to the start of the concatenated video
4747 start_seconds_relative = start_seconds % 60
4848
You can’t perform that action at this time.
0 commit comments