Hello
I have a 2hrs video file of a conference that is currently about 700MB:
If possible, I'd like to cut it in size by half without recompressing the audio stream. I tried this, but it barely works:Code:Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.34.103 Duration: 02:08:37.48, start: 0.000000, bitrate: 810 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x512 [SAR 64:45 DAR 16:9], 674 kb/s, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default) Metadata: handler_name : SoundHandler
Is there a more aggressive solution to get down to eg. 350MB? It's just a conference, so video doesn't matter that much, while audio is important.Code:ffmpeg -i input.mp4 -b:v 100k -r 20 -c:v libx264 -vf scale=640:-1 -pix_fmt yuv420p -c:a copy -threads 2 -crf 20 -f mp4 output.mp4
Thank you.
+ Reply to Thread
Results 1 to 5 of 5
-
Last edited by yetanotherlogin; 25th May 2016 at 17:33.
-
You have both -b:v 100k and -crf 20. They are mutually exclusive rate control methods. Erase the -crf 20.
100kbps should give you about 1/4 the size of the original if it's met, because you had 674kbps video, 129kbps audio in the source - If those were correctly listed by ffmpeg . So you probably want to shoot for higher. -
Prefilter video quite aggressively with https://ffmpeg.org/ffmpeg-filters.html#toc-hqdn3d-1 perhaps you may consider, reducing audio bitrate give you less than 50MB gain (IMHO no sense to go bellow 88 - 96kbps unless lowpass filter around 9 - 10kHz applied which seem to be perfectly fine for conference, you may improve perceived legibility of audio by applying some dynamics compression together with bandpass filter 150Hz - 9kHz ).
Don't change framerate (-r 20 is wrong - it may even reduce video compressibility). You may consider to apply temporal blur troughCode:tblend=all_mode=average
Adjust/set crf to somewhere around 26 - 28.Last edited by pandy; 26th May 2016 at 06:45.
-
medialover: Please remove your signature. Spamming/Advertising is not allowed. See https://forum.videohelp.com/threads/72386-Forum-rules-Acceptable-Use-Policy-(AUP)? . Especially for CRAP like PAVTUBE!!!
edit: banned.Last edited by Baldrick; 26th May 2016 at 08:51.
Similar Threads
-
FFmpeg: How do I split a 100GB MP4 file into several 1GB files?
By zopiro in forum EditingReplies: 9Last Post: 7th Jan 2016, 12:55 -
MPG2Cut2 to FFMPEG MP4 vs FFMPEG MPG2 to MP4 AviDemux
By RedPenguin in forum Video ConversionReplies: 4Last Post: 29th Apr 2015, 12:16 -
FFMPEG: how to get uncompressed audio in a MP4 file?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 15th Feb 2015, 09:37 -
How to Replace The Audio File on MP4 with ffmpeg?
By morsh in forum Newbie / General discussionsReplies: 2Last Post: 29th Sep 2014, 07:46 -
[ffmpeg] Right way to combine PNG + MP3 into an MP4 file?
By yetanotherlogin in forum EditingReplies: 3Last Post: 8th Dec 2013, 04:49