I followed this source (FFmpeg: Batch convert all audio (mp3) in folder to video (mp4) with album artwork) and it works, but it down scales my album cover from 1425 x 1406
dimension to 400 x 396
.
My Batch code is
echo off
for %%a in ("*.mp3") do (
ffmpeg -i "%%a" -an -vcodec copy "C:\mp4\%%~na.jpg"
"C:\ffmpeg\bin\ffmpeg" -loop 1 -i "C:\mp4\%%~na.jpg" -i "%%a" -c:v libx264 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" -preset veryslow -tune stillimage -crf 18 -pix_fmt yuv420p -c:a aac -shortest -strict experimental -b:a 192k -shortest "C:\mp4\%%~na.mp4" )
pause
Problem is I don't know how to fix "down scaling" thing, and I am sorry for stupid questions but I need to know it. I watched other errors or tried to understand codes from others but I am not doing it well.