Kdenlive Руководство Советы по съёмке

From KDE UserBase Wiki
Revision as of 09:29, 1 November 2012 by Bushuev (talk | contribs) (Created page with "Использовать кадры из карт P2 легко, когда вы знаете, как! MXF файлы на картах P2 не могут быть прочи...")
Other languages:

Советы по съёмке

Использование P2 кадров из Panasonic HVX200 в GNU/Linux, проверено на Ubuntu

Использовать кадры из карт P2 легко, когда вы знаете, как! MXF файлы на картах P2 не могут быть прочитан, пока вы не конвертируете их с mxfsplit, часть FreeMXF. Преобразование без потерь и в результате файлы содержат как видео, так и аудио- и могут быть отредактированы в режиме реального времени в Kdenlive (или Blender 2.5+) на большинстве компьютеров выпущенных в течение последних пяти лет . Кроме того,FFMPEG может прочитать эти файлы. Этот процесс происходит очень быстро, потому что нет транскодирования и так может быть сделано в поле во время съемки так быстро, как просто переводя исходные файлы p2.

Step One: FreeMXF

Get the source code for MFXlib from here.

Then configure, compile, and install it by running the following code in the directory where you saved the source files:

./configure
make
sudo make install

This will get mxfsplit (part of mxflib) working.

Step Two: Using mxfsplit

Here is a simple script that can be run in the terminal. It will convert all MXF files in a chosen directory into usable files. Do a search and replace for /source/directory and /destination/directory

# /source/directory
# /destination/directory
#
# change to destination directory
cd /destination/directory
#find all *.MXF files in a specific directory and loop through them using the variable 'i'
for i in /source/directory/*.MXF
do
# use mxfsplit to convert files
STREAM=`mxfsplit -m $i | grep “File=” | cut -c 31-52`
# rename the files so they make sense, appending the word 'converted' to the end of the basename
mv *.Stream "`basename $i .MXF`converted.MXF"
#end loop
done

Conclusion

Now you have a script that can easily prepare footage for editing (i.e. with Kdenlive or Blender) and for transcoding (i.e. ffmpeg). FFMPEG can be used to transcode the resulting .MXF files to whatever format is preferred. For example, this would get the files ready for Youtube, Vimeo, etc.:

cd ""
for i in *.*
do
ffmpeg -threads 2 -i $i -acodec libmp3lame -aq 192 -vcodec libx264 -vpre slow converted$i.mp4
done