<div dir="ltr"><div><div><div>I am trying to get it working on a copy of the same video so streams should have the exact same configuration.<br><br>The error I'm currently getting is the following.<br><br>ERROR: from element /GstPipeline:pipeline0/GstQTDemux:d2: GStreamer encountered a general stream error.<br>Additional debug info:<br>qtdemux.c(5520): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:d2:<br>streaming stopped, reason not-negotiated<br><br></div>Before that it is printing about the sink and src pad for the audio concat c and it's caps filter (audio/mpeg). <br><br></div>Thanks for the help,<br></div>Ross O'Sullivan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 November 2016 at 21:28, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, 2016-11-28 at 14:50 +0000, Ross O Sullivan wrote:<br>
> Hi,<br>
><br>
> I'm making a video editor with the gstreamer C api as part of a University project and I have been having trouble creating a concatenate feature for mp4 files without re-encoding.  I was hoping you could point me in the direction of a solution.<br>
><br>
><br>
> My current design of the pipeline is as follows:<br>
><br>
>     source1       source2<br>
>     demux1          demux2<br>
> video   audio   video   audio<br>
>   \       \        /       /<br>
>             queue<br>
>     \       \     /       /<br>
>       \        x        /<br>
>  concat Videos   concat audio<br>
>             \      /<br>
>               muxer<br>
>                 |<br>
>             filesink<br>
><br>
> I have tried to create a similar design in gst-launch with the following command but I keep getting stream errors. <br>
><br>
> gst-launch-1.0 -v mp4mux name=mp4 ! filesink location='out.mp4' \<br>
>         concat name=c ! audio/mpeg ! mp4.audio_0 \<br>
>         concat name=c2 ! video/x-h264 ! mp4.video_0 \<br>
>         filesrc location='left.mp4' ! qtdemux name=d1 \<br>
>         filesrc location='right.mp4' ! qtdemux name=d2 \<br>
>         d1.audio_0 ! audio/mpeg ! queue ! c. \<br>
>         d2.audio_0 ! audio/mpeg ! queue ! c. \<br>
>         d1.video_0 ! video/x-h264 ! queue ! c2. \<br>
>         d2.video_0 ! video/x-h264 ! queue ! c2.<br>
<br>
</div></div>You need to make sure that all streams have exactly the same<br>
configuration. Not just e.g. video width/height, but also the<br>
codec_data must be exactly the same. MP4 does not support changes in<br>
the middle of a stream.<br>
<br>
What kind of stream errors do you get, what do you see in the debug<br>
logs shortly before them?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a></font></span><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>

<br>
<pre style="background-color:rgb(255,255,255)"><i style="color:rgb(146,146,146);font-family:Verdana;white-space:normal;font-size:10px"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal"><i style="color:rgb(146,146,146);font-family:verdana;font-size:10px"><p style="font-style:normal;font-family:verdana,arial,helvetica,sans-serif;display:inline"><strong>Séanadh Ríomhphoist/</strong></p></i><i style="color:rgb(146,146,146);font-family:verdana;font-size:10px"><p style="font-style:normal;font-family:verdana,arial,helvetica,sans-serif;display:inline"><strong>Email Disclaimer</strong></p></i></div><pre style="white-space:pre-wrap;color:rgb(34,34,34);font-style:normal"><i><div style="font-family:arial,sans-serif;font-style:normal;white-space:normal"><pre style="white-space:pre-wrap"><i><p style="display:inline"><span style="color:rgb(146,146,146);font-family:verdana,arial,helvetica,sans-serif;white-space:normal">Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. <font color="#1155cc"><a href="https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml" target="_blank">Is féidir tuilleadh a léamh anseo.</a></font></span><span style="color:rgb(146,146,146);font-family:verdana,arial,helvetica,sans-serif;font-style:normal;white-space:normal"><a href="https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml" target="_blank"> </a></span></p></i></pre></div><div style="font-family:arial,sans-serif;font-style:normal;white-space:normal"><i style="white-space:pre-wrap"><p style="color:rgb(146,146,146);font-family:verdana,arial,helvetica,sans-serif;white-space:normal;font-style:normal;display:inline"><em>This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. <font color="#1155cc"><a href="https://www4.dcu.ie/iss/email-disclaimer.shtml" target="_blank">Read more here.</a></font> </em></p></i></div></i></pre></i></pre>