Archive:Kdenlive/Manual/ShootingHints: Difference between revisions

From KDE UserBase Wiki
No edit summary
m (Claus chr moved page Kdenlive/Manual/ShootingHints to Archive:Kdenlive/Manual/ShootingHints without leaving a redirect: Part of translatable page "Kdenlive/Manual/ShootingHints")
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Camera Specific Hints==
<languages />
===Using P2 footage from the Panasonic HVX200 on GNU/Linux, tested on Ubuntu===
<translate>
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 decode and transcode these files.
 
====Step One: FreeMXF====
== Shooting Hints == <!--T:1-->
Get freemxf source from http://freemxf.org.
 
=== Using P2 footage from the Panasonic HVX200 on GNU/Linux (tested on Ubuntu) === <!--T:2-->
 
<!--T:3-->
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.
 
==== Step One: FreeMXF ==== <!--T:4-->
 
<!--T:5-->
Get the source code for '''MFXlib''' from [http://sourceforge.net/projects/mxflib/ here].
 
<!--T:6-->
Then configure, compile, and install it by running the following code in the directory where you saved the source files:
Then configure, compile, and install it by running the following code in the directory where you saved the source files:
{{Input|1=<nowiki>
{{Input|1=<nowiki>
Line 9: Line 20:
make
make
sudo make install</nowiki>}}
sudo make install</nowiki>}}
This will get mxfsplit working which is a part of mxflib
 
====Step Two: Using mxfsplit====
<!--T:7-->
Here is a simple script that can be run in the terminal.
This will get '''mxfsplit''' (part of '''mxflib''') working.
It will convert all MXF files in a chosen directory into usable files.
 
Do a search and replace for /source/directory and /destination/directory
==== Step Two: Using mxfsplit ==== <!--T:8-->
 
<!--T:9-->
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
 
<!--T:10-->
{{Input|1=<nowiki>
{{Input|1=<nowiki>
# /source/directory
# /source/directory
Line 30: Line 46:
done
done
</nowiki>}}
</nowiki>}}
====Conclusion====
 
Now you have a script that can easily prepare footage for editing (ie. with kdenlive or Blender) and for transcoding (ie. 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.:
==== Conclusion ==== <!--T:11-->
 
<!--T:12-->
Now you have a script that can easily prepare footage for editing (e.g. with '''Kdenlive''' or '''Blender''') and for transcoding. '''FFMPEG''' can be used to transcode the resulting .MXF files to whatever format is preferred. For example, the following code would get the files ready for '''Youtube''', '''Vimeo''', etc.:
 
<!--T:13-->
{{Input|1=<nowiki>cd ""
{{Input|1=<nowiki>cd ""
for i in *.*
for i in *.*
Line 38: Line 59:
done
done
</nowiki>}}
</nowiki>}}
<!--T:14-->
{{Prevnext2
| prevpage=Special:MyLanguage/Kdenlive/Manual/Toolbars | nextpage=Special:MyLanguage/Kdenlive/Manual/Troubleshooting_and_Common_Problems
| prevtext=Toolbars | nexttext=Troubleshooting and Common Problems
| index=Special:MyLanguage/Kdenlive/Manual | indextext=Back to menu
}}
<!--T:15-->
[[Category:Multimedia]]
[[Category:Tutorials]]
[[Category:Kdenlive]]
</translate>

Latest revision as of 13:48, 11 August 2023

Other languages:

Shooting Hints

Using P2 footage from the Panasonic HVX200 on GNU/Linux (tested on 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.

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 (e.g. with Kdenlive or Blender) and for transcoding. FFMPEG can be used to transcode the resulting .MXF files to whatever format is preferred. For example, the following code 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