Skip to content

Small bash script for converting multiple video files from one format to another using ffmpeg

License

Notifications You must be signed in to change notification settings

egithinji/VideoConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Video Converter

Small bash script for converting a bunch of video files from one format to another using ffmpeg.

Run

  1. Make sure you have ffmpeg installed.
  2. Put the script in the directory containing your video files.
  3. Make it executable chmod +x converter.sh
  4. Run it with the source file format as first argument and target file format as second argument e.g: ./converter.sh avi mp4

Screenshot

Screenshot

Screenshot

Note

Currently it only recurses one level of directories i.e.

/MyDirectory
           |
           converter.sh //Put the script here
           |
           videofile //All these will be converted
           videofile
           ...
           /Folder1 
               videofile //All these will be converted
               videofile
               ...
           /Folder2 
               videofile //All these will be converted
               videofile
               ...
           /Converted
               //converted files will be put here

Todo

  • Add fast/slow argument for selecting between copying (fast) or re-encoding (slow) options in ffmpeg
  • Add argument for specifying directory to run in
  • Error message if non-supported video formats entered
  • Percentage complete should be on same line
  • Add multiple recursion

About

Small bash script for converting multiple video files from one format to another using ffmpeg

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages