Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53b7540

Browse filesBrowse files
fix and chore: copilot mistake
if you see any problem, go back to *before* this messed up commit: 3adaaef
1 parent 3adaaef commit 53b7540
Copy full SHA for 53b7540

File tree

1 file changed

+7
-5
lines changed
Filter options

1 file changed

+7
-5
lines changed

‎gpff.bash

Copy file name to clipboardExpand all lines: gpff.bash
+7-5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#
3030
# - copy the gpff.bash file to the work_dir path
3131
#
32+
# - don't forget to install "parallel" if you don't have it already
33+
#
3234
# all are ready
3335

3436
# our color for just separate the sections.
@@ -222,11 +224,11 @@ function divide_video() {
222224
# but in the several test I had, this calculation until ~10.0 had a same outcome.
223225
# we can keep it or ignore it
224226
local frame_rate=$($ffprobe_binary -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate $input_file)
225-
if [[ ! "$frame_rate" =~ ^[0-9]+([.][0-9]+)?(/[0-9]+([.][0-9]+)?)?$ ]]; then
226-
echo "Error: Invalid frame rate: $frame_rate"
227-
exit 1
228-
fi
229-
+ local segment_time_delta=$(echo "scale=6; 1/(2*($frame_rate))" | bc)
227+
if [[ ! "$frame_rate" =~ ^[0-9]+([.][0-9]+)?(/[0-9]+([.][0-9]+)?)?$ ]]; then
228+
echo "Error: Invalid frame rate: $frame_rate"
229+
exit 1
230+
fi
231+
local segment_time_delta=$(echo "scale=6; 1/(2*($frame_rate))" | bc)
230232
# here we just do some split-copy but I think -copyts is also useful in some cases and it can't hurt
231233
# so do avoid_negative_ts
232234
# this is important to note that WE DO NOT COPY/transfer ANY SUBTITLES!!! because I have had problem in some

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.