Hello guys, now I'm facing another situation, I have this file about 2.5Gb
major_brand : isom
minor_version : 512
encoder : Lavf56.36.100
Duration: 00:54:37.67, start: 0.000000, bitrate: 5725 kb/s
Stream #0:0(und): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p, 1666x940 [SAR 1:1 DAR 833:470], 5592 kb/s, 18.67 fps, 18.67 tbr, 18666 tbn, 20 tbc (default)
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
handler_name : SoundHandler
I need to filesize max of 650mb
I need to do it fast because I have to convert about 45 files
I need quality 480p or 720p
Any way to do it?
Thanks in advance
+ Reply to Thread
Results 1 to 6 of 6
ffmpeg -y -i source.mkv -vf scale=w=-4:h=480 -codec:v libx264 -preset veryfast -b 1100k -acodec copy output.mkv
You can convert all the files in a folder with a batch file:
for %%F in (*.mp4) do ( ffmpeg -y -i "%%F" -vf scale=w=-4:h=480 -codec:v libx264 -preset veryfast -b 1100k -acodec copy "%%~dpnF.new.mp4" )
veryfast doesn't provide the best quality. Try a slower preset if you can bare the longer encoding times. Other presets for x264:
For example, the slow preset will get you better image quality but will take about 3 times longer.
Jagabo, thank you for your help, the quality of this convertion is very poor, video show like slow motion and the camera transition is very notorius, so, I have to check with the slow preset. I have another question, maybe is not in this trend, I have some files in .ts I need to convert to .mp4 and I don't care the filesize, just need the same quality, I dont know if ffmpeg works on this kind of files or if I have to try another software, I have ubuntu server and only know about ffmpeg and mkvmatroska.
Thank you four your help and time !
ffmpeg -i "input.ts" -vcodec copy -acodec copy "output.mp4"
ffmpeg -i "input.ts" -vcodec copy -acodec copy -absf aac_adtstoasc "output.mp4"
If you need to reencode the video:
ffmpeg -y -i input.mkv -vcodec libx264 -preset slow -crf 18 -acodec copy output.mp4