We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd53290 + f3256f2 commit a55616bCopy full SHA for a55616b
library/extract-clip.sh
@@ -9,9 +9,8 @@ fi
9
arguments=("$@")
10
11
video_file_name="${arguments[0]}"
12
-extension="${video_file_name##*.}"
13
14
startTime="${arguments[1]}"
15
endTime="${arguments[2]}"
16
17
-ffmpeg -loglevel quiet -i "$video_file_name" -ss "$startTime" -to "$endTime" -c:v copy -c:a copy assets/clip."${extension}"
+ffmpeg -y -loglevel quiet -i "$video_file_name" -ss "$startTime" -to "$endTime" -c:v libx264 -pix_fmt yuv420p -c:a copy assets/clip.mp4
0 commit comments