Hello guys, now I'm facing another situation, I have this file about 2.5Gb
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
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)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
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
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
Something like:
Code: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:
Code: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:
ultrafast
superfast
veryfast
faster
fast
medium
slow
slower
veryslow
placebo
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 ! -
Something isn't working right. Switching to the slow preset probably won't make much of a difference. Can you make one of your sources available so I can test it?
If the codecs are suitable for the MP4 container you can use ffmpeg to simply remux.
Code:ffmpeg -i "input.ts" -vcodec copy -acodec copy "output.mp4"
Code:ffmpeg -i "input.ts" -vcodec copy -acodec copy -absf aac_adtstoasc "output.mp4"
If you need to reencode the video:
Code:ffmpeg -y -i input.mkv -vcodec libx264 -preset slow -crf 18 -acodec copy output.mp4
Similar Threads
-
Convert to HEVC .h265 to preserve quality and reduce file size.
By GiovannyLira in forum MacReplies: 8Last Post: 13th Dec 2017, 12:43 -
Why does x265 preset fast get the smallest file size by const. quality?
By Adsmt in forum Video ConversionReplies: 75Last Post: 16th Nov 2016, 18:59 -
How to reduce mkv file size
By onlygk in forum Video ConversionReplies: 12Last Post: 25th Jul 2016, 21:36 -
How to properly reduce MP4 file size without much loss in quality?
By evile1690 in forum Video ConversionReplies: 11Last Post: 13th Mar 2016, 16:06 -
Bit Rate minimums sure reduce file size but still keeps quality
By johnharlin in forum Video ConversionReplies: 2Last Post: 18th Jul 2015, 08:34