Article 5HK5V Compressing mp4

Compressing mp4

by
mfoley
from LinuxQuestions.org on (#5HK5V)
I recorded a 7 minute video on Windows 10 (WIN-ALT-R) and it ended up being 592MB! On Slackware 14.2, ffmpeg version 3.2.4, I used the following command to reduce the frame rate successively from 10931 kb/s to 1000k, with no apparent loss in viewability. That helped a lot. The file size is now 109M, but still pretty big for 7 minutes.
Code:ffmpeg -i input.mp4 -b:v 1000k out.mp4How can I do better? I basically monkey-typed the above command from the Internet with zero understanding of ffmpeg. I tried the following based on another Internet suggestion:
Code:ffmpeg -i input.mp4 -vcodec libx265 -crf 20 out.mp4
Unknown encoder 'libx265'Thinking this version of ffmpeg was too old I tried the Slackware-Current version 4.4:
Code:ffmpeg -i input.mp4 -vcodec libx265 -crf 20 out.mp4
ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directoryI then tried the SBo version on Slackware Current, but the build failed:
Code:SBo Slackware Current: ERROR: libopenjpeg not foundI'd like to try some more things, but I'm just guessing. I have a working ffmpeg 3.2.4, but can't do the different encoder (supposedly creates a small file) because the libx265 encoder isn't part of that version.

I also tried downloading and building ffmpeg version N-102438-gf7987ce966 (?) from the https://ffmpeg.org website and running:
Code:$ ffmpeg -i input.mp4 -vcodec libx265 -crf 20 out.mp4
ffmpeg version N-102438-gf7987ce966 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 5.5.0 (GCC)
configuration:
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 0.100 / 59. 0.100
libavformat 59. 0.101 / 59. 0.101
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.101 / 8. 0.101
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
Unrecognized option 'crf'.
Error splitting the argument list: Option not foundNo man pages are installed with this version, but I checked their online docs and there is no -cfr, so I tried "-vsync 1". That time I got the previous "Unknown encoder 'libx265" error.

Ideas?latest?d=yIl2AUoC8zA latest?i=Mo4iJQ8SrDs:0UICz1QgLss:F7zBnMy latest?i=Mo4iJQ8SrDs:0UICz1QgLss:V_sGLiP latest?d=qj6IDK7rITs latest?i=Mo4iJQ8SrDs:0UICz1QgLss:gIN9vFwMo4iJQ8SrDs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments