Skip to content

Instantly share code, notes, and snippets.

@typomedia
Forked from typomedia/ffmpeg.h264.cmd
Last active August 29, 2015 13:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typomedia/10577138 to your computer and use it in GitHub Desktop.
Save typomedia/10577138 to your computer and use it in GitHub Desktop.
Libav batch converter
@ECHO OFF
ECHO Copyright 2014 Typomedia Foundation. All rights reserved.
ECHO Released under GPL version 3.
ECHO Libav Transcoding Script 1.0beta
PAUSE
SET input="\\SERVER\Movies"
SET ftype=*.rip.mkv
SET suffix="h264.mkv"
REM Loop all files with the specified FTYPE
FOR /R %input% %%A IN (%ftype%) DO avconv -i "%%A" -map 0 -c:v libx264 -preset slow -crf 20 -c:a copy -c:s copy "%%A.%suffix%"
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment