Skip to content

Instantly share code, notes, and snippets.

@Mirochiu
Created December 31, 2019 02:40
Show Gist options
  • Save Mirochiu/a7e960688e0fd8994f8b2470d1d8a460 to your computer and use it in GitHub Desktop.
Save Mirochiu/a7e960688e0fd8994f8b2470d1d8a460 to your computer and use it in GitHub Desktop.
Extract video part of the input media file and rotate it 90 degree
cls
@echo off
set in_file=%1
echo in_file=%in_file%
set out_file=%~dpn1_rotated%~x1
echo out_file=%out_file%
ffmpeg.exe -i %in_file% -metadata:s:v rotate="90" -sn -an -vcodec copy "%out_file%"
rem pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment