The file you upload should be the highest-quality source you can manage, not a final version you've already shrunk. Don't change the resolution or frame rate arbitrarily, and lower CRF only as far as the file size allows.
Reducing re-encoding loss isn't hard. It comes down to damaging the video as little as possible before it gets re-encoded. Let's split this into three parts. This lesson covers the first two, quality and resolution/frame rate; the next lesson covers color metadata.
If you export your footage or edit straight to an upload file, give the export a generous bitrate. A high-quality preset in your editing software, or an intermediate codec used in broadcast and post-production, are candidates, but files can get very large, and whether the platform accepts that format has to be checked in its official help pages. If you build the file on the command line, the direction is to set CRF lower (= higher quality) than you would for normal delivery.
ffmpeg -i edit-master.mov \
-c:v libx264 -preset slow -crf 16 -pix_fmt yuv420p \
-c:a aac -b:a 192k \
-movflags +faststart upload.mp4The default is to leave the resolution and frame rate as shot. There are two reasons. First, once you reduce them, you can't go back. Second, when the platform lowers the resolution for viewing it does its own processing, so if you shrink first, the platform processes it again on top. Frame rate needs particular care. Forcing a change between values like 24, 25, 30, and 60 can duplicate or drop frames and make motion stutter (frame rate review, the fps filter).
Shrinking the resolution before uploading has the advantage of a faster upload, but your shrinking step and the platform's re-encode overlap. Especially for video that viewers might watch on a big screen, the resolution you choose for the uploaded file can become the ceiling on the best quality viewers can get. Check the platform's official help pages for which quality tiers are created from which resolution.
The quality-based rate control mode of x264 and x265. The lower the number, the higher the quality and the larger the file.
Video whose frame intervals are not constant. It shows up in screen recordings and some smartphone footage.
Which is the correct default direction when building a source to upload to a platform?
When you need to fit a file within a specific size because of an upload size limit, which tool on this site can you use?