Skip to content

Bitrate

Hossein HassanNejad edited this page Feb 1, 2025 · 1 revision

Bitrate is a measure of how much data is used to represent a certain amount of audio or video per second. It's usually measured in kilobits per second (kbps) for audio and megabits per second (Mbps) for video.

In simple terms, a higher bitrate means better quality because more data is being used to represent the audio or video. However, higher bitrate also means larger file sizes and more bandwidth needed for streaming. For example, a 320 kbps audio file will generally sound better than a 128 kbps file, but it will also take up more space on your device.

Example:

final filePath = 'path/to/my.mp4';
final outputPath = 'path/to/';

NyxConverter.convertTo(filePath, outputPath, audioBitrate: 320, videoBitrate: 5);

Bitrate Recommendations:

Audio Codecs:

  • MP3:
    • Typical range: 128 kbps to 320 kbps
    • Best quality: 192 kbps to 320 kbps
  • MP2:
    • Typical range: 128 kbps to 384 kbps
    • Best quality: 256 kbps to 384 kbps
  • WMA:
    • Typical range: 64 kbps to 192 kbps
    • Best quality: 128 kbps to 192 kbps
  • AAC:
    • Typical range: 96 kbps to 320 kbps
    • Best quality: 192 kbps to 320 kbps

Video Codecs:

  • H.264 (AVC):
    • Standard Definition: 1 Mbps to 3 Mbps
    • High Definition: 5 Mbps to 10 Mbps
    • 4K: 20 Mbps to 50 Mbps
  • H.265 (HEVC):
    • Standard Definition: 0.5 Mbps to 2 Mbps
    • High Definition: 3 Mbps to 5 Mbps
    • 4K: 10 Mbps to 30 Mbps
  • Xvid:
    • Standard Definition: 1 Mbps to 2 Mbps
    • High Definition: 3 Mbps to 5 Mbps
  • VP8:
    • Standard Definition: 1 Mbps to 2 Mbps
    • High Definition: 3 Mbps to 5 Mbps

Notes:

  • Higher bitrates require more processing power and time. Please be careful with large files or high-quality conversions.
  • Ensure the specified bitrate is compatible with the codec and format of the output file.
Clone this wiki locally