[00:00]
hi everyone welcome back to our Channel
[00:02]
this is Frank from YOLO live in our last
[00:04]
video we discussed three encoding
[00:06]
methods vbr CBR and CQ and we also
[00:10]
touched on the concepts of h264 and
[00:14]
h265 it is well known that yolobox
[00:16]
supports the h264 encoding format
[00:20]
Additionally the ultra model also
[00:22]
supports the h265 encoding format so in
[00:26]
this video we'll dive deeper into the
[00:28]
video encoding formats h264 and
[00:32]
h265 to help you gain a more
[00:34]
comprehensive understanding of the
[00:36]
visual parameters that affect video
[00:38]
compression
[00:42]
quality a video file comprises three
[00:45]
layers container codec and raw data
[00:48]
encoding compresses data to control the
[00:51]
final file size each video consists of
[00:54]
frames size based on their raw data
[00:57]
format usually a color space model
[01:00]
actual video files are smaller due to
[01:02]
compression during encoding dictated by
[01:05]
the codec format which uses specific
[01:08]
compression and decompression algorithms
[01:11]
compatibility with the codec is
[01:12]
essential unsupported formats won't play
[01:15]
on certain players encoding primarily
[01:18]
affects file size through parameters
[01:20]
like bit rate and maximum bit rate often
[01:22]
resulting in lossy compression that
[01:24]
impacts quality resolution and frame
[01:27]
rate adjustments occur during
[01:28]
transcoding which manipulates raw Frame
[01:31]
data by recalculating time stamps and
[01:33]
discarding extra
[01:37]
frames h264 is the most commonly used
[01:41]
video Codec but it is designed to handle
[01:43]
images and cannot process audio data the
[01:46]
compression mechanism of h264 is quite
[01:49]
typical incorporating Concepts like
[01:52]
motion compensation and motion
[01:54]
estimation this allows the codec to
[01:56]
reduce the overall file size by
[01:59]
calculating the current image based on
[02:01]
previous or surrounding images instead
[02:03]
of recording all the data for a highly
[02:06]
similar sequence while understanding the
[02:08]
specific compression algorithms isn't
[02:10]
necessary it's important to be familiar
[02:13]
with certain h264 specific Concepts
[02:16]
iframes P frames and B frames an if
[02:20]
frame or intraframe is a standalone
[02:23]
image frame that can be displayed
[02:24]
independently and contains the most data
[02:27]
a p frame or predicted frame is computed
[02:30]
from the previous iframe or P frame so
[02:32]
its data is incomplete and smaller in
[02:35]
size compared to an iframe most frames
[02:37]
in a video are P frames a b frame or by
[02:41]
predictive frame is calculated based on
[02:43]
both the preceding and succeeding I
[02:45]
frames or P frames making it the most
[02:48]
data efficient and smallest frame GOP or
[02:51]
group of pictures refers to a complete
[02:53]
set of video frames for instance if the
[02:56]
GOP is set to 25 the encoder will ensure
[02:59]
that the first frame of every 25 frames
[03:02]
is an iframe if the frame rate is also
[03:05]
25 FPS then the first frame of each
[03:07]
second will be an
[03:12]
iframe why is it useful to understand
[03:15]
these h264 Concepts in live streaming
[03:18]
these Concepts become more significant
[03:21]
since iframes are independent frames the
[03:23]
playback of B frames and P frames relies
[03:26]
on iframes therefore streaming servers
[03:29]
must Dash iframes to help reduce initial
[03:31]
screen Distortion however localized
[03:34]
distortions may still occur to mitigate
[03:37]
this the GOP setting is crucial
[03:40]
typically the GOP is set to one to two
[03:43]
times the frame rate ensuring an if
[03:45]
frame every 1 to two seconds this setup
[03:48]
means that screen Distortion
[03:49]
theoretically only occurs if streaming
[03:52]
starts within this one to two second
[03:54]
window given that frames are generally
[03:56]
similar within this interval and with
[03:58]
iframe caching even localized
[04:00]
distortions often go unnoticed moreover
[04:03]
for live streaming it is usually
[04:05]
recommended to disable B frames although
[04:08]
B frames have the smallest data size
[04:11]
they depend on subsequent frames for
[04:13]
decoding thus disabling B frames helps
[04:16]
ensure a smoother live streaming
[04:18]
experience the iframe interval and
[04:20]
maximum bframe settings on the YOLO box
[04:23]
are fixed by default if you are not
[04:25]
satisfied with the YOLO Box's parameter
[04:27]
settings and need to insert iframes more
[04:30]
frequently you will need to learn how to
[04:32]
use custom ffmp
[04:38]
output in recent years h265 has steadily
[04:42]
gained popularity compared to h264 files
[04:46]
compressed with h265 under the same
[04:48]
conditions are often smaller for example
[04:51]
if I record a 9-second video on my ultra
[04:54]
both set to 4K 30fps with the same
[04:57]
network the file size is 14 .22 medaris
[05:01]
with h264 en coding however with h265
[05:05]
encoding the file size is only 12.63 M
[05:09]
there's also a unique situation where if
[05:12]
your network bandwidth can only support
[05:14]
lower resolution and FPS settings you
[05:16]
can choose h265 encoding to maintain the
[05:19]
best possible video quality to elaborate
[05:22]
at 4K 30fps the difference in quality
[05:26]
between h264 and h265 May hard to notice
[05:30]
with the naked eye however at 720p or
[05:33]
480p settings the final video quality
[05:37]
difference between the two codecs is
[05:39]
quite significant additionally h265
[05:42]
conserves bandwidth while maintaining
[05:44]
video quality but it requires more
[05:47]
computational power for encoding and
[05:49]
decoding in other words playing h265
[05:53]
videos demands more processing power
[05:55]
than
[05:56]
h264 this is the key difference h26 5
[06:00]
offers a higher compression ratio but at
[06:02]
the expense of increased performance
[06:04]
requirements however a crucial point to
[06:07]
consider is that h265 is not as widely
[06:10]
supported as one might assume some
[06:12]
streaming platforms such as Facebook and
[06:14]
twitch do not support
[06:16]
h265 therefore even if you opt for
[06:19]
h265 it won't be feasible if the client
[06:22]
lacks support this is why h264 remains
[06:25]
more commonly used as it ensures
[06:28]
compatibility across all almost all
[06:30]
platforms furthermore because h265
[06:33]
achieves greater compression software
[06:35]
decoding tends to be slower for some
[06:38]
older computers playing High bit rate
[06:40]
h265 videos can be very choppy support
[06:44]
for h265 in widely used editing software
[06:48]
is still improving therefore if you plan
[06:50]
to import videos from yolobox for
[06:52]
editing on your computer I still
[06:54]
recommend using h264 encoding for now
[06:57]
unless h265 encoding significantly
[07:00]
enhances video quality I personally have
[07:03]
high hopes for the development of
[07:05]
h265 in the future as Premiere and Final
[07:08]
Cuts support for it becomes more
[07:10]
comprehensive and more software and
[07:13]
devices begin to adapt to
[07:15]
h265 this encoding format which balances
[07:18]
high quality with small file sizes will
[07:21]
undoubtedly replace h264 in the visible
[07:24]
future don't forget to like subscribe
[07:26]
and hit the Bell icon to stay updated
[07:29]
with all our latest tech insights also
[07:31]
don't forget to join our Facebook User
[07:33]
Group where lots of our customers share
[07:35]
their user cases if you have any
[07:38]
questions or would like to know more
[07:39]
about YOLO live you can contact us via
[07:41]
email at contact yolo.com if your need
[07:44]
is urgent you can call us at plus 861
[07:47]
3735
[07:49]
812586 if you need to express your needs
[07:52]
through pictures or videos you can also
[07:54]
contact us via WhatsApp the number is
[07:55]
still plus 861 3735 8125
[07:59]
89 see you in the next video