Skip to content

Commit

Permalink
remove the force option
Browse files Browse the repository at this point in the history
since it mostly makes invalid files. Use 'ffmpeg -i FILE -map 0 -c copy WHATEVER_I_DONT_REALLY_CARE.mov' is you want to recreate this.
  • Loading branch information
dericed committed Dec 7, 2023
1 parent 9e469a3 commit fda4778
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tools/dvpackager
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ Options:
will be written. The following flags adjust the way dvpackager will split the
output.
-f (forces dvpackager to ignore changes in significant technical
characteristics of the dv stream when splitting the output)
-s (split the output file at recording start markers)
-d (split the output file at non-consecutive recording timestamps)
-t (split the output file at non-consecutive timecode values)
Expand Down Expand Up @@ -151,11 +149,7 @@ _get_ranges(){
done
shift "$((OPTIND-1))"
FRAME_MATCH="d:dvrescue/d:media/d:frames"
if [[ "${FORCE_FRAMES}" = "Y" ]] ; then
FRAME_MATCH="${FRAME_MATCH}[1]"
RANGE_MATCH="d:frame[1]"
RELATIVE_FRAMES="../../d:frames[last()]"
elif [[ -n "${1}" ]] ; then
if [[ -n "${1}" ]] ; then
RANGE_MATCH="${1}"
RELATIVE_FRAMES="parent::d:frames"
else
Expand Down Expand Up @@ -666,7 +660,7 @@ CONDENSE_OPTS=(-s)
OPTIND=1
while getopts ":fsdto:e:l:L:mSZnN:vzuhF:M:D:X:x:V:C:34a:T:" opt ; do
case "${opt}" in
f) FORCE_FRAMES="Y" ;;
f) FORCE_FRAMES="Y" ;; # this option has been removed
s) REC_START_OPT="1" ; MATCH_FRAMES+="d:frame[@rec_start]|" ;;
d) RDT_NC_OPT="1" ; MATCH_FRAMES+="d:frame[@rdt_nc]|" ;;
t) TC_NC_OPT="1" ; MATCH_FRAMES+="d:frame[@tc_nc]|" ;;
Expand Down

0 comments on commit fda4778

Please sign in to comment.