Footage from old camcorders, DVDs of TV shows and digitized VHS tapes is often interlaced. On a computer screen that shows as thin horizontal stripes along anything that moves.
ffmpeg -i tape.avi -vf yadif -c:v libx264 -crf 20 -c:a aac tape.mp4
yadif (“yet another deinterlacing filter”) rebuilds full frames from the two half-frames of each interlaced frame. With the default settings you get one output frame per input frame, so a 25 fps PAL video stays 25 fps.
For smoother motion, yadif=1 makes one frame per field, which doubles the rate to 50 fps. Sports and fast camera moves look a lot better that way, and the file grows a bit.
Don’t run it on everything. Progressive video, which is nearly all modern phone and camera footage, gets slightly softer from yadif for no reason. To check a file, run ffmpeg -i tape.avi -vf idet -frames:v 500 -f null - and read the “Multi frame detection” line at the end (ffmpeg may print one full of zeros first; skip that one). If most frames are counted as TFF or BFF, it’s interlaced; if most are progressive, leave it alone. There are better but slower deinterlacers too, like bwdif, which I’d try when yadif leaves artifacts.
Further reading: FFmpeg filters documentation