X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=video.rst;h=4f1ebcab8bb6f04905fdb88b2025e74efb0871db;hb=901d57e9a589ffa1d02200932ab661217c335750;hp=3865e65c7aa56c1074484ec7e85f5ee095af2070;hpb=9b29196ebd05944a4b78d9761ccc22354398b193;p=nageru-docs diff --git a/video.rst b/video.rst index 3865e65..4f1ebca 100644 --- a/video.rst +++ b/video.rst @@ -9,10 +9,14 @@ flexible and can be used also for other things. Before reading trying to use video inputs, you should read and understand how themes work in general (see :doc:`theme`). Video inputs are available from -Nageru 1.6.0 onwards. There is currently no support for audio from video inputs; -all videos are silent. (This may change in the future.) If a file contains -multiple video streams, like different angles or resolutions, only the first -will be used. +Nageru 1.6.0 onwards, and from Nageru 1.7.2, you can get audio from video inputs +like any other input. (Be advised, though, that making a general video player +that can maintain A/V sync on all kinds of video files is a hard problem, +so there may still be bugs in this support.) + +If a file contains multiple video streams, like different +angles or resolutions, only the first will be used. Similarly, only the first +audio stream is used, and it's always converted to 48 kHz stereo. Basic video inputs @@ -92,6 +96,15 @@ negative nor exactly zero. You can set a rate to e.g. 1e-6 if you want to in practice stop the video; once you change it back to normal speed, the next frame will resume playing. +Finally, if you want to forcibly abort the playing of a video, +even one that is blocking on I/O, you can use (since Nageru 1.7.2):: + + video:disconnect() + +This is particularly useful when dealing with network streams, as FFmpeg does not +always properly detect if the connection has been lost. See :ref:`menus` +for a way to expose such functionality to the operator. + Integration with CasparCG -------------------------