File tree 1 file changed +7
-5
lines changed
Filter options
1 file changed +7
-5
lines changed
Original file line number Diff line number Diff line change 29
29
#
30
30
# - copy the gpff.bash file to the work_dir path
31
31
#
32
+ # - don't forget to install "parallel" if you don't have it already
33
+ #
32
34
# all are ready
33
35
34
36
# our color for just separate the sections.
@@ -222,11 +224,11 @@ function divide_video() {
222
224
# but in the several test I had, this calculation until ~10.0 had a same outcome.
223
225
# we can keep it or ignore it
224
226
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)
230
232
# here we just do some split-copy but I think -copyts is also useful in some cases and it can't hurt
231
233
# so do avoid_negative_ts
232
234
# this is important to note that WE DO NOT COPY/transfer ANY SUBTITLES!!! because I have had problem in some
You can’t perform that action at this time.
0 commit comments