Skip to content

Bash script. Cut video to parts. Join parts into one video and replace existing. For each action there is question if you want to execute it.

License

Notifications You must be signed in to change notification settings

michal-repo/script-ffmpeg-cut-video-and-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ffmpegcut.sh

Cut video to parts. Join parts into one video and replace existing. For each action there is question if you want to execute it.

  • usage: ./ffmpegcut.sh my-video.mp4

For parts you need to provide start and end in seconds format. You can use math calculations:

  • eg. 1:25:47 (h:mm:ss) provide 60*60+25*60+47, this will be calculated into 5147 seconds

Original script by rianoc @ https://superuser.com/a/719610

ffmpegcut_concat.sh

Modified version of first script. Define parts, then cut and merge in one run of ffmpeg. Faster if you want to cut multiple parts and merge them in one out file.

  • usage: ./ffmpegcut_concat.sh my-video.mp4

For parts you need to provide start and end in seconds format. You can use math calculations:

  • eg. 1:25:47 (h:mm:ss) provide 60*60+25*60+47, this will be calculated into 5147 seconds

About

Bash script. Cut video to parts. Join parts into one video and replace existing. For each action there is question if you want to execute it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages