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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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. 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (968 bytes) Download Attachment |
Free forum by Nabble | Edit this page |