Encode MP4 script (FFMPEG)
chromecast_hd_2m.cmd
SET FFMPEG="C:\dvdz\ffmpeg\ffmpeg.exe"
@ECHO OFF
FOR %%a IN ("*.mkv") DO (
title chrome "%%a"
%FFMPEG% -i "%%a" -c:v libx264 -profile:v high -level 4 -crf 18 -maxrate 2M -bufsize 16M -pix_fmt yuv420p -vf "scale=iw*sar:ih, scale='if(gt(iw,ih),min(1920,iw),-1)':'if(gt(iw,ih),-1,min(1080,ih))'" -x264opts bframes=3:cabac=1 -movflags faststart -c:a copy -y "%%~na".chrome.mkv
)
pause
https://pastebin.com/8Xf55Ci4
jueves, 27 de diciembre de 2018
lunes, 22 de octubre de 2018
mp4 rotate (flip)
mp4_rotate.cmd
https://pastebin.com/9q8zMt9K
SET FFMPEG="C:\dvdz\ffmpeg\ffmpeg.exe" @ECHO OFF FOR %%a IN ("*.mp4") DO ( title rotate "%%a" %FFMPEG% -i "%%a" -vf "vflip,hflip" "%%~na".rot.mp4 ) pause
https://pastebin.com/9q8zMt9K
lunes, 23 de julio de 2018
mp4_extract_subtitle.cmd
Como extraer subtitulos .srt en archivos .MP4 desde linea de comandos
mp4_extract_subtitle.cmd
for %%x in (*.mp4) do c:\dvdz\ffmpeg\ffmpeg.exe -hide_banner -i "%%x" -map 0:s:0 "%%~nx.srt"
mp4_extract_subtitle.cmd
for %%x in (*.mp4) do c:\dvdz\ffmpeg\ffmpeg.exe -hide_banner -i "%%x" -map 0:s:0 "%%~nx.srt"
Suscribirse a:
Entradas (Atom)