Skip to content

add from/to, fix $speed, rm $temp#36

Open
jgreely wants to merge 1 commit into
jclem:masterfrom
jgreely:from-to
Open

add from/to, fix $speed, rm $temp#36
jgreely wants to merge 1 commit into
jclem:masterfrom
jgreely:from-to

Conversation

@jgreely
Copy link
Copy Markdown

@jgreely jgreely commented Oct 8, 2016

bug: the logic for parsing $speed was backwards.
bug: temp file not removed on exit

enhancement: added -f and -t options to extract short clips from a long video

bug: the logic for parsing $speed was backwards.
bug: temp file not removed on exit

enhancement: added -f and -t options to extract short clips from a long video
Comment thread gifify.sh
speed=1
fi

if [ ! -z "$to" ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to add the to= and from= vars, otherwise you'll get:

/usr/local/bin/gifify: line 104: to: unbound variable
/usr/local/bin/gifify: line 104: temp: unbound variable

Comment thread gifify.sh
speed=1
fi

if [ ! -z "$to" ]; then
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See @STRML's comment

Comment thread gifify.sh
echo ' p SCALE: Rescale the output, e.g. 320:240'
echo ' x: Remove the original file and resulting .gif once the script is complete'
echo ' f from: The start time of the clip, in seconds'
echo ' t to: The end time of the clip, in seconds'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be formatted as f FROM and t TO to indicate flags vs values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants