Hello colleagues. I think the time has come to continue
the once-started “Linux for Professionals” cycle. Today I would like to talk about the installation of the video on the example of the video that we shot last summer for our Prague project with an electronic GPS audio guide.
Actually video (to be precise, this is a demo mini-movie).
')
The whole cycle of post-processing and editing is performed using software running Linux.
In truth, there is one nuance. I first used the AI running under Wine to prepare titles. This was due in part to the fact that I, being bound by the framework, did not pay due attention to the search for native alternatives. In fact, as it turned out, such an alternative, completely lying on the surface, exists. Below I will tell more.
So, in order.
Go into the shooting process, I think, there is no special meaning. The only thing probably worth saying is that we shot on a Canon EOS 600D with standard firmware; for recording sound, we used a wired microphone-buttonhole connected directly to the camera.

It should be noted that I was somewhat worried about the sound quality, because there is no visual monitor in the standard firmware, as well as a direct output for headphones. Moreover, when listening to the test sound at the site, overloads seemed to be noticeable. Therefore, we decided to reduce the level slightly. As it turned out later - in vain. In the files, the sound was noticeably below average. And the file that we recorded at the beginning showed quite a normal sound level without overloads.
Generally speaking, if you intend to shoot professional video on any Canon DSLR, I would recommend using the
Magic lantern . In our case, I frankly missed this moment, in part, being busy with visual and organizational tasks and the desire to have time to take everything off in sunny weather.
As a result, after two days of filming, we burned out under the scorching sun, but, in general, satisfied with the result, we received 10GB HD materials as 1080p compressed with the H.264 codec.
Material preparation
If you have ever worked with HD 1080p futage, you must know how slow installation can be, unless the hardware can handle multiple H.264 streams at the same time. Therefore, in order to facilitate the process, it is necessary to pre-convert all the material to some more digestible codec and lower the resolution, so that later you can “swap” the files with the original ones and “count” the final film.
I decided that the best would be to convert to the good old DV50 widescreen, as long as this codec does not provide interframe interpolation and has worked well with
Kdenlive . I have been using the latter for a long time for editing and consider it to be the best professional open source installation tool.
In general, without thinking twice, I charged the conversion:
# / bin / bash
if [$ # -lt 2]; then
echo "Video HD> PAL converter."
echo "Usage: $ 0 <target directory> l"
echo "c - convert, l - file list"
else
mkdir "$ 1 / PAL"
ls "$ 1" | grep -E .MOV | while read file;
do
if ["$ 2" == "c"]; then
avconv -i "$ 1 / $ file" -target pal-dv50 -aspect 16: 9 -threads 0 "PAL / $ file"
fi
if ["$ 2" == "l"]; then
echo "$ 1 / PAL / $ file"
fi
done
fi
Kdenlive has no codeb restrictions pertaining to Adobe products. Everything for which codecs are installed in your system will be loaded and played. But in fairness, it should be noted that all kinds of encoding formats that are not intended for nonlinear processing can lead to a drop in the installation. What is a big plus - Kdenlive is able to independently save and restore the project after the fall. However, in any case, it is good practice to periodically press the “save” button after each key stage. However, obviously, this is a matter of course.
A small digression, which aims to demonstrate how much more flexible approach is the use of Open Source products made in accordance with POSIX standards.
Some time ago, in the ru_filmmaker community, a colleague asked a question : how to turn 720p 25 fps with half frames in 1080p 50 fps without semi-fields. Like, by mistake they removed the part not in that capacity. What to do now is not very clear. The situation was aggravated by, as far as I understand, the need to process a certain amount of such material. As the author himself writes, it turned out that there are no standard ways to do this using Adobe products. In any case, no matter how straightforward the way to do it was missing. The reason for this is clear, there are standard tasks. As part of standard tasks, the toolkit provides solutions embedded in a monolithic interface. This approach assumes the remarkable profit skills of the developers. After all, indeed, you need to assume all the ways of using your toolkit in order to “close” all hypothetically possible nuances. Another thing is POSIX. A toolbox that is not directly related makes it possible to solve almost any problem.
I was first decided to offer a simple bash skipt, which breaks the video into frames, then with the help of ImageMagic it divides each frame into half-fields, saves and collects the final video. However, he quickly discovered that this problem was solved in one line with the help of ffmpeg , and informed the author of the question there.
Or something else. For example, do you know that Kdenlive stores the editing sheet in XML and allows you to “render” a movie from the command line? Any inquisitive experimenter's mind immediately gives rise to a lot of ideas about how this can be used :)
So, the video is ready. Need to mount.
Installation
As I wrote above, I use Kdenlive for editing. I once tried many different tools, and I can say that, in my opinion, Kdenlive is by far the best. There is also a
competing OpenShot level. But for now, neither in terms of performance, nor in terms of the interface, does Kdenlive even reach close. Kdenlive is the recognized standard. And, judging by the level of discussions on the project site’s forum, the guys who “ate more than one dog” in the video production make it.
Since the task of learning to use the toolkit goes beyond the scope of the objectives of this series of publications, I will not describe the entire installation process. It is simple and in general for any person who has the skills to work with any other installation product (FinalCut, Adobe Premiere, Avid), does not present any particular difficulties. In my subjective opinion, Kdenlive interface is most similar to Final Cut.
Moments to which I would like to draw attention:
a) In the new version of Kdenlive, it became possible to load not only sequences with an alpha channel, but also transparent (32 bit) AVI, saved without compression. What I successfully used to create titles (about this below)
b) After replacing the clips with the original ones (this will also be discussed below), fragments in which the playback speed has been changed are compressed for some reason. This is solved by changing the parameters to the original and back.
Sound
For sound processing, I use the well-proven
Audacity . There is, in principle, everything that a sound engineer needs + a large number of additional filters written by third-party developers.
In our video there is a pair of "windy" frames. Accordingly, I decided to tweak a little the frequency characteristics of the sound in these fragments, so that, if possible, mask the wind noise and highlight the voice. + slightly processed all the sound with a compressor in order to achieve b / m acceptable sound on small speakers and speakers built into pocket smartphones.
Post-processing video
After the shooting, it turned out that the sensitive skin of our actress in the sun was completely orange and covered in places, sorry for the details, very noticeable pimples, which I decided to retouch. This stage was the most painstaking.
Being an inquiring character, I decided that I would not deviate from the chosen paradigm and would try to solve this problem with the tools available for Linux software. In general, having spent the day exploring all the possible new products and realizing that nothing fundamentally changed in this aspect since 2007, I decided that the only way I can do is use AE running under Wine.
It should be noted that Open Source compositing in Linux is still a stumbling block. Those. No, there is of course
Nuke . Nuke, by the way, is such a great tool that many put it head and shoulders above all of the software for cinema-video composing that exists today. And I unconditionally share this point of view. But! Nuke is a proprietary and commercial product. Alas. So I left this option for the time being as well.
There is also a composer built into Blender node. He is great in everything. In addition to no tracking at that time. In the latest version,
tracking finally appeared . But last fall he was not there yet to speak. It became clear that the only way out was AE under
Wine .
After getting acquainted with the Wine base, it turned out that version 6.5 behaves the best. And I just had a CD from Adobe AE 6 from ancient times. Having rummaged through the network, I discovered that Adob has
open FTP with old software copies, which I used.
How long, how short, but the matter is argued.
AE running in Mate environment (ex Gnome)However, after some exercises, it turned out that AE, for some reason, from time to time, still, falls during the render. The place of failure was all the time different, which made me think that it was not the source code and not the timeline. In general, having rummaged on the web, I found the same reason and hurried to share with the visitors winehq, now I share with the respected readers of this article:
Tips:
1. To get rid of the stubborn falls, do the following: press Shift key + select Edit -> Preferences ... the subsection “Secret” will appear there. In the window that opens, enter the magic value "20" and close the window. After that, everything will work like a clock :)
2. By default, AE uses only 2GB (for any amount of memory you have installed), in order to allocate more, you need to set the / PAE and / 3GB commands in the boot.ini
The original, by the way, has already fallen asleep in “in Einstein-Bose condensate”. However, there was another
proof on Creative Cow.
Then everything was elementary. I "blew away the dust" from the old software. Everything worked and surprisingly briskly. I drew a static in
InkSkape , and then exported everything to EPS. He pulled into AE and made an animation. The resulting video is calculated without compression in 32bit AVI with alpha channel.
Here we must make some digression. The fact is that I, as already mentioned above, was in a hurry to post a video on the site, and did not bother to investigate the issue thoroughly enough. However, after some time, and to be precise, immediately before the new year, reading
DigiLinux news
feed, I came across another note about
Synfig . Since the animation animation has always been somewhat on the periphery of my professional interests, I have never paid much attention to this project. Those. I knew that he was there and, judging from the screenshots and the frequency of notes about him here and there, this is some kind of quite popular product. But ... and then a thought struck me. And what if you try this thing as a compositor for titles.
In general, without hesitation, I set up Synfig, and what do you think ... So it turned out. Synfig was quite acceptable for this kind of venture. Hooray! problem solved. I was just planning to upgrade the video, attach the final “pachot”, twist the colors and finally put the video on the server directly in good quality, bypassing the Vimeo recompression and getting rid of Flash and annoying logos over the image in one. So the find was very helpful.
In general, I dig deeper, and made the same titles in Synfig.
Nevertheless, it should be noted that this task was not an easy one. After AE, the Synfig interface is quite unusual. And everything that concerns the work with key personnel and non-linear timings, in my opinion, leaves much to be desired. But, nevertheless, within the framework of the task, a solution was found. At the output, I received the usual PNG sequence with the alpha channel, which I easily converted into the same 32-bit avishki using ffmpeg.
Note:
If you are a media designer working in Linux, then surely, just like me, use InkScape for vector graphics. The new version of Synfig has a long-awaited import of SVG. However, as practice has shown, it works in a strange way. Those. all combined objects “fall apart” when exporting to parts. Solution: use the InkScape plugin instead . It saves in original synfig sif format.
After I "podrihoval" pimples and prepared new captions, it remained only to collect the final version.
Mounting roller Electronic Tour Guide in KdenliveAt the beginning of the article I mentioned that I used recalculated snippets. So, I was already prepared for some malfunctions after the replacement, but the reverse replacement procedure turned out to be surprisingly simple. Like many modern open source applications, Kdenlive saves the montage into a structured XML file. That is, this banal text file is convenient for viewing, analyzing and "parsing" by third-party applications. So I just opened the saved montage in a pluma text editor and, using a template, replaced all the paths with HD-leading sources.
After loading, I changed the frame format and the only thing I discovered was the resizing problem mentioned above. After correcting the size, it remained only to “calculate” the video with different codecs and upload the video to the server.
We are in the process :)
Shooting an epic film about our Prague GPS audio guide
Prague GPS Guide, Continued ShootingFilm crew
Yulya Belenkova tourist storyteller
Evgeny Epifantsev operator
Yuri Yakovlev Assistant and Photographer
Dmitry Shalnov copywriter, director and editor of an epic film :)
Special thanks to Mikhail Spivakov for editing the translation, as well as Alina Kazakevich for participating in the preliminary shootings.
List of used and mentioned open source software
- Kdenlive - video montage
- FFmpeg is a fully featured console video processing tool.
- Audacity - editing and processing sound
- Wine is a Windows API translator and set of libraries that allows running Win applications on POSIX compatible operating systems (such as Linux, Mac OSX, & BSD) in native mode.
- Blender is a professional tool for compositing and working with 3D graphics.
- Synfig - a tool for creating two-dimensional vector animation
- InkScape - a tool for working with vector graphics
- SIF exporter - plugin for saving SIF files from InkScape.
- Magic Lantern is an alternative firmware with an expanded set of video features and open source, designed to run on Canon EOS cameras.
useful links
PS The video added to the article is Vimeo, as long as Habra, alas, does not support adding html5 video directly. So the quality of compression is noticeably worse here. If you want to see the original - it is on the site of the project Electronic Tour Guide .