Skip to content

Rotate Single video / Entire directory of videos with FFMPEG

License

Notifications You must be signed in to change notification settings

numandev1/rotate-video

Repository files navigation

alt text

Rotate Single video / Entire directory of videos with FFMPEG

Would you like to support me?

Prerequisite

install ffmpeg cli first

Platform Command
Macbook brew install ffmpeg
Ubuntu sudo apt-get install ffmpeg

Installation

using npx

npx rotate-video --source=source_path --destination=destination_path --extension=MP4 --angel=270

using npm

npm i -g rotate-video
rotate-video --source=source_path --destination=destination_dir_path --extension=MP4 --angel=270

# or you can write blow command

rv --source=source_path --destination=destination_path --extension=MP4 --angel=270

Example

For Multiple Videos below command will Rotate an entire directory of videos

rotate-video --source=/Users/apple/sourceVideoDir --destination=/Users/apple/destinationVideoDir --extension=MP4 --angel=270

For Single Video below command will Rotate an videos

rotate-video --source=/Users/apple/sourceVideo --destination=/Users/apple/destinationVideoDir --extension=MP4 --angel=270

Contributing

If you'd like to contribute something, please check out our contributing guide!

Contributors ✨

All Contributors

Thanks goes to these wonderful people (emoji key):


Numan

💻

This project follows the all-contributors specification. Contributions of any kind welcome!