Guide IndexQuick Links
Ever wanted to get your favorite video to play back on an old computer the way 240p Politics does it? With a free command line program called FFmpeg, you can convert a video for playback on a 486, all without having to fetch some obscure 90's software!
Obtain the Necessary Materials
First, of course, you'll need to download FFmpeg through a package repository, or something from this list of builds compiled for Windows.
Then, you'll need a source video that you wish to encode for old computers to play back. It'll be easiest if the video is already at a small 4:3 resolution like 320x240, but if it isn't, FFmpeg has several filters you can use to downscale the video.
Plenty of old operating systems like Windows 95 will come with support for Cinepak AVI playback out of the box, but if you're using something like Windows 3.1, you'll first need to install Microsoft Video for Windows.
To make running FFmpeg easier in the Windows command prompt, you should append to the PATH environment variable with a pathname leading to the FFmpeg executables. That way, you won't have to type the full path to the program every time you want to use it anywhere else.
Since FFmpeg is a command line program, you'll need to open up a terminal or command prompt in order to use it. To convert any video with sound straight to a Cinepak AVI with this program, you'd type something like this:
ffmpeg -i mcdonals.mp4 -c:v cinepak -c:a pcm_u8 mcdonals.avi
From left to right, the parameters given are as follows:
Keep in mind that this command assumes the source video is already in a 320x240 resolution. Also, FFmpeg's Cinepak encoder is SLOOOOOOW! I figure nobody cares so much to maintain support for it so as to make it work much faster, but it is an open source program, so... if you can do that, that would do wonders for everyone here.
I always stick to pcm_u8 for the audio codec, which is basically raw audio with 8-bit precision. Not only is it very easy on CPUs due to its non-complex nature, it's also one of the only audio codecs readily supported on old video players. You could probably use pcm_u16 or pcm_s16 as well, but those are sure to just add more bulk to your video, as these AVIs simply can't match the space efficiency of modern codecs like H.264.
Downsizing a Video
You may prefer to downsize your video in your new favorite video editor Olive, as such a program like that will allow you to see exactly where you can "crop" a widescreen video to 4:3, positioning it exactly on the area where most of the video contents can be seen and downscaling it in one clean run. It also lets you more easily vary the position of a clip at different times; that is, in your timeline, you'd split one clip into multiple parts, one for the opening credits, another for the bulk of the video, and yet another for the end credits, all with different positions independent of each other.
Regardless, if you only want to downsize a video without going through the trouble of using a video editor, FFmpeg has two filters useful for the job. In between -c:v cinepak and -c:a pcm_u8, you can add another parameter:
As it would imply, this scales the output video down to 320 pixels wide by 240 pixels high. Of course, your source video would still have to be 4:3 for this to look right, otherwise the video's going to be squished as if it went through a trash compactor. If your source video is in an aspect ratio like 16:9, you could keep the widescreen ratio with a resolution like 428x240; my installation of Windows for Workgroups 3.11 certainly doesn't complain, but it's not gonna cleanly fit any resolutions most old video cards use.
Instead of using the scale filter right away, you should first run FFmpeg to create a 4:3 cropped version of your video. Using the crop filter in place of the scale filter, run a command like this:
ffmpeg -i mcdonals.mp4 -vf crop="960:720" mcdonals_crop.mp4
This will crop a 720p video into a 4:3 aspect ratio from the center. If the crop's starting position needs to be something else, you can add two addition parameters to the filter specifying the starting X and Y positions. -vf crop="960:720:0:0" crops the video starting at the upper left corner.
Check your cropped video to see if it looks satisfactory. If you need to experiment with cropping, use FFplay to run the source video through the crop filter without encoding anything. You can type something like this at the command line:
ffplay -vf crop=960:720:0:0 mcdonals.mp4
Once you have the right position you want, apply that to FFmpeg.
Here are some resolutions you can use to crop popular widescreen formats down to 4:3:
There are better explanations of FFmpeg filters out there; I'm just here to brief you on the ones you'll need to know to create the perfect Cinepak AVI.
If your cropped output looks good, you can then downscale that to another video in 240p; this will be the one to encode with Cinepak.
Reducing the Sample Rate
One way many people reduced the size of their AVIs was by drastically lowering the sample rate of the audio to 8kHz or 11kHz. In between -c:a pcm_u8 and mcdonals.avi, add a new parameter -ar 11025 to reduce the audio sample rate to 11kHz.
There is a chance your source video may have a sample rate of 48kHz. If this is the case, that sample rate should not be used, as most sound cards made before 1998 did not support hardware 48kHz mixing. 44kHz will ensure greatly reduced CPU overhead.
Some valid sample rates are:
You can also add -ac 1 next to the -ar parameter to use mono audio in the output video, further cutting down on its size.
If all goes well, you should be able to see your video on your old computer in 240p goodness! By the way, here's a little fun fact... 60FPS videos work in Windows 3.1 as well.
329 unique views here since April 15, 2021