Video Codecs: Difference between revisions

From MXWendler Wiki
Jump to navigation Jump to search
(Update to h264)
 
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''How-tos'''
=== General ===
*[[Optimizing h.264 for 4K: reconverting clips with AVANTI GUI (Freeware)]]
 
 
== General ==


Video is increasingly used in professional event planning as a medium for information and design. This is due in part to improved processing, and ever cheaper and more powerful output devices such as video projectors and LED matrices.
Video is increasingly used in professional event planning as a medium for information and design. This is due in part to improved processing, and ever cheaper and more powerful output devices such as video projectors and LED matrices.
Line 14: Line 10:
The rule of thumb: more compression = more demand on the CPU = lower bandwidth
The rule of thumb: more compression = more demand on the CPU = lower bandwidth


=== MXWendler Recommendations ===


== MXWendler Recommendations ==
The Codec we recommend to use with MXWendler is H.264:
 
*30 or 60 FPS
the Codec we recommend to use with MXWendler is:
*External Coding
* H.264
*FHD(1080p), WUXGA(1200p), UHD(2160p) are the most used resolutions. Please keep in mind that the resolution of the video you are going to render should be divisible by 16, 8 or at least 4 to avoid problems.
**30 or 60 FPS
*Bitrate: there are multiple tutorials and online tools to calculate the perfect bitrate for different video resolutions. To give some examples for the proper bitrates for different resolutions:
**External Coding
::HD1080p (1920x1080), 24/25/30 fps → 8 Mbit/s
**FHD(1080p), WUXGA(1200p), UHD(2160p) are the most used resolutions. Please keep in mind that the resolution of the video you are going to render should be divisible per 16, 8 or at least 4 to avoid problems.
::HD1080p (1920x1080), 48/50/60 fps → 12Mbit/s
**Bitrate:
::4K2160p (3840x2160), 24/25/30 fps → 35–45 Mbit/s
{| class="wikitable"
::4K2160p (3840x2160), 48/50/60 fps → 53–68 Mbit/s
|-
!class="hintergrundfarbe6" colspan="1"|
!class="hintergrundfarbe6" colspan="2"|Macroblocks pro
!class="hintergrundfarbe6" colspan="1"|Examples for
!class="hintergrundfarbe6" colspan="4"|Videobitrate (VCL) for Profiles
|-
!class="hintergrundfarbe6"|Level
!class="hintergrundfarbe6"|Frame
!class="hintergrundfarbe6"|Seconds
!class="hintergrundfarbe6"|Resolution<br />these Levels
!class="hintergrundfarbe6"|Baseline<br />Extended<br />Main
!class="hintergrundfarbe6"|High
|-
! 4.2
| align="right"| 8&thinsp;704
| align="right"| 522&thinsp;240
| align="right"| 1920&thinsp;×&thinsp;1080&thinsp;/&thinsp;64<br />2048&thinsp;×&thinsp;1080&thinsp;/&thinsp;60
| align="right"| 50 Mbit/s
| align="right"| 62,5 Mbit/s
|-
! 5.2
| align="right"| 36&thinsp;864
| align="right"| 2&thinsp;073&thinsp;600
| align="right"| 3840&thinsp;×&thinsp;2160&thinsp;/&thinsp;66,8<br />4096&thinsp;×&thinsp;2160&thinsp;/&thinsp;60
| align="right"| 240 Mbit/s
| align="right"| 300 Mbit/s
|}
 
 
For smooth video playback, you can use eg.


* Up to FHD (1920x1080)
For smooth video playback, you can use e.g.
** PhotoJPEG, 75% and ALAC Audio
:Up to FHD (1920x1080)
:*PhotoJPEG, 75% and ALAC Audio
:FHD size and beyond
:*H264 Video and ALAC Audio
:Looping footage
:*H264 Video with each frame set as a keyframe (GOP=1)


* FHD Size and beyond
=== Framerates ===
** H264 Video and ALAC Audio


* Looping footage
Whenever framerates in different involved components do not match each other, video playback becomes jerky and starts stuttering. The framerates in question are:
** H264 Video with each frame set as a keyframe (GOP=1)
*Video framerate
 
*MXWendler framerate
== Framerates ==
*Monitor framerate
 
Whenever framerates do not match, video playback becomes jerky and stuttering. The framerates we are talking about here are
 
:* Video framerate
:* MXWendler framerate
:* Monitor framerate


Today the most video output devices like monitors and video beamers have a 60Hz refresh rate following the tradition of the NTSC standard. Europeans are used to 50Hz PAL framerate, so most of the video material is produced in 25 FPS ( frames per second ). This produces the following situation:
Today the most video output devices like monitors and video beamers have a 60Hz refresh rate following the tradition of the NTSC standard. Europeans are used to 50Hz PAL framerate, so most of the video material is produced in 25 FPS ( frames per second ). This produces the following situation:
*25FPS Video
*25FPS MXWendler
*60Hz Monitor
Since the monitor and MXWendler does not match, the monitor has to show every 5th image twice, which will look stuttering. A better solution would be to :
*switch the monitor to 75Hz framerate,
:*25FPS Video
:*25FPS MXWendler
:*75Hz Monitor
*Or switch video production to 30Hz framerate,
:*30/60FPS Video
:*30/60FPS MXWendler
:*60Hz Monitor


:* 25FPS Video
'''How-tos'''
:* 25FPS MXWendler
*[[Optimizing h.264 for 4K: reconverting clips with AVANTI GUI (Freeware)]]
:* 60Hz Monitor
 
Since monitor and MXWendler does not match, the monitor has to show every 5th image twice, which will look stuttering. A better solution would be
 
* Switch monitor to 75Hz framerate
** 25FPS Video
** 25FPS MXWendler
** 75Hz Monitor
 
* Switch video production to 30Hz framerate
** 30/60FPS Video
** 30/60FPS MXWendler
** 60Hz Monitor

Latest revision as of 15:10, 5 February 2020

General

Video is increasingly used in professional event planning as a medium for information and design. This is due in part to improved processing, and ever cheaper and more powerful output devices such as video projectors and LED matrices.

A so-called video stream goes through a number of stages before it is viewed on an output device. Firstly, the data must be read from the hard disk or SSD, then copied into memory, and then unpacked by the CPU, before an unpacked stream is sent to the graphics card. Naturally, each of these stages must have the corresponding capacity to be able to play back the video stream at the highest possible quality.

This is where the so-called codecs come in. Some codecs (e.g. MPEG) involve less compression than other codecs (e.g. H264), but require more hard disk space and a faster hard drive for playback. Conversely, MPEG requires relatively little CPU computing time in comparison to highly compressed formats.

The rule of thumb: more compression = more demand on the CPU = lower bandwidth

MXWendler Recommendations

The Codec we recommend to use with MXWendler is H.264:

  • 30 or 60 FPS
  • External Coding
  • FHD(1080p), WUXGA(1200p), UHD(2160p) are the most used resolutions. Please keep in mind that the resolution of the video you are going to render should be divisible by 16, 8 or at least 4 to avoid problems.
  • Bitrate: there are multiple tutorials and online tools to calculate the perfect bitrate for different video resolutions. To give some examples for the proper bitrates for different resolutions:
HD1080p (1920x1080), 24/25/30 fps → 8 Mbit/s
HD1080p (1920x1080), 48/50/60 fps → 12Mbit/s
4K2160p (3840x2160), 24/25/30 fps → 35–45 Mbit/s
4K2160p (3840x2160), 48/50/60 fps → 53–68 Mbit/s

For smooth video playback, you can use e.g.

Up to FHD (1920x1080)
  • PhotoJPEG, 75% and ALAC Audio
FHD size and beyond
  • H264 Video and ALAC Audio
Looping footage
  • H264 Video with each frame set as a keyframe (GOP=1)

Framerates

Whenever framerates in different involved components do not match each other, video playback becomes jerky and starts stuttering. The framerates in question are:

  • Video framerate
  • MXWendler framerate
  • Monitor framerate

Today the most video output devices like monitors and video beamers have a 60Hz refresh rate following the tradition of the NTSC standard. Europeans are used to 50Hz PAL framerate, so most of the video material is produced in 25 FPS ( frames per second ). This produces the following situation:

  • 25FPS Video
  • 25FPS MXWendler
  • 60Hz Monitor

Since the monitor and MXWendler does not match, the monitor has to show every 5th image twice, which will look stuttering. A better solution would be to :

  • switch the monitor to 75Hz framerate,
  • 25FPS Video
  • 25FPS MXWendler
  • 75Hz Monitor
  • Or switch video production to 30Hz framerate,
  • 30/60FPS Video
  • 30/60FPS MXWendler
  • 60Hz Monitor

How-tos