How to create mxf file from series of j2k files
Miloš Selečéni
milos.seleceni at comprimato.com
Wed Mar 16 09:24:17 UTC 2016
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.
./gst-launch-1.0 videotestsrc num-buffers=1200 !
video/x-raw,framerate=25/1,width=1280,height=720,format=I420 ! cmptoj2kenc
! mxfmux name=mux ! filesink location=/Users/milos/data/out.mxf
audiotestsrc num-buffers=1200 wave=sine ! audioconvert !
audio/x-raw,rate=48000,channels=2 ! mux. audiotestsrc num-buffers=1200
wave=square ! audio/x-raw,rate=48000,channels=2 ! mux.
1. But when I try to create it from multifilesrc it faild. I think that the
problem is that buffers are missing dts, pts, clock or something like that.
Am I right ? I also tried to mux them into mj2 file but the result was
same.
./gst-launch-1.0 --gst-debug=3,mxfmux:5 multifilesrc
location=/Users/milos/data/mxf/test/New_%05d.j2k ! mxfmux name=mux !
filesink location=/Users/milos/data/out.mxf
The error message:
basesrc gstbasesrc.c:2948:void gst_base_src_loop(GstPad *):<multifilesrc0>
error: Internal data flow error.
basesrc gstbasesrc.c:2948:void gst_base_src_loop(GstPad *):<multifilesrc0>
error: streaming task paused, reason error (-5)
2. I also tried to decode encode the j2k, pipeline runs but after few
frames it fails
/gst-launch-1.0 --gst-debug=3,mxfmux:5 multifilesrc
location=/Users/milos/data/mxf/test/New_%05d.j2k ! cmptoj2kdec
colorspace=yuv ! cmptoj2kenc ! mxfmux name=mux ! filesink
location=/Users/milos/data/out.mxf
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. thx
--
*Miloš Selečéni*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160316/7c68f9bb/attachment.html>
More information about the gstreamer-devel
mailing list