
The best format for Youtube videos is Codec. The Codec is the part of the software that deals with the encoding and decoding of the information that forms the audio or video stream. Newer codecs also take care of compression and decompression and therefore, while encoding and decoding the signal, they use mathematical algorithms that allow you to save storage space at the expense of quality.

Compression
When playing video files, compression is done using mathematical functions that reduce the number of frames per second or lower the resolution of the pixels that make up the image. In audio files, compression is done by removing frequencies that are not completely perceptible to the human ear and the number of bits that make up the sound information.

Container
The best option for the extension is mp4. The frame rate must be the same as what you recorded and edited at. The most popular container formats are MKV or AVI.

Video formats
Youtube uses the 1080p HD streaming format and MPEG-2 compatible with the DVD format and saved with an .MPG extension. If you cannot send the video in MPEG-2 format, please choose MPEG-4 format.
MPEG-2
Audio codec: MPEG Layer II and Dolby AC-3
Audio bit rate: 128Kbps or higher
MPEG-4
Video codec: H.264
Audio codec: AAC
Audio bit rate: 128Kbps or higher
Minimum audiovisual duration
The minimum duration is 33 seconds, excluding black and still images on the video channel, as well as silence and background noise on the audio channel.
Frame rates
videos should be at their native frame rate without resampling. For film originals, a 24 fps or 25 fps “progressive” master produces the best results. Typically frame rates are set to 24, 25, or 30 frames per second.
Resampling techniques are not recommended as they allow images to shake and often result in poor video quality. Examples: upsampling and transfer as “telecine pulldown”.
Dimensions
Videos must use native aspect ratios and uploaded videos must never include black “letterbox” and “pillarbox” bars. Youtube player uses frames that allow videos to be displayed correctly, without cropped or stretched images
Video resolution
For videos intended for sale and rental, you must provide a minimum resolution of 1920 x 1080 with a 16: 9 aspect ratio.
For free or ad content, YouTube does not require a minimum resolution, but recommends a resolution of at least 1280 x 720 for videos with a 16: 9 aspect ratio and a resolution of at least 640 x 480 for videos with an aspect ratio. of 4: 3.
If the videos are of lower quality, they are not visible to the public on YouTube and are used as a reference for Content ID. These videos are typically “quarter” resolution, ie 320 x 240. However, videos must be longer than 200 lines to produce effective references.
Bitrate
Bit rates depend on the codec. It is the number of bits per unit of time (attention! We are talking about bits and not bytes), generally measured in KiloBits per second. For the same format, the more information per second, the higher the quality or resolution of the movie or audio. Videos should be optimized for frame rate, aspect ratio, and resolution rather than bit rate.



