Skip to content

Update Playing Videos page for Godot 4.5 #10972

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions tutorials/animation/playing_videos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,8 @@ To ensure your videos decode smoothly on varied hardware:
Playback limitations
--------------------

There are several limitations with the current implementation of video playback in Godot:
There are some limitations with the current implementation of video playback in Godot:

- Changing playback speed is not supported. VideoStreamPlayer also won't follow
:ref:`Engine.time_scale<class_Engine_property_time_scale>`.
- Streaming a video from a URL is not supported.
- Only mono and stereo audio output is supported. Videos with 4, 5.1 and 7.1
audio channels are supported but down-mixed to stereo.
Expand Down Expand Up @@ -182,8 +180,9 @@ you should use a lossless or uncompressed format as an intermediate format to
maximize the quality of the output Ogg Theora video, but this can require a lot
of disk space.

`FFmpeg <https://ffmpeg.org/>`__ (CLI) is a popular open source tool
for this purpose. FFmpeg has a steep learning curve, but it's powerful tool.
`Shutter Encoder <https://www.shutterencoder.com/>`__ (GUI) and `FFmpeg
<https://ffmpeg.org/>`__ (CLI) are popular open source tools for this purpose.
FFmpeg has a steep learning curve, but it's a powerful tool.

Here are example FFmpeg commands to convert an MP4 video to Ogg Theora. Since
FFmpeg supports a lot of input formats, you should be able to use the commands
Expand All @@ -202,10 +201,9 @@ below with almost any input video format (AVI, MOV, WebM, …).

.. warning::

All FFmpeg releases before Feb 20th, 2025 could produce bad video streams
due to a couple of bugs. It's highly recommended to use one of the latest
static daily builds, or build FFmpeg from their master branch where they're
already fixed.
Current official FFmpeg releases have some bugs in their Ogg/Theora
multiplexer. It's highly recommended to use one of the latest static daily
builds, or build from their master branch where they are already fixed.

Balancing quality and file size
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -231,10 +229,9 @@ variable bitrates.

The **GOP (Group of Pictures) size** (``-g:v``) is the max interval between
keyframes. Increasing this value can improve compression with almost no impact
on quality. The valid range goes from ``0`` to ``2,147,483,648``, although
compression benefits will fade away and even be reversed as the GOP size
increases. The default size (``12``) is too low for most types of content, it's
therefore recommended to test higher GOP sizes before reducing video quality.
on quality. The default size (``12``) is too low for most types of content,
it's therefore recommended using higher GOP values before reducing video
quality. Compression benefits will fade away as the GOP size increases though.
Values between ``64`` and ``512`` usually give the best compression.

.. note::
Expand Down
Loading