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
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 6 of 6
			
		- 
	
- 
	Something like: 
 
 That took about 7.5 minutes on my i5 2600K.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: 
 Put that batch file in the same folder as a bunch of MP4 files and double click on it. All the files will be reencoded to 1100 kbps.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.
 
 or with aac audio:Code:ffmpeg -i "input.ts" -vcodec copy -acodec copy "output.mp4" 
 
 Remuxing will not change the quality of the video or audio.Code:ffmpeg -i "input.ts" -vcodec copy -acodec copy -absf aac_adtstoasc "output.mp4" 
 
 If you need to reencode the video:
 
 The combination of preset slwo and crf 18 is pretty transparent at normal playback speed. But if you find it's not good enough use a lower CRF value -- that will give you higher quality and a bigger file. Around crf 12 you can hardly see a difference even with A/B switching still frames and using a magnifier. Conversely, if you find the result is too big and can live with lesser quality you can use a higher crf value.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, 13: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, 19:59
- 
  How to reduce mkv file sizeBy onlygk in forum Video ConversionReplies: 12Last Post: 25th Jul 2016, 22:36
- 
  How to properly reduce MP4 file size without much loss in quality?By evile1690 in forum Video ConversionReplies: 11Last Post: 13th Mar 2016, 17:06
- 
  Bit Rate minimums sure reduce file size but still keeps qualityBy johnharlin in forum Video ConversionReplies: 2Last Post: 18th Jul 2015, 09:34


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote
