# Parameters I tested on ffmpeg 3.2 Hypatia. ## Container: MP4 | Parameter | YouTube recommends setting | |---------------------|-------------------------------------------------| | -movflags faststart | moov atom at the front of the file (Fast Start) | ## Video codec: H.264 | Parameter | YouTube recommends setting | |---------------------|----------------------------| | -profile:v high | High Profile | | -bf 2 | 2 consecutive B frames | | -g 30 | Closed GOP. GOP of half the frame rate. | | -coder 1 | CABAC | | -pix_fmt yuv420p | Chroma subsampling: 4:2:0 |