This article shows you how to download and install ffmpeg, as well as examples of video encoding commands using ffmpeg.
Videos in e-learning materials should be properly compressed
When using video material as e-learning material, you can save your server storage by reducing the quality of the video to an appropriate level. In the case of our learningBOX, the video is re-encoded to a screen size of 640*360 and 30 frames per second (specifications as of November 27, 2017). Therefore, uploading videos with higher quality than this will only consume extra storage and will not provide any quality benefits.
Shooting data is quite heavy
On the other hand, as of 2017, when shooting video with a smartphone, digital video camera, or digital camera, it is common to choose high-definition, full high-definition, or 4k quality. Uploading these high quality videos as they are will consume more storage than necessary and limit the time per video to a short amount of time.
Use FFmpeg to encode efficiently
The compression of the video isFFmpegis useful. It works in various environments such as Windows, Mac, and Linux in open source software. unlike the general software of Windows, GUI can not be used, but by using the command can be converted to the optimal image quality.
You can download FFmpeg at the following URL.
setup(In the case of Window10)
When you download FFmpeg, it will be saved in ZIP format. When you open this zip file, you will see folders such as bin, doc, presets, etc. Please open the bin folder. ffmpeg.exe in the bin folder is the encoding software, so please move this file to the "folder with execution path ", I checked it in Windows 10 and it had a path to C:\ Windows, so I moved it to this directory.
When you move a file, the following dialog will appear, so please use administrator privileges to move the file. If you do not have administrator privileges, place ffmpeg.exe in a directory where the logged-in user has access rights, such as the Document directory. (If you place it in a directory that does not have an execution path, you will need to specify the path to ffmepg.exe when executing the command.
Check if setup is complete
If the encoded source file is movie.mp4, the following command will execute the encoding and output the encoded file as movie.encoded.mp4.
ffmpeg -i movie.mp4 -vcodec libx264 -vf scale=640:360 -crf 26 -r 30 -y -ac 1 movie.encoded.mp4
It did not include live action and audio, so it was compressed to a fairly low volume.