<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//en">

<!--Converted with LaTeX2HTML 2021 (Released January 1, 2021) -->
<HTML lang="en">
<HEAD>
<TITLE>ReframeRT</TITLE>
<META NAME="description" CONTENT="ReframeRT">
<META NAME="keywords" CONTENT="CinelerraGG_Manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
<META NAME="Generator" CONTENT="LaTeX2HTML v2021">

<LINK REL="STYLESHEET" HREF="CinelerraGG_Manual.css">

<LINK REL="next" HREF="Reroute.html">
<LINK REL="previous" HREF="Radial_Blur.html">
<LINK REL="next" HREF="Reroute.html">
</HEAD>

<BODY >

<DIV CLASS="navigation"><!--Navigation Panel-->
<HR>
<A
 HREF="Reroute.html">
<IMG WIDTH="37" HEIGHT="24" ALT="next" SRC="next.png"></A> 
<A
 HREF="Video_Effects_Native.html">
<IMG WIDTH="26" HEIGHT="24" ALT="up" SRC="up.png"></A> 
<A
 HREF="Radial_Blur.html">
<IMG WIDTH="63" HEIGHT="24" ALT="previous" SRC="prev.png"></A> 
<A ID="tex2html3659"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALT="contents" SRC="contents.png"></A> 
<A ID="tex2html3661"
  HREF="Index.html">
<IMG WIDTH="43" HEIGHT="24" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A
 HREF="Reroute.html">Reroute</A>
<B> Up:</B> <A
 HREF="Video_Effects_Native.html">Video Effects  </A>
<B> Previous:</B> <A
 HREF="Radial_Blur.html">Radial Blur</A>
 &nbsp; <B>  <A ID="tex2html3660"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A ID="tex2html3662"
  HREF="Index.html">Index</A></B> 
<BR><HR></DIV>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A ID="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL CLASS="ChildLinks">
<LI><A ID="tex2html3663"
  HREF="ReframeRT.html#SECTION001210651000000000000000">Stretch</A>
<LI><A ID="tex2html3664"
  HREF="ReframeRT.html#SECTION001210652000000000000000">Downsample</A>
<LI><A ID="tex2html3665"
  HREF="ReframeRT.html#SECTION001210653000000000000000">Other important points</A>
</UL>
<!--End of Table of Child-Links-->
<HR>

<H2><A ID="SECTION001210650000000000000000"></A><A ID="sub:reframert"></A><A NAME="13258"></A>
<BR>
ReframeRT
</H2>
<P>
<SMALL CLASS="SMALL">ReframeRT changes the number of frames in a sequence of video
directly from the timeline. The faster method for getting the same
results as this plugin is to use the <SPAN  CLASS="textit">speed curve</SPAN> which was
a later addition. But if you need very precise results,
<SPAN  CLASS="textit">ReframeRT</SPAN> is most useful. There are two ways to do this,
which can be selected from the checkboxes in the configuration
GUI. The first <SPAN  CLASS="textit">Stretch</SPAN> mode changes the number of frames in
the sequence, and therefore its length, but not the framerate. The
<SPAN  CLASS="textit">Downsample</SPAN> mode instead keeps the length of the movie by
varying the framerate.  It is important to understand that the
plugin works by varying the frames, the possible change of
<SPAN  CLASS="textit">fps</SPAN> is only a side effect of the creation of new frames due
to interpolation. The interpolation algorithm is simply the slope of a linear curve. This plugin is keyframable and the <SPAN  CLASS="textit">Interpolate</SPAN> option works between keyframes. A simpler and more handy version is the <SPAN  CLASS="textit">Speed PerCent</SPAN> plugin.
</SMALL>
<P>

<H3><A ID="SECTION001210651000000000000000"></A><A ID="ssub:stretch"></A><A NAME="13268"></A>
<BR>
Stretch
</H3>
<P>
<SMALL CLASS="SMALL">Stretch mode multiplies the current frame number of its output by the <SPAN  CLASS="textit">scale factor</SPAN> to arrive at the frame to read from its input. The scaling factor is not entered directly but using a number of <SPAN  CLASS="textit">input</SPAN> frames to be divided by the number of <SPAN  CLASS="textit">output</SPAN> frames.
</SMALL>
<P>
<SMALL CLASS="SMALL">
<BR>
<BR> <SPAN  CLASS="texttt">Scale factor (SF) = Input frames / Output frames</SPAN>
</SMALL>
<P>
<P><!-- MATH
 \begin{displaymath}
\frac{1}{8} \Rightarrow scale\, factor = 0.125 \qquad (slow\, motion)
\end{displaymath}
 -->
</P>
<DIV ALIGN="CENTER" CLASS="mathdisplay">
<IMG
 STYLE="vertical-align:-29.5px"
 SRC="img40.gif"
 ALT="$\displaystyle {\frac{{1}}{{8}}}$">⇒<I>scale</I>&nbsp;<I>factor</I> = 0.125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<I>slow</I>&nbsp;<I>motion</I>)
</DIV><P></P>
<P>
<SMALL CLASS="SMALL">For slow motion we leave 1 for the frames of the input and we increase the number of frames of the output (for example putting 8 for the output we have slow motion <SPAN CLASS="MATH">8×</SPAN>, with <!-- MATH
 $SF=\frac{1}{8}=0.125$
 -->
<SPAN CLASS="MATH"><I>SF</I> = <IMG
 STYLE="vertical-align:-21px"
 SRC="img22.gif"
 ALT="${\frac{{1}}{{8}}}$"> = 0.125</SPAN>). For fast motion we leave 1 for the output and we increase the number for the input (for example 8 to have <SPAN CLASS="MATH">8×</SPAN>, with <!-- MATH
 $SF=\frac{8}{1}=8$
 -->
<SPAN CLASS="MATH"><I>SF</I> = <IMG
 STYLE="vertical-align:-21px"
 SRC="img41.gif"
 ALT="${\frac{{8}}{{1}}}$"> = 8</SPAN>). Another possibility is to put the frame rate of the media (e.g 120 fps) in the input and the project frame rate in the output (e.g 30 fps) or the opposite.
</SMALL>
<P>
<SMALL CLASS="SMALL">The stretch mode has the effect of changing the length of output video by the inverse of the scale factor. If the scale factor is greater than <SPAN CLASS="MATH">1</SPAN>, the output will end before the end of the sequence on the timeline. If it is less than <SPAN CLASS="MATH">1</SPAN>, the output will end after the end of the sequence on the timeline. The ReframeRT effect must be lengthened to the necessary length to accommodate the scale factor. Change the length of the effect by clicking on the endpoint of the effect and dragging.
</SMALL>
<P>
<SMALL CLASS="SMALL">Although stretch mode changes the number of the frames read from its
input, it does not change the framerate of the input. Effects before
ReframeRT assume the same frame rate as ReframeRT.  In stretch
mode to create a fast play effect enter a value greater than <SPAN CLASS="MATH">1</SPAN> to
get accelerated playback.  For a slow motion effect, use ReframeRT
in stretch mode with a value less than <SPAN CLASS="MATH">1</SPAN>.
</SMALL>
<P>
<SMALL CLASS="SMALL"><SPAN  CLASS="textit">Example:</SPAN> you have a clip that you want to put in slow motion. The clip starts at <!-- MATH
 $33.792\, seconds$
 -->
<SPAN CLASS="MATH">33.792&nbsp;<I>seconds</I></SPAN> and ends at <SPAN CLASS="MATH">39.765</SPAN>. The clip is <!-- MATH
 $5.973\, seconds$
 -->
<SPAN CLASS="MATH">5.973&nbsp;<I>seconds</I></SPAN> long. You want to play it at <!-- MATH
 $\frac{4}{10}^{ths}$
 -->
<SPAN CLASS="MATH"><IMG
 STYLE="vertical-align:-21px"
 SRC="img42.gif"
 ALT="${\frac{{4}}{{10}}}$"><SUP>ths</SUP></SPAN> normal speed. You divide the clip length by the playback speed (<!-- MATH
 $5.973\div0.4$
 -->
<SPAN CLASS="MATH">5.973÷0.4</SPAN>) to get a final clip length of <!-- MATH
 $14.9325\,seconds$
 -->
<SPAN CLASS="MATH">14.9325&nbsp;<I>seconds</I></SPAN>. You create an in point at the start of your clip: <!-- MATH
 $33.792\,seconds$
 -->
<SPAN CLASS="MATH">33.792&nbsp;<I>seconds</I></SPAN>. You put an out point <!-- MATH
 $14.9325\,seconds$
 -->
<SPAN CLASS="MATH">14.9325&nbsp;<I>seconds</I></SPAN> later, at <!-- MATH
 $48.7245\,seconds$
 -->
<SPAN CLASS="MATH">48.7245&nbsp;<I>seconds</I></SPAN> (<!-- MATH
 $33.792 + 14.9325$
 -->
<SPAN CLASS="MATH">33.792 + 14.9325</SPAN>). You attach a <SPAN  CLASS="texttt">ReframeRT</SPAN> effect, set it to <SPAN CLASS="MATH">0.4</SPAN> and stretch. You change the out point at <SPAN CLASS="MATH">48.7245</SPAN> to an in point. You start your next clip after the slow motion effect at the <SPAN CLASS="MATH">48.7245</SPAN> out point. You can do this without making any calculations by first applying the effect and then lengthening or shortening the bar to where the stretched movie ends.
</SMALL>
<P>
<SMALL CLASS="SMALL">Now in the timeline we have the affected part of the plugin where we see the slow/fast effect, and the continuation of the timeline from where the plugin ends. We then have to select the interval on which the plugin acts and render it or transform it into a nested clip or nested asset. In this way we can replace or overlap it with the part of the timeline that originally included all of the part we wanted to slow down/speed up. See also the <SPAN  CLASS="textit">Reframe</SPAN> render effect for direct rendering.
</SMALL>
<P>

<H3><A ID="SECTION001210652000000000000000"></A><A ID="ssub:downsample"></A><A NAME="13288"></A>
<BR>
Downsample
</H3>
<P>
<SMALL CLASS="SMALL">Downsample mode does not change the length of the output sequence. It multiplies the frame rate of the output by the scale factor to arrive at a frame rate to read the input. This has the effect of replicating the input frames so that they only change at the scaled frame rate when sent to the output. It does not change the length of the sequence. If the scale factor is <SPAN CLASS="MATH">0.5</SPAN> and the output frame rate is <SPAN CLASS="MATH">30&nbsp;<I>fps</I></SPAN>, only <SPAN CLASS="MATH">15</SPAN> frames will be shown per second and the input will be read at <SPAN CLASS="MATH">15&nbsp;<I>fps</I></SPAN>. Downsample is only useful for scalefactors below <SPAN CLASS="MATH">1</SPAN>, hence the name downsample.
</SMALL>
<P>
<SMALL CLASS="SMALL">Downsample mode changes the frame rate of the input as well as the number of the frame to read, so effects before ReframeRT see the <!-- MATH
 $frame rate \times scale factor$
 -->
<SPAN CLASS="MATH"><I>framerate</I>×<I>scalefactor</I></SPAN> as their frame rate. If the scale factor is <SPAN CLASS="MATH">2</SPAN> and the output frame rate is <SPAN CLASS="MATH">30</SPAN>, the input frame rate will be <SPAN CLASS="MATH">60</SPAN> and the input frame number will by doubled. This will not normally do anything, but some input effects may behave differently at the higher frame rate.
</SMALL>
<P>

<H3><A ID="SECTION001210653000000000000000"></A><A ID="ssub:other_important_points"></A>
<BR>
Other important points
</H3>
<P>

<UL>
<LI>ReframeRT uses the fps indicated in <SPAN  CLASS="texttt">Settings <!-- MATH
 $\rightarrow$
 -->
<SPAN CLASS="MATH">→</SPAN> Format <!-- MATH
 $\rightarrow$
 -->
<SPAN CLASS="MATH">→</SPAN> fps</SPAN> project and not the <SPAN  CLASS="texttt">fps</SPAN> of the assets.
</LI>
<LI>It can be associated with Nested Clips.
</LI>
<LI>As an alternative to ReframeRT you can use the <SPAN  CLASS="textit">speed curve</SPAN>, or change the framerate in <SPAN  CLASS="texttt">Resources <!-- MATH
 $\rightarrow$
 -->
<SPAN CLASS="MATH">→</SPAN> info</SPAN> and in the <SPAN  CLASS="texttt">Project</SPAN>; or using <SPAN  CLASS="textit">Reframe</SPAN> render effect, or using <SPAN  CLASS="textit">Speed PerCent</SPAN> plugin.
</LI>
<LI>It is keyframmable.
</LI>
<LI>ResampleRT with the same settings is used to act on audio tracks.
</LI>
</UL>
<P>

<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A
 HREF="Reroute.html">
<IMG WIDTH="37" HEIGHT="24" ALT="next" SRC="next.png"></A> 
<A
 HREF="Video_Effects_Native.html">
<IMG WIDTH="26" HEIGHT="24" ALT="up" SRC="up.png"></A> 
<A
 HREF="Radial_Blur.html">
<IMG WIDTH="63" HEIGHT="24" ALT="previous" SRC="prev.png"></A> 
<A ID="tex2html3659"
  HREF="Contents.html">
<IMG WIDTH="65" HEIGHT="24" ALT="contents" SRC="contents.png"></A> 
<A ID="tex2html3661"
  HREF="Index.html">
<IMG WIDTH="43" HEIGHT="24" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A
 HREF="Reroute.html">Reroute</A>
<B> Up:</B> <A
 HREF="Video_Effects_Native.html">Video Effects  </A>
<B> Previous:</B> <A
 HREF="Radial_Blur.html">Radial Blur</A>
 &nbsp; <B>  <A ID="tex2html3660"
  HREF="Contents.html">Contents</A></B> 
 &nbsp; <B>  <A ID="tex2html3662"
  HREF="Index.html">Index</A></B> 
<HR></DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<I>The CINELERRA-GG Community, 2021<BR><A HREF="https://www.cinelerra-gg.org">https://www.cinelerra-gg.org</A></I>
</ADDRESS>
</BODY>
</HTML>
