This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdenlive and Panasonic P2 MXF (broadcast)

Tags: None
(comma "," separated)
jjanarnava
Registered Member
Posts
6
Karma
0
Hallo Community,

is anybody out there who captures 1080p25 (or other formats) stored as Panasonic P2 MXF-files?

The structure is as followed:
ffmpeg -i
Input #0, dv, from '0046UK.MXF.Stream'
Duration: 00:00:13.96, start: 0.000000, bitrate: 115200 kb/s
Stream #0.0: Video: dvvideo, yuv422p, 1440x1080, 115200 kb/s, PAR 4:3 DAR 16:9, 25 tbr, 25 tbn, 25 tbc (comment DVCPRO HD pal)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.2: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.3: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.4: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s

The DV Stream is recognized by kdenlive , the original MXF-File NOT, what is very sad! (it will be imported to the cliplist without error, it could be dragged into the timeline, but the monitor keeps black and on play the curser is moving in stop and go, while with the stream the project monitor is ok and cursor moves smooth)

LINUX: I have created a shell script:
-----------------------------------------
for f in *.MXF;
do
echo "Processing $f ...";
STREAM=`mxfsplit -m $f | grep “File=” | cut -c 31-52`
mv _0002-G18010201.Stream "$f.Stream";
MODDATE=$(stat -c %y $f)
MODDATE=${MODDATE%% *}
if [ -s /home/Media/Video/aaa_production/imported_files/$MODDATE ]; then
echo please be patient...
else
etc...
-----------------------------------------
The grep file and cut is not used, because in the currently installed version of mxfsplit
always it outputs the filename: _0002-G18010201.Stream

The result delivers a stream, which I can work with...
Importing the stream I only get TWO (2) out of 4 audio channels, I am able to extract CH3 and CH4 using ffmpeg however it would be nice to import the complete content of the stream.

Are there other, better options, additional software (even purchased versions) to import the Panasonic MXF formats?
I found lots for apple and windows, but do not intend to go this way!

Thanks

B ert

ddennedy
Registered Member
Posts
1315
Karma
1
Does the mxf file play with ffplay? If not, then the improvements need to be made in ffmpeg/libav. Otherwise, please provide a short sample file in a bug report or post URL to here for download.


jjanarnava
Registered Member
Posts
6
Karma
0
Thank you for your response!

ffplay shows only the first frame. The terminal messages are as followed:

ffplay 0063DI.MXF
FFplay version SVN-r201103092102, Copyright (c) 2003-2011 the FFmpeg developers
built on Mar 9 2011 20:11:24 with gcc 4.5.0 20100604 [gcc-4_5-branch revision 160292]
configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-libxvid --enable-postproc --enable-gpl --enable-x11grab --extra-cflags='-fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gsm -I/usr/include/openjpeg' --enable-debug --disable-stripping --enable-libschroedinger --enable-libdirac --enable-libgsm --enable-avfilter --enable-libvpx --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libdc1394 --enable-pthreads
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 2 / 52.113. 2
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mxf @ 0x80cad40] only frame wrapped mappings are correctly supported
[mxf @ 0x80cad40] material track 2: no corresponding source track found
[mxf @ 0x80cad40] material track 3: no corresponding source package found
[mxf @ 0x80cad40] material track 4: no corresponding source package found
[mxf @ 0x80cad40] material track 5: no corresponding source package found
Input #0, mxf, from '0063DI.MXF':
Duration: 00:00:09.52, start: 0.000000, bitrate: 115227 kb/s
Stream #0.0: Video: dvvideo, yuv422p, 1440x1080 [PAR 4:3 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
[ffsink @ 0xb3f00490] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0xb3f00800] w:1440 h:1080 fmt:yuv422p -> w:1440 h:1080 fmt:yuv420p flags:0x4
Seek to 59% ( 0:00:05) of total duration ( 0:00:09) f=0/0 0/0
Seek to 59% ( 0:00:05) of total duration ( 0:00:09) f=0/0
Seek to 59% ( 0:00:05) of total duration ( 0:00:09) f=0/0
Seek to 59% ( 0:00:05) of total duration ( 0:00:09) f=0/0
Seek to 59% ( 0:00:05) of total duration ( 0:00:09) f=0/0
Seek to 78% ( 0:00:06) of total duration ( 0:00:09) f=0/0
Seek to 61% ( 0:00:05) of total duration ( 0:00:09) f=0/0
Seek to 43% ( 0:00:03) of total duration ( 0:00:09) f=0/0
Seek to 43% ( 0:00:03) of total duration ( 0:00:09) f=0/0
Seek to 43% ( 0:00:03) of total duration ( 0:00:09) f=0/0
Seek to 43% ( 0:00:03) of total duration ( 0:00:09) f=0/0
11.88 A-V: 0.000 s:0.0 aq= 0KB vq= 0KB sq= 0B f=0/0



It is an 1080p recording, not compressed, looking at the Stream-Format ffmpeg shows:
Input #0, dv, from '/home/Media/Video/aaa_production/imported_files/2011-04-04/0043OF.MXF.Stream':
Input #0, dv, from '0063DI.MXF.Stream':
Duration: 00:00:09.52, start: 0.000000, bitrate: 115200 kb/s
Stream #0.0: Video: dvvideo, yuv422p, 1440x1080, 115200 kb/s, PAR 4:3 DAR 16:9, 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.2: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.3: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream #0.4: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s

Do you think there are improvements to perform? Or is this caused by missing lib's...
I am going to upload the file to my ftp service and send you access information when uploaded.

Thanks again.
jjanarnava
Registered Member
Posts
6
Karma
0

sorry this was a duplicate

Thu Apr 07, 2011 5:43 am
...
ddennedy
Registered Member
Posts
1315
Karma
1
I believe the main relevant error message is "[mxf @ 0x80cad40] only frame wrapped mappings are correctly supported." Do not bother to upload a sample here. We do not work directly on FFmpeg. You can file a bug on their site and provide a sample:
http://libav.org/bugreports.html


jjanarnava
Registered Member
Posts
6
Karma
0
Thanks a lot "ddennedy"!

It is filed at: https://roundup.libav.org

as issue 2676

B ert


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]