How to create mxf file from series of j2k files

Sebastian Dröge sebastian at centricular.com
Wed Mar 16 09:43:13 UTC 2016


On Mi, 2016-03-16 at 10:24 +0100, Miloš Selečéni wrote:
> Hi, I'm tying to create single mxf file with 4 audio tracks using
> mxfmux element in 1.7.9 gstreamer version. I'm able to create it from
> videotestsrc. 
> 
> [...]
> The error message: 
> mxfmux mxfmux.c:457:gst_mxf_mux_create_metadata:<mux> Creating MXF
> metadata
> mxfmux mxfmux.c:815:gst_mxf_mux_create_metadata:<mux> Invalid edit
> rate
> So my question is how to create, mxf from j2k files ? I thing that
> the problem is with time and framerate but I don't know how to solve
> it. 

That's exactly what it is, yes. You need properly timestamped media and
you need a framerate in the caps.

After this fix
  http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=a032347c77e2f4c57a06471d63167055e3c2df69
the following pipeline creates a MXF file that can be handled by
GStreamer and ffmpeg:
  gst-launch-1.0 videotestsrc num-buffers=100 ! openjpegenc ! mxfmux ! filesink location=test.mxf


It might make sense to add something to multifilesrc to a) specify a
framerate and b) let it put timestamps according to that framerate to
the buffers. a) should be possible with the caps property on
multifilesrc already, b) would be possible if you put a videorate after
multifilesrc and if videorate would also accept the JPEG2000 caps.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160316/720296be/attachment.sig>


More information about the gstreamer-devel mailing list