Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an encoding-settings.json #5

Open
gabrielstuff opened this issue Jan 15, 2018 · 1 comment
Open

add an encoding-settings.json #5

gabrielstuff opened this issue Jan 15, 2018 · 1 comment

Comments

@gabrielstuff
Copy link
Member

The encoding-settings.json should provide a way for the user to understand how media should be encoded.

An example below, heavily inspired by Google Youtube recommendations:

Recommended upload encoding settings

Below are recommended upload encoding settings for your videos.

Container: MP4

  • No Edit Lists (or the video might not get processed correctly)
  • moov atom at the front of the file (Fast Start)

Audio codec: AAC-LC

  • Channels: Stereo or Stereo + 5.1
  • Sample rate 96khz or 48khz

Video codec: H.264

  • Progressive scan (no interlacing)
  • High Profile
  • 2 consecutive B frames
  • Closed GOP. GOP of half the frame rate.
  • CABAC Variable bitrate.
  • No bitrate limit required, though we offer recommended bit rates below for reference
  • Chroma subsampling: 4:2:0

Frame rate

  • Content should be encoded and uploaded in the same frame rate it was recorded.
  • Common frame rates include: 24, 25, 30, 48, 50, 60 frames per second (other frame rates are also acceptable).
  • Interlaced content should be deinterlaced before uploading. For example, 1080i60 content should be deinterlaced to 1080p30, going from 60 interlaced fields per second to 30 progressive frames per second.

Bitrate

The bitrates below are recommendations for uploads. Audio playback bitrate is not related to video resolution.
1/ Recommended video bitrates for SDR uploads
To view new 4K uploads in 4K, use a browser or device that supports VP9.

screen shot 2018-01-15 at 11 35 42

2/ Recommended video bitrates for HDR uploads

screen shot 2018-01-15 at 11 35 35

3/ Recommended audio bitrates for uploads

screen shot 2018-01-15 at 11 35 30

Resolution and aspect ratio

We use 16:9 aspect ratio players. If you're uploading a non-16:9 file, it will be processed and displayed with either black bars on the left and right (pillar boxes) or black bars at the top and bottom (letterboxes) to make a 16:9 ratio in the player.

@gabrielstuff
Copy link
Member Author

A little introduction text could allow showing directly a preferred format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant