Andrea-s update for appimage and linuxdeploy management
[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}.
227
228 \chapter{FAQ, Known Problems and Workarounds}%
229 \label{cha:faq_problems_workarounds}
230 \index{workarounds}
231
232 Some workarounds for issues and a few known problems that have not yet been fixed, are described here.
233
234 \paragraph{Workaround for the \textit{alpha channel not working as intended when using an EDL} inserted as a reference or when an EDL is nested.}
235 Using the Projector on the EDL within a Master Project follow these next steps.
236 \begin{itemize}
237         \item Open your EDL with \textit{Open EDL} by using the MMB (Middle Mouse Button) on the Nested edit on its track.
238         \item In this nested EDL, insert a new Video track below the last video track.
239         \item Add the Alpha plugin to the new Video track for the entire length of the nested EDL.
240         \item Change the value of the Alpha to 0.00. The Alpha Plugin may be disabled or left enabled.
241         \item Close the EDL.
242 \end{itemize} This solves the alpha channel not working as expected and the Master Project now looks correct.
243
244 \paragraph{Workaround for using a transition, like Dissolve, between 2 edits with the plugin Motion51.}
245 In this case, the Motion51 plugin and the Dissolve transition are not seen during the transition phase
246 and is stopped at the cut point between 2 edits.
247 The left edit's plugin should be in effect until the end of that clip and should include the
248 dissolve.  Instead, there is a jump inside the dissolve, as if the plugin does not exist. There are
249 2 possible workarounds.  For example, extend the Motion51 plugin to cover both clips rather than
250 having a separate plugin for each clip.  Or another workaround is to use two tracks and have the 
251 plugin cover the cut point and use a Fade auto instead of the Dissolve transition.
252
253 \paragraph{Workaround for access to modifiable text files when using AppImage.}  This includes
254 such files as FFmpeg video or audio files, fonts that you want to add for usage in the Title
255 plugin, icons that you wish to modify, and any other text file for customization.
256 To get access, first extract the files from the AppImage, find the files to add, edit, or modify, and then run the extracted binary following the steps shown here.
257 \begin{itemize}
258         \item  /path-to-appimage/CinGG-20220131-x86\_64.AppImage -{}-appimage-extract
259         \item  edit or add the files you want to modify in the \textit{bin} or \textit{lib} subdirecctory
260         \item  /path-to-appimage/squashfs-root/usr/bin/cin
261 \end{itemize}
262 For more detailed information on working with AppImages, see \ref{sub:managing_appimage}.
263
264 \paragraph{The Fade auto in certain circumstances produces an unwanted black flash.}
265 When you insert an effect on an empty track the fade fades as if it were on a black background;
266 it interprets the alpha as black where there is transparency, which is what produces the fade.
267 So the problem in the case of text is that the letters appear as a black flash briefly in the first
268 few frames, then goes back to transparent, then the fade starts normally with the white color. 
269 To avoid the unwanted effect produced by the fade over black (because there is no content) leave
270 the fade in/out of the effect at 0 and use the fade line to perform the intended results to
271 avoid the problem with the alpha channel. The same problem occurs when using transparent PNG
272 images with fade video transitions and can be resolved in the same manner.
273 However this workaround can be quite tedious and complicated if you want to fade many snippets of text
274 and transparent PNGs on the same track, with always the same video transition filter set to the same 
275 duration. 
276
277 Just a side note here. Fade in/out in the Title plugin works fine if there is a clip/image above 
278 the plugin in the same track without an alpha channel but not if there is no clip/image.
279 And the Transition effect works fine when there is a transition between two clips/images without
280 an alpha channel.