update footnote to solve duplicate problem
[goodguy/cin-manual-latex.git] / parts / Real-World.tex
1 \chapter{Editing: real-world usage cases}%
2 \label{cha:editing_real_world_usage}
3
4 This appendix includes descriptions of various real life workflows used by \CGG{} users. There may be links to some video explanations in various languages.
5 You can only follow these links from the online pdf version.
6
7 \section{Workflow with OpenEDL and Nested Clips}%
8 \label{sec:workflow_openedl_nested_clips}
9
10 This is a real world usage case\protect\footnote{credit fary54} that provides an excellent example of how OpenEDL has been a
11 revolution for \CGG{}. Advantages include: editing speed, clarity, ease of finding a specific item,
12 and movement of a subject block via \textit{Nest to media}.
13 The main concept of editing using OpenEDL in this real world case is to
14 reduce a large quantity of videos and shots to a few big clips by using
15 an OpenEDL session for each clip. Using the OpenEDL timeline is similar to
16  using the normal timeline: you can add effects, cut and drag, add or delete
17 tracks, etc.
18
19 For more information on OpenEDL and Nested clips see sections \ref{sec:openedl} and \ref{sub:nested_clips}.
20
21 Scenario setup consists of making one hour video using 3 different cameras:
22
23 \begin{itemize}
24         \item \textit{Footage 1:} A person uses camera 1 to shoot a general view of the subject.
25         \begin{enumerate}
26                 \item[a)] Barcelona (e.g. a jazz group concert)
27                 \item[b)] Lisbon (e.g. Spanish concert)
28         \end{enumerate}
29         \item \textit{Footage 2:} Another person uses camera 2 to film a detail of a specific subject.
30         \begin{enumerate}
31                 \item[a)] Barcelona (e.g. saxophonist or trumpet player)
32                 \item[b)] Lisbon (e.g. guitarist or double bassist)
33         \end{enumerate}
34         \item \textit{Footage 3:} Contains images of the journey between the subjects (action cam on the windshield of a moving car, on the helmet of a biker, on the handlebars of a bicycle, or on a boat).
35 \end{itemize}
36
37 \textit{Note:} Camera 1 and 2 are both filming the same subject so the number of hours for the footage from these two cameras easily reaches 20 hours, but the final movie can only be one hour maximum.  For this case, the final movie consists of all the subjects separated by camera 3 footage.
38
39 \textit{Workflow:} OpenEDL is used throughout the editing process with the timeline reserved as the workspace. Basically, every time you have to work on a clip (consisting of one or more tracks), you use OpenEDL instead of the classic method of bringing each clip to the timeline, before doing the necessary Drag and Drop or Cut and Paste operations between different tracks. When finished with each
40 OpenEDL clip session, save it outside of the OpenEDL layer at the top level of the main timeline.
41
42 See \href{https://youtu.be/0li5DdeQ6_o}{Video 1} (using French locale).
43
44
45 \subsubsection*{Pre-sorting of the footage}
46 \label{ssub:pre_sorting_footage}
47
48         \begin{itemize}
49                 \item Load all the shots from camera 1 and create a single clip; do the same with cameras 2 and 3.
50                 \item Watch each clip and sort the images to keep (via OpenEDL); delete the blurred footage and the images you do not want to keep.
51         \end{itemize}
52
53 \begin{figure}[htpb]
54         \centering
55         \includegraphics[width=0.8\linewidth]{openedl-01.png}
56         \caption{three clips modified with OpenEDL}
57         \label{fig:openedl-01}
58 \end{figure}
59
60 \textit{Camera 1} contains shots of Barcelona and Lisbon concert made by Camera 1.
61
62 \textit{Camera 2} contains shots of Barcelona and Lisbon concert made by Camera 2.
63
64 \textit{Camera 3} contains the images of the journey between the first subject and the second (e.g from Barcelona to Lisbon).
65
66 \subsubsection*{Extraction of the subjects}
67 \label{ssub:extraction_subjects}
68
69 Next extract each common subject from the camera 1 \& 2 footage and create a clip, for example - a place, a city, or a subject. In this case scenario, it is a concert in a specific city.
70 You end up with as many clips as there are subjects (e.g. Barcelona \& Lisbon).
71  See figure ~\ref{fig:openedl-02}.
72
73 \begin{figure}[htpb]
74         \centering
75         \includegraphics[width=0.8\linewidth]{openedl-02.png}
76         \caption{a new clip for each subject: Barcelona and Lisbon}
77         \label{fig:openedl-02}
78 \end{figure}
79
80 Each subject selected contains 2 video tracks and 4 audio tracks. See figure ~\ref{fig:openedl-03} of a Barcelona clip.
81
82 \begin{figure}[htpb]
83         \centering
84         \includegraphics[width=1.0\linewidth]{openedl-03.png}
85         \caption{Barcelona clip: 2 video tracks and 4 audio tracks}
86         \label{fig:openedl-03}
87 \end{figure}
88
89 \subsubsection*{Editing of the subjects}
90 \label{ssub:editing_subjects}
91
92 Then edit each subject via OpenEDL. From the 2 tracks 1 \& 4 (camera 1 \& 2) you create a a single track (+ 2 audio tracks) as seen in figure ~\ref{fig:openedl-04}.
93
94 \begin{figure}[htpb]
95         \centering
96         \includegraphics[width=1.0\linewidth]{openedl-04.png}
97         \caption{Barcelona clip: 2 video tracks to 1 video track}
98         \label{fig:openedl-04}
99 \end{figure}
100
101 \subsubsection*{Add sound effects and video/audio effects}
102 \label{ssub:add_sound_video_effects}
103
104 Next add the sound effects (such as birds or a water fountain) and video / audio effects for each subject; again via OpenEDL.
105
106 \subsubsection*{Compaction}
107 \label{ssub:compaction}
108
109 Each subject is converted to a nested clip by using the \textit{Nest to media} option, making it a group.
110
111 \begin{figure}[htpb]
112         \centering
113         \includegraphics[width=0.8\linewidth]{openedl-05.png}
114         \caption{two new nested clips: Barcelona and Lisbon}
115         \label{fig:openedl-05}
116 \end{figure}
117
118 The subject converted to a nested clip is automatically moved from the Clip folder to the Media folder. See figure ~\ref{fig:openedl-05}.
119
120 See \href{https://youtu.be/kQ7sGq0o44U}{Video 2} (using French locale).
121
122 \subsubsection*{Final assembly}
123 \label{ssub:final_assembly}
124
125 Import each subject (Nested clip) on the main timeline. Converting using Nest to Media makes it easy to move and position each subject. You can move one subject after or before another.
126
127 \begin{figure}[htpb]
128         \centering
129         \includegraphics[width=1.0\linewidth]{openedl-06.png}
130         \caption{Barcelona and Lisbon nested clips on timeline}
131         \label{fig:openedl-06}
132 \end{figure}
133
134 Insert the retained shots coming from \textit{camera 3} between the different subjects.
135
136 \begin{figure}[htpb]
137         \centering
138         \includegraphics[width=1.0\linewidth]{openedl-07.png}
139         \caption{camera 3 footage between Barcelona and Lisbon nested clips}
140         \label{fig:openedl-07}
141 \end{figure}
142
143 See \href{https://youtu.be/9Hz0a-1i3I8}{Video 3} (using French locale).
144
145 Add background music and comments.
146
147 \begin{figure}[htpb]
148         \centering
149         \includegraphics[width=1.0\linewidth]{openedl-08.png}
150         \caption{completion of the work}
151         \label{fig:openedl-08}
152 \end{figure}
153
154 \subsubsection*{More editing}
155 \label{ssub:more_editing}
156
157 At this stage, each subject can still be edited and undergo any modification via OpenEDL (again ... and always)
158
159 \subsubsection*{Render your movie}
160 \label{ssub:render_movie}
161
162 All that remains is mastering the video with a render.
163
164 Ordinarily it it is very difficult to set up such a project but using tools such as OpenEDL and Nested clips makes it quite easy. These tools, in many cases, are essential and become standards for the development of important projects using \CGG{}.
165
166 \paragraph{Note}
167
168 Once converted to nest to media the clips disappear from the clips folder to end up in the media folder. You can always, if you wish to recover it in the clips folder do so via the \textit{EDL to clip} menu. In this case, the name of the clip can change but the reference of the clip can be found in the comment of the clip.
169
170 See \href{https://youtu.be/bfYaBqVbdCo}{Video 4} (using French locale).
171
172 \section{Workflow with multi-cam and external audio}%
173 \label{sec:workflow_multicam_external_audio}
174
175 More on the multi-cam can be found in section \nameref{sec:multicamera_mixer}
176
177 Let's take the case of a professional magician filmed in multicam while performing\protect\footnote{credit Armandux.}. Camera 1 records the magician's face; camera 2 the whole person and camera 3 the detail of the hands. There is also an external audio recorder to record the artist's voice in mono. So we will have three video tracks with their respective embedded audio tracks, plus an external audio track of good quality.
178
179 You can find the files to test the workflow that is described next at the following address:
180 %begin{latexonly}
181 \small{\url{https://cinelerra-gg.org/download/testing/cinelerra-forum.zip}}
182 %end{latexonly}
183 \begin{htmlonly}
184 \url{https://cinelerra-gg.org/download/testing/cinelerra-forum.zip}
185   
186 \end{htmlonly}
187
188 [Media files are licensed under a \href{https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode}{CC 4.0 BY, NC, SA license}.]
189
190 Start \CGG{} to create an empty video track and two audio tracks (default). If you want you can create a new project (using the shortcut "n") with the desired settings or change the default one (\texttt{Settings $\rightarrow$ Format}).
191
192 \begin{enumerate}
193         \item Load multimedia files ("o").
194         \item \texttt{Settings $\rightarrow$ proxy settings}; mark \textit{use scale}, select scale 1/2, and check \textit{Auto proxy/scale loads}.
195         \item Wait until the progress bar at bottom right of the main window finishes to create and load proxy clips in \texttt{Resources $\rightarrow$ proxy}.
196         \item Move to the Resources and Multimedia sources window. Next select the sources, RMB click and \textit{open mixers}. This creates new tracks and loads it. Be sure that the Proxy clips are in use by checking that the word "proxy" is included on the Timeline title bar.
197         \item \texttt{Audio $\rightarrow$ add track} (my master audio track is mono, because there are only voices and no music). Let us suppose this new track is audio 9.
198         \item Drag your master audio track to the new audio track (audio 9).
199         \item Open \texttt{Windows $\rightarrow$ mixers $\rightarrow$ Mixer Viewer}.
200         \item Click in the new mixer to select it (you will see a white box drawn inside that window) and afterwards expand the master audio track (audio 9).
201         \item Click into the expanded track (audio 9) and, while maintaining the new created mixer selected, click on the arrow on the left (\textit{Mixer}) that appears when expanding the track, and click on it to get it pointing upwards. That hooks the new mixer with the audio 9 track (in our example). Next lock this track.
202         \item Select with the In/Out points tool ("[]") an audio fragment in audio 9 and afterwards click on "a" to select all the tracks.
203         \item With all the tracks selected (only the three top ones that are empty are disarmed),\texttt{ Windows $\rightarrow$ mixers $\rightarrow$ align mixers}.
204         \item Select as master track your main audio track (audio 9 in our example). It is important to note the position of this track because you want to move all the other clips to the right to get aligned with the main audio track (9). In short: the selected fragment should be more to the right than the rest of this same fragment on the other clips/tracks. Move this track to the right if you need to. The idea behind this is to allow the other tracks to move to the right in order to get them aligned.
205         \item In the align mixer dialog select first \textit{adjust}. Wait for the program do its work. You can see the progress bar at the bottom right of the main window.
206         \item Check the correctness of the alignment from column \textit{R}; the values of the various tracks must be close to 1. Then click on the \textit{apply} button. The tracks will move to the right and align.
207         \item In the main timeline in the audio 9 track, click on the \textit{Play Track} button that is beside the \textit{Arm track} button to enable it (if it is not already). Then enable audio and you can hear the audio while editing.
208         \item Position the windows mixers in a position you are comfortable with and next in the main window move the cursor to the beginning of the timeline. We can also resize the Mixers windows to your liking.
209         \item Click on play (space bar) and stop when you want to insert the portion of the track you want in the main track. You do this by double clicking in the mixer.
210         \item Go on starting, stopping and double clicking to insert new portions of the clips in the main track.
211         \item When you finish, arm only the main video track and your main audio 9 track.
212         \item Go to \texttt{tracks $\rightarrow$ delete tracks} and you will have only one video track and one audio track (in this example, the main audio track is mono).
213 \end{enumerate}
214
215 And that is it.
216
217 One more useful thing to keep in mind is that you can edit the new main track and adjust the beginning or ending of every clip (Trim) without disturbing the audio and the position of the other clips.
218 For example, if you are not happy with the cut between the three and the fourth clip.
219
220 So perhaps you want to have five more frames in clip three and five less in the fourth clip. Position the cursor arrow between the two clips and when the arrows shows, click the middle button of your mouse and drag in the direction you want to enlarge that particular clip and shorten the other one (trim mode: \textit{Slip}). If you also press the shift button, in the Compositor window you see a double view of the neighboring edits on which the trim acts allowing for greater precision and usability.
221
222 To render, do not forget to uncheck the P (proxy) button in the main program window.
223
224 \paragraph{Note:} If our files have Jam-syncing timecodes, we can speed up the workflow (steps 4 - 15) with the simple command : \texttt{Tracks $\rightarrow$ Align Timecodes}.
225
226 More info can be found in \nameref{sub:align_timecodes}.