Archive:Kdenlive/Manual/ShootingHints/ru: Difference between revisions

From KDE UserBase Wiki
(Created page with "Затем сконфигурируйте, скомпилируйте и инсталлируйте его, запустив следующий код в директории,...")
(Created page with "Это позволит получить рабочий '''mxfsplit''' (часть '''mxflib''') .")
Line 17: Line 17:
sudo make install</nowiki>}}
sudo make install</nowiki>}}


This will get '''mxfsplit''' (part of '''mxflib''') working.
Это позволит получить рабочий '''mxfsplit''' (часть '''mxflib''') .


==== Step Two: Using mxfsplit ====
==== Step Two: Using mxfsplit ====

Revision as of 09:37, 1 November 2012

Other languages:

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

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

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

Шаг первый: FreeMXF

Получите исходный код для MFXlib здесь.

Затем сконфигурируйте, скомпилируйте и инсталлируйте его, запустив следующий код в директории, где вы сохранили исходные файлы:

./configure
make
sudo make install

Это позволит получить рабочий mxfsplit (часть mxflib) .

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