<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GStreamer qtmux/mp4mux command to code converting in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-qtmux-mp4mux-command-to-code-converting/m-p/1223722#M168705</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need analysis&amp;nbsp;&lt;A title="gst-launch.c" href="https://github.com/GStreamer/gstreamer/blob/master/tools/gst-launch.c" target="_self"&gt;https://github.com/GStreamer/gstreamer/blob/master/tools/gst-launch.c&lt;/A&gt;&amp;nbsp; to follow the source code about how to parse args&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 03:58:40 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2021-02-01T03:58:40Z</dc:date>
    <item>
      <title>GStreamer qtmux/mp4mux command to code converting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-qtmux-mp4mux-command-to-code-converting/m-p/1201544#M168616</link>
      <description>&lt;P&gt;I trying to use qtmux to merge audio and video to *mp4 file with GStreamer. My pipeline looks like:&lt;/P&gt;&lt;PRE&gt;gst-launch&lt;SPAN class="hljs-number"&gt;-1.0&lt;/SPAN&gt; autovideosrc ! x264enc ! &lt;SPAN class="hljs-built_in"&gt;queue&lt;/SPAN&gt; ! qtmux0. autoaudiosrc ! wavenc ! &lt;SPAN class="hljs-built_in"&gt;queue&lt;/SPAN&gt; ! qtmux ! filesink location=file.mp4

videotestsrc --&amp;gt; x264enc -----\
                               &amp;gt;---&amp;gt; qtmux ---&amp;gt; filesink
audiotestsrc --&amp;gt; wavenc ------/ &lt;/PRE&gt;&lt;P&gt;It's working good with command line. I didn't find any useful example in C to reach this goal. How can I do it with C code?&lt;/P&gt;&lt;P&gt;[UPDATE]&lt;/P&gt;&lt;PRE&gt;  gst_element_link_many(audiosource, wavenc, audioqueue, &lt;SPAN class="hljs-literal"&gt;NULL&lt;/SPAN&gt;);
  gst_element_link_many(videosource, x264enc, videoqueue, &lt;SPAN class="hljs-literal"&gt;NULL&lt;/SPAN&gt;);
  gst_element_link_many(qtmux, filesink, &lt;SPAN class="hljs-literal"&gt;NULL&lt;/SPAN&gt;);
  
  audio_pad     =  gst_element_get_request_pad (audioqueue, &lt;SPAN class="hljs-string"&gt;"src"&lt;/SPAN&gt;);
  mux_audio_pad = gst_element_get_static_pad (qtmux, &lt;SPAN class="hljs-string"&gt;"sink_1"&lt;/SPAN&gt;);
  gst_pad_link (audio_pad,mux_audio_pad); &lt;STRONG&gt;ERROR HERE&lt;/STRONG&gt;

  video_pad     = gst_element_get_request_pad (videoqueue, &lt;SPAN class="hljs-string"&gt;"src"&lt;/SPAN&gt;);
  mux_video_pad = gst_element_get_static_pad(qtmux, &lt;SPAN class="hljs-string"&gt;"sink_2"&lt;/SPAN&gt;);
  gst_pad_link (video_pad,mux_video_pad); &lt;STRONG&gt;ERROR HERE&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;This is the way I merge audio and video to qtmux. But it's wronged in step link pads.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 03:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-qtmux-mp4mux-command-to-code-converting/m-p/1201544#M168616</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-12-18T03:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer qtmux/mp4mux command to code converting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-qtmux-mp4mux-command-to-code-converting/m-p/1223722#M168705</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need analysis&amp;nbsp;&lt;A title="gst-launch.c" href="https://github.com/GStreamer/gstreamer/blob/master/tools/gst-launch.c" target="_self"&gt;https://github.com/GStreamer/gstreamer/blob/master/tools/gst-launch.c&lt;/A&gt;&amp;nbsp; to follow the source code about how to parse args&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 03:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-qtmux-mp4mux-command-to-code-converting/m-p/1223722#M168705</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-02-01T03:58:40Z</dc:date>
    </item>
  </channel>
</rss>

