<div dir="ltr">mp4mux does not support raw audio. You can see which input/output caps an element supports using gst-inspect-1.0, i.e.<div><br></div><div>gst-inspect-1.0 mp4mux</div><div><br></div><div>You can perhaps use qtmux instead.</div><div><br></div><div>Note that you instantiate two seperate muxers in your pipeline. For the audio part, you should request a pad from the same muxer you use for the video.</div><div>You should also add the argument "-e" to gst-launch-1.0. This will ensure that the file is finished properly if you shutdown (i.e. Ctrl+C).</div><div><br></div><div>Try something like this</div><div><br></div><div><span style="font-size:12.8px">gst-launch-1.0 -e filesrc location="/test/input.h264" ! h264parseĀ </span><span style="font-size:12.8px">! qtmux name=mux ! filesink location="/test/output.mp4" filesrcĀ </span><span style="font-size:12.8px">location="/test/input.wav" ! wavparse ! mux.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best Regards</span></div><div><span style="font-size:12.8px">Jesper</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 21, 2015 at 6:20 AM, mouse9093 <span dir="ltr"><<a href="mailto:mouse9093@hotmail.com" target="_blank">mouse9093@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gst-launch-1.0 filesrc location="/test/input.h264" ! video/x-h264 ! h264parse<br>
! queue ! mp4mux ! filesink location="/test/output.mp4" filesrc<br>
location="/test/input.wav" ! wavparse ! queue ! mp4mux<br>
<br>
Q/Problem<br>
<br>
have error, how can I fix this:<br>
<br>
Pipeline is PREROLLED ...<br>
<br>
Setting pipeline to PLAYING ...<br>
<br>
New clock: GstSystemClock<br>
<br>
/GstPipeline:pipeline0/GstWavParse:wavparse0.GstPad:src: caps = audio/x-raw,<br>
format=(string)S16LE, layout=(string)interleaved, channels=(int)2,<br>
channel-mask=(bitmask)0x0000000000000003, rate=(int)44100<br>
<br>
ERROR: from element /GstPipeline:pipeline0/GstWavParse:wavparse0: Internal<br>
data flow error.<br>
<br>
Additional debug info:<br>
<br>
gstwavparse.c(2468): gst_wavparse_loop<br>
():/GstPipeline:pipeline0/GstWavParse:wavparse0:streaming task paused,<br>
reason not-negotiated (-4)<br>
<br>
Execution ended after 0:00:00.011385019<br>
<br>
Setting pipeline to PAUSED ...<br>
<br>
Setting pipeline to READY ...<br>
<br>
Setting pipeline to NULL ...<br>
<br>
Freeing pipeline ...<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/mux-h264-and-wav-to-mp4-tp4674182.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/mux-h264-and-wav-to-mp4-tp4674182.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>