-vcodec copy -acodec copy
# -vf filter_graph set video filters # transpose AVOptions: # dir <int> ..FV.... set transpose direction (from 0 to 7) (default 0) # 0 = 90CounterCLockwise and Vertical Flip (default) # 1 = 90Clockwise # 2 = 90CounterClockwise # 3 = 90Clockwise and Vertical Flip -vf transpose=1
-vf scale=1920:-1 -vf scale=-1:1080
# -movflags <flags> E....... MOV muxer flags (default 0) # faststart E....... Run a second pass to put the index (moov atom) at the beginning of the file -movflags +faststart
-profile:v high -level:v 4.0 -profile:v high -level:v 4.1
-pix_fmt yuv420p # for compatibility with outdated media players.
ffmpeg -i "src.mpg" -vcodec h264 -acodec ac3 -movflags +faststart "dst.mkv"
ffmpeg -i "src.mov" -c:v libx264 -c:a ac3 -movflags +faststart "dst.mkv"
ffmpeg -i "src.mp4" -c:v libx264 -c:a ac3 -vf transpose=1,scale=-1:1080 -movflags +faststart "dst.mkv"
ffmpeg -i "src.mp4" -c:v libx264 -c:a ac3 -profile:v high -level:v 4.1 -movflags +faststart "dst.mkv"
for %f in (*.mp4) do ffmpeg -i "%f" -vcodec h264 -acodec ac3 -movflags +faststart "%f.mkv"
ffmpeg -i "%f" -c:v libx264 -c:a ac3 -profile:v high -level:v 4.1 -pix_fmt yuv420p -movflags +faststart "%f.mkv"
C:\Program Files\ffmpeg\ff-prompt.bat
@ECHO OFF REM FF Prompt 1.1 REM Open a command prompt to run ffmpeg/ffplay/ffprobe REM Copyright (C) 2013 Kyle Schwarz TITLE FF Prompt IF NOT EXIST "C:\Program Files\ffmpeg\bin\ffmpeg.exe" ( CLS ECHO "C:\Program Files\ffmpeg\bin\ffmpeg.exe" could not be found. GOTO:error ) CLS SET PATH=C:\Program Files\ffmpeg\bin;%PATH% ffmpeg -version ECHO. ECHO For help run: ffmpeg -h ECHO For formats run: ffmpeg -formats ^| more ECHO For codecs run: ffmpeg -codecs ^| more ECHO. ECHO The bin directory has been added to PATH ECHO. IF NOT "%*" == "" ( CMD /K CD /d "%*" ) ELSE ( CMD ) GOTO:EOF :error ECHO. PAUSE GOTO:EOF