update ffmpeg-cut-start
This commit is contained in:
parent
699f151800
commit
a8a1582430
4
mybashrc
4
mybashrc
|
@ -689,7 +689,9 @@ ffmpeg_start_time() {
|
||||||
if [ "$#" = "0" ]; then
|
if [ "$#" = "0" ]; then
|
||||||
echo "ffmpeg-cut-start <start-time> <input> <duration(optional)>"
|
echo "ffmpeg-cut-start <start-time> <input> <duration(optional)>"
|
||||||
echo ""
|
echo ""
|
||||||
echo "example : ffmpeg-cut-start 00:34 file.mp4 300"
|
echo "Example : ffmpeg-cut-start 00:34 file.mp4 300"
|
||||||
|
echo ""
|
||||||
|
echo "----------------------------------------------------------"
|
||||||
else
|
else
|
||||||
if [ -n "$3" ]; then
|
if [ -n "$3" ]; then
|
||||||
bash -c "ffmpeg -ss '$1' -t '$3' -y -i '$2' -c copy -movflags +faststart '${2%.mp4}-output.mp4';"
|
bash -c "ffmpeg -ss '$1' -t '$3' -y -i '$2' -c copy -movflags +faststart '${2%.mp4}-output.mp4';"
|
||||||
|
|
Loading…
Reference in New Issue