Skip to content

Commit

Permalink
Patch extract clip: set pix_format and dont make extension dynamic (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
correa-brian authored Jun 21, 2023
2 parents dd53290 + f3256f2 commit a55616b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/extract-clip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ fi
arguments=("$@")

video_file_name="${arguments[0]}"
extension="${video_file_name##*.}"

startTime="${arguments[1]}"
endTime="${arguments[2]}"

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 comments on commit a55616b

Please sign in to comment.