Skip to content

Instantly share code, notes, and snippets.

@mresetar
Created March 24, 2013 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mresetar/5231464 to your computer and use it in GitHub Desktop.
Save mresetar/5231464 to your computer and use it in GitHub Desktop.
Batch convert Olympus PL-1 video files to smaller MPEG4 AAC H264 video with Lame 128KB MP3
@echo off
set ffmpeg_dir=e:\portable\ffmpeg\bin
for /F "delims=" %%I in ('"dir /B | findstr -E -I "P[0-9][0-9]*.*\.avi""') do (
%ffmpeg_dir%\ffmpeg.exe -i %%I -c:v libx264 -preset slow -crf 18 -b:a 128k Converted_%%I
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment