Kdenlive/Manual/ShootingHints/da: Difference between revisions

From KDE Wiki Sandbox
(Importing a new version from external source)
(Importing a new version from external source)
Line 5: Line 5:
=== Brug af P2-optagelser fra Panasonic HVX200 på GNU/Linux, testet på Ubuntu ===
=== Brug af P2-optagelser fra Panasonic HVX200 på GNU/Linux, testet på Ubuntu ===


Using footage from P2 cards is easy when you know how! The MXF files on P2 cards cannot be read until you convert them with '''mxfsplit''', a part of '''FreeMXF'''. The conversion is lossless and the resulting files contain both video and audio and can be edited in real time with '''Kdenlive''' (or '''Blender 2.5+''') on most computers made within the last five years or so. Also, '''FFMPEG''' can read these files. This process is very fast because there is no transcoding and so can be done in the field while shooting just as fast as simply transferring the original p2 files.
Det er let at bruge optagelser fra P2-kortet, når man ved hvordan! MXF-filern på P2-kortet kan ikke læses, før du har konverteret dem med '''mxfsplit''', som er en del af '''FreeMXF'''. Konverteringen er tabsfri og de resulterende filer indeholder både video og lyd og kan redigeres i realtid med '''Kdenlive''' (eller '''Blender 2.5+''') på de fleste computere fremstillet inden for de sidste fem år eller deromkring. '''FFMPEG''' kan også læse disse filer. Processen er meget hurtig fordi der ikke sker nogen omkodning, så den kan foretages i felten under optagelsen lige så hurtigt som blot at at overføre de oprindelige P2-filer.


==== Step One: FreeMXF ====
==== Step One: FreeMXF ====

Revision as of 06:59, 11 August 2012

Tips til optagelse

Brug af P2-optagelser fra Panasonic HVX200 på GNU/Linux, testet på Ubuntu

Det er let at bruge optagelser fra P2-kortet, når man ved hvordan! MXF-filern på P2-kortet kan ikke læses, før du har konverteret dem med mxfsplit, som er en del af FreeMXF. Konverteringen er tabsfri og de resulterende filer indeholder både video og lyd og kan redigeres i realtid med Kdenlive (eller Blender 2.5+) på de fleste computere fremstillet inden for de sidste fem år eller deromkring. FFMPEG kan også læse disse filer. Processen er meget hurtig fordi der ikke sker nogen omkodning, så den kan foretages i felten under optagelsen lige så hurtigt som blot at at overføre de oprindelige P2-filer.

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