$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
This comment has been minimized.
This comment has been minimized.
Worked well for me, from ~67MB to ~14MB. Thanks! Edit: Appears to not play in IE. Blast. |
This comment has been minimized.
This comment has been minimized.
Compressed from 14.1 mb to 4.9 mb. But lost sound( how can i fix it? Any options? |
This comment has been minimized.
This comment has been minimized.
@ankurhora This code basically does transcoding, hence if the input video is already compressed, the output video could be larger than the input one. To achieve compression, we can reduce the bit rate. Look at the code here https://gist.github.com/ksharsha/b06d184391290bc3b87fdadadb73c5bc#file-ffmpeg-compress |
This comment has been minimized.
This comment has been minimized.
@BeetLab I faced the same problem. Changing |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
@TryTryAgain It works pretty well, and do it twice can compress more. |
This comment has been minimized.
This comment has been minimized.
It compress from 450 MB to 60 MB! |
This comment has been minimized.
This comment has been minimized.
worked great, from 294 MB to 46.7 MB and still good quallity Thanks! |
This comment has been minimized.
This comment has been minimized.
Worked not expected.. I used 68.5Mb and get 65 MB .. Thanks! |
This comment has been minimized.
This comment has been minimized.
220 MB to 21MB coder moment |
This comment has been minimized.
This comment has been minimized.
163mb to 60mb. This worked |
This comment has been minimized.
This comment has been minimized.
5Gb mov file (from after effects) downgraded to 250 Mb. Perfect! |
This comment has been minimized.
This comment has been minimized.
De 1.06 GB a 229 MB. Genial! |
This comment has been minimized.
This comment has been minimized.
I tried to have the same code but doing the bulk compress but it didn't work anyone can help?'
|
This comment has been minimized.
This comment has been minimized.
try: for %%a in ("*.mp4") do ffmpeg -i "%%a" -vcodec h264 -b:v 700k -acodec mp3 "FB%%a~na.mp4" |
This comment has been minimized.
This comment has been minimized.
Worked as expected
Before 32.8 MBAfter 6.8 MB |
This comment has been minimized.
This comment has been minimized.
4,40 GB to 3,84 GB... I expected better. |
This comment has been minimized.
This comment has been minimized.
Woah, 300mb to 8mb |
This comment has been minimized.
This comment has been minimized.
I have 33MB and it command do a file more big... |
This comment has been minimized.
This comment has been minimized.
3.2gb to 320mb. And quality difference is very hard to see! |
This comment has been minimized.
This comment has been minimized.
ffmpeg -i input.mp4 -vcodec libx265 -acodec aac -crf 23 output.mp4 Did the trick for me. Before 400 mbAfter 150 mb |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Its not work for me, I want reduce an webm video and 616mb to 480mb and very time spended =/ |
This comment has been minimized.
This comment has been minimized.
Here 14,9mb to 2,9mb - |
This comment has been minimized.
This comment has been minimized.
Worked! Thanks a lotused |
This comment has been minimized.
This comment has been minimized.
Worked. Before: 1.6 MB. After: 132 KB. However, it doesn't work on videos with a width or height that is not divisible by 2. Not a big issue though. |
This comment has been minimized.
This comment has been minimized.
Great!! I tried compressing following this thread: https://gist.github.com/ksharsha/b06d184391290bc3b87fdadadb73c5bc ffmpeg -i video.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4 and went from 1.1 GB to 69 MB!!! |
This comment has been minimized.
This comment has been minimized.
So, first all thanks to the developers and coder. I've been using FFMPEG with the Sick Beard MP4 automator and it's working beautifully! Now as I'm watching it work, I wish I could shrink the file size down when it auto converts. So, I stumbled upon this thread. i am a total noob to all of this so forgive my ignorance, but where do I add this script to make FFMPEG compress as the automator is working? I'm running Sonarr, Radarr, SabNZBd, and of course the Sick Beard MP4 Automator scripts. Thanks in advance and again sorry for my ignorance if this is a totally stupid question! |
This comment has been minimized.
This comment has been minimized.
Does it work? |
This comment has been minimized.
This comment has been minimized.
27 GB -> 9.56 GB |
This comment has been minimized.
This comment has been minimized.
with mp3 as audio codec 832MB -> 53.1MB |
This comment has been minimized.
This comment has been minimized.
Great |
This comment has been minimized.
This comment has been minimized.
I guess this works great for large size videos. I got my video from 750 mb to 57 mb. Thanks. |
This comment has been minimized.
This comment has been minimized.
This is legit! Thanks! |
This comment has been minimized.
This comment has been minimized.
pls how do i impliment this |
This comment has been minimized.
This comment has been minimized.
Try this: or this if you want to decrease the resolution and bitrate, it should be much more smaller than above: of course, you can decrease the bitrate of audio stream either: If your device does not support h265, just change the |
This comment has been minimized.
This comment has been minimized.
This worked really well for me, made my videos much smaller and the quality was still comparable. However, I'm curious if you could expand on how the "h264" line is compressing? Is it using a default CRF level? I found that instead compressing using "libx264 -crf 10" produced a MUCH larger video. |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing this trick! Worked for me as well. I had one video file successfully compressed to 253.9MB from 950.1MB. updated versionBut using 'ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4' it reduced to 105MB which is much better. |
This comment has been minimized.
This comment has been minimized.
top |
This comment has been minimized.
This comment has been minimized.
711M input.MP4 |
This comment has been minimized.
This comment has been minimized.
19 MB input |
This comment has been minimized.
This comment has been minimized.
Have you found any solution? |
This comment has been minimized.
This comment has been minimized.
280MB to 80MB (71% less) thanks |
This comment has been minimized.
This comment has been minimized.
Can you show your command? |
This comment has been minimized.
This comment has been minimized.
I used This : ffmpeg -i Input.mov -c:v libx265 -preset veryfast -tag:v hvc1 -vf format=yuv420p -c:a copy output.mp4 ----- and went from 301 mb To 30.9 mb ---- with a littel bit of quality loss. but it works for Me if I want to get my video to Facebook. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
712 mb gopro video of office down to 86 mb! almost 1/10th the size! |
This comment has been minimized.
This comment has been minimized.
not working for me i am saving the file from ipcam and need to reduce the size original size is 13 mb |
This comment has been minimized.
This comment has been minimized.
how was that good! using that, decrease 86mb to 64mb. thank you all. |
This comment has been minimized.
This comment has been minimized.
How to get to know about the size of the file when we will apply this compression (before compression)? |
This comment has been minimized.
This comment has been minimized.
Try Using Handbrake
…On Mon, 30 Nov 2020 at 17:40, Mahmood Hussain Bhat ***@***.***> wrote:
*@Mahmood-Hussain* commented on this gist.
------------------------------
How to get to know about the size of the file when we will apply this
compression (before compression)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/277d136f68b028e22bed#gistcomment-3545035>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP7T2XPWHMDPMTEFXXALRV3SSPDGBANCNFSM4HJDPZHQ>
.
--
God bless
|
This comment has been minimized.
This comment has been minimized.
Video-Format: MP4 Before: 6.02 GB |
This comment has been minimized.
It increased the size instead of descreasing ?