<div dir="ltr"><div><div>Thank you for fast answer.<br><br>gst-inspect-1.0 matroskamux | grep Version<br>  Version:              1.0.10<br><br></div>this is the version<br><br><br></div><div>giving the frame rate was change nothing,<br>
<br>pi@c01 ~/bin $ gst-launch-1.0 -v filesrc location=test.h264 ! h264parse ! video/x-h264,framerate=20/1 ! matroskamux ! filesink location=test.mkv<br>Setting pipeline to PAUSED ...<br>Pipeline is PREROLLING ...<br>/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, width=(int)1296, height=(int)972, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01640028ffe1000f27640028ac2b402883dfdc03c489a801000528ee05f2c0<br>
ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0: GStreamer encountered a general stream error.<br>Additional debug info:<br>gstbaseparse.c(3038): gst_base_parse_loop (): /GstPipeline:pipeline0/GstH264Parse:h264parse0:<br>
streaming stopped, reason not-negotiated<br>ERROR: pipeline doesn't want to preroll.<br>Setting pipeline to NULL ...<br>Freeing pipeline ...<br>Freeing pipeline ...<br><br><br></div><div>With rpicamsrc <br>gst-launch-1.0 rpicamsrc vflip=true bitrate=1000000 ! video/x-h264,width=1284,height=972,framerate=20/1 ! h264parse ! matroskamux ! filesink location=test.mkv<br>
<br></div><div>with this command it worked , thank you really. <br><br>Then i figured plugin dont support quantisation mode, so i think maybe that could be cause of that problem and i tested with bitrate. same issue when i give h264 file. So is there a problem with h264 input from file or from pipe ? <br>
<br></div><div>So far thank you, now my only problem is adding quantisation support, because it is really low file size and good quality. any hint about this ? or do i need to open raspivid codes and plugin codes and do some dirty patching ? <br>
<br></div><div>Thanks for your fast answer and great support.<br><br></div><div>Best Regards,<br>Taylan Karaoğlu<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 1:29 AM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2014-08-04 at 00:50 +0300, iltaren wrote:<br>
<br>
Hi,<br>
<div><div class="h5"><br>
><br>
>    Sorry probably i am asking really stupid question. But i am new to<br>
> gstreamer, I try to put h264 file inside matroska container without re<br>
> encoding.<br>
><br>
> my commands was this<br>
> raspivid -vf -t 10000 -qp 21 -w 1296 -h 972 -fps 20 -n -ih -o<br>
> test.h264<br>
> gst-launch-1.0 -v filesrc location=test.h264 ! h264parse !<br>
> matroskamux ! filesink location=test.mkv<br>
> Setting pipeline to PAUSED ...<br>
> Pipeline is PREROLLING ...<br>
> /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =<br>
> video/x-h264, width=(int)1296, height=(int)972, parsed=(boolean)true,<br>
> stream-format=(string)avc, alignment=(string)au,<br>
> codec_data=(buffer)01640028ffe1000f27640028ac2b402883dfdc03c489a801000528ee05f2c0<br>
> ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0:<br>
> GStreamer encountered a general stream error.<br>
> Additional debug info:<br>
> gstbaseparse.c(3038): gst_base_parse_loop<br>
> (): /GstPipeline:pipeline0/GstH264Parse:h264parse0:<br>
> streaming stopped, reason not-negotiated<br>
> ERROR: pipeline doesn't want to preroll.<br>
> Setting pipeline to NULL ...<br>
> Freeing pipeline ...<br>
><br>
><br>
> i didnt understand what is wrong with putting inside container without<br>
> re enconding. (I tried without -ih flag for raspivid too) . With<br>
> another program copying stream to container work without problem.<br>
<br>
</div></div>What's the output of<br>
<br>
  gst-inspect-1.0 matroskamux | grep Version<br>
<br>
?<br>
<br>
Older versions of matroskamux required the framerate field to be present<br>
on the input video caps, but this was removed some time ago.<br>
<br>
You could try this:<br>
<br>
   .... h264parse ! video/x-h264,framerate=25/1 ! matroskamux ! ..<br>
<br>
or you could build this plugin:<br>
<br>
<a href="https://github.com/thaytan/gst-rpicamsrc" target="_blank">https://github.com/thaytan/gst-rpicamsrc</a><br>
<br>
which is a GStreamer source element that does more or less the same as<br>
raspivid, but you can feed the output directly to h264parse+matroskamux.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>