Suggested upload settings

You can upload your video using any format you want, but we suggest following the guidelines above.

Further documentation: FFmpeg commands

Encode a video

ffmpeg -i source -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high -coder 1 -movflags +faststart -filter_complex "[0:v]scale=-1:480[vout];[vout]scale=trunc(iw/2)*2:480[vout]" -map [vout] -bf 2 -crf 25 -an -f mp4 NUL -y
Replace bitrate with kb/s information, perform 1st pass:
ffmpeg -i source -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high -coder 1 -movflags +faststart -filter_complex "[0:v]scale=-1:480[vout];[vout]scale=trunc(iw/2)*2:480[vout]" -map [vout] -map 0:a -bf 2 -b:v bitratek -pass 1 -c:a aac -aac_coder twoloop -b:a 160k -ac 2 -ar 44100 -f mp4 NUL -y
Perform 2nd pass:
ffmpeg -i source -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high -coder 1 -movflags +faststart -filter_complex "[0:v]scale=-1:480[vout];[vout]scale=trunc(iw/2)*2:480" -map [vout] -map 0:a -bf 2 -b:v bitratek -pass 2 -c:a aac -aac_coder twoloop -b:a 160k -ac 2 -ar 44100 -f mp4 output.mp4 -y
You can also make a lossless version of the video so you don't have to apply filters every single time.

Encode sound or music

Please don't upload copyrighted content!
ffmpeg -i source -c:a aac -aac_coder twoloop -b:a 160k -ac 2 -ar 44100 -vn output.mp4