From: Steinar H. Gunderson Date: Sat, 20 Jul 2019 08:16:36 +0000 (+0200) Subject: Update video inputs for 1.9.0. X-Git-Url: https://git.sesse.net/?p=nageru-docs;a=commitdiff_plain;h=cc4c801be4c5a44d3639261a0f16b8b2c2786c14;hp=9394ea1ebbe6a59bbc68d5a4dfadb668eb24c48a Update video inputs for 1.9.0. --- diff --git a/video.rst b/video.rst index 12e32e3..ee2c1b5 100644 --- a/video.rst +++ b/video.rst @@ -44,18 +44,13 @@ or, for a network stream, perhaps:: local video = VideoInput.new("http://localhost/file.nut", Nageru.VIDEO_FORMAT_BGRA) -It can then be added to any chain like this:: +It can then be display on an input like usual:: - local input = chain:add_video_input(video, false) + input:display(video) -The second parameter specifies no deinterlacing. Note that interlaced video -is currently not supported, not even with deinterlacing, so this parameter -must always be false. - -You can use the same video object to create many different video inputs:: - - local input1 = chain1:add_video_input(video, false) - local input2 = chain2:add_video_input(video, false) +Note that interlaced video is currently not supported, not even with deinterlacing. +(Before Nageru 1.9.0, video inputs were distinct from live inputs, and had to +be created differently, but this is no longer the case.) Videos run in the correct frame rate and on their own timer (generally the system clock in the computer), and loop when they get to the end or whenever an