How to use P2 card in Linux or FreeBSD? Any help greatly appreciated...

I am very interested in getting linux p2 drivers, for ubuntu on my laptop.

Has anyone ever contacted Panasonic on the matter? Maybe if we all suddenly call them or send them emails showing a demand, they might release something.
 
I am able to work with my HVX using only Linux. I have to connect it with USB, PCMCIA doesn't work for me.
I made a script which uses mfxsplit, part of mxflib, which I got from http://freemxf.org
The script is called mxf-fixit.sh and it needs to be executable. Here's the contents of that file, it includes comments that should get you all on your way! Cheers!

Code:
#!/bin/bash
# http://irishjesus.wordpress.com/2010/05/28/hvxp2mxf-media-in-linux/
# this website got me almost all the way there
# 
# after getting freemxf from freemxf.org, then ./configure, make, sudo make install.  this will get mxfsplit working which is a part of mxflib
#
# then you will need to make this script executable, chmod +x ./mxf-fixit.sh
#
# next, enter the following command, replacing the directory name with the real one
# there can be no whitespaces in the name - more code is needed for whitespaces and I don't know how to do that
# find /media/P2-card/CONTENTS/VIDEO -name "*.MXF" -exec ./mxf-fixit.sh {} \;
# this will make new MXF files in the folder where this script is run that are readable by FFMPEG and others, including Kdenlive, with no loss of quality and will counter-intuitively include the audio!
# you can use  ffplay myp2media.mxf  to play the resulting files with ffplayer if you want a quick preview
STREAM=`mxfsplit -v -m $1 | grep “File=” | cut -c 31-52`
mv *.Stream "`basename $1 .MXF`.MXF"
sleep 1
It probably doesn't matter, but I'm using Ubuntu 10.10. You can contact me directly for help at my company's website's contact form as I see all correspondence there: http://burningtokenmedia.com/contact

I've been looking for this solution for years and I found it yesterday! Please let me know if anyone improves this!

Jeff
 
Last edited:
Great work, loopduplicate! I had used the tools on freemxf.org before, but having a way to automate their use is very handy!

One of the items on my "todo" list for the GNU/Linux distro we maintain (Nexradix) is to add proper, GUI-driven support for Panasonic MXF formats. This will help quite a bit!
 
Awesome! I finally got to contribute to an official Linux distro!

Awesome! I finally got to contribute to an official Linux distro!

Great work, loopduplicate! I had used the tools on freemxf.org before, but having a way to automate their use is very handy!

One of the items on my "todo" list for the GNU/Linux distro we maintain (Nexradix) is to add proper, GUI-driven support for Panasonic MXF formats. This will help quite a bit!

@TwistedLincoln: It would be so awesome to have a GUI for Panasonic MXF formats! I'm sure you can write your own scripts, but for those that need a little help (usually, this means me,) here is an updated workflow that doesn't require making an executable script. I needed something that would work on NTFS drives so a Linux executable script cannot work because NTFS cannot flag a file as executable as NTFS doesn't support permissions in the same way. And so, here it is (complete with an SEO friendly introduction):
This script uses .MXF files from a Panasonic P2 card to create, in a separate directory, lossless copies of the video and audio. The resulting files are readable by FFMPEG and other open source programs, hence the files are also usable on a great number of Linux video editing software packages such as Kdenlive (http://kdenlive.org) and Blender (http://blender.org).
To use this script, you must first download the MXFLIB package from freemxf.org, then configure, build, and install it. You can use the following code to do so:
Code:
cd /directory_where_you_saved_source_files
./configure
make
sudo make install
This will get mxfsplit working which is a part of mxflib. After you install mxflib, you will only need to run the following script anytime you want to use .MXF files:
Code:
cd /destination/directory
for i in /source/directory/p2/CONTENTS/VIDEO/*.MXF
do
STREAM=`mxfsplit -m $i | grep “File=” | cut -c 31-52`
mv *.Stream "`basename $i .MXF`converted.MXF"
done

Hopefully, now, those of us who enjoy working using Linux can focus on creating great content instead of focusing on technical workflows! Check out my brainchild/record label/multimedia production company, Burning Token Records (http://burningtokenrecords.com) to see hundreds of videos that were made at least partly with open source tools. Peace everyone! Please keep me up to date on the progress of your Panasonic MXF GUI app!
 
Back
Top