<?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>i.MX ProcessorsのトピックRe: Use gstreamer to transcode MP4 file to ts file erro</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Use-gstreamer-to-transcode-MP4-file-to-ts-file-erro/m-p/973389#M144882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please try with the below gstreamer pipeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 filesrc location=&amp;lt;your mp4 file&amp;gt; ! qtdemux name=d ! queue ! h264parse ! mpegtsmux name=mux ! filesink location=&amp;lt;your output file&amp;gt; d. ! queue ! aacparse ! mux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope this could help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2019 00:02:50 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2019-07-11T00:02:50Z</dc:date>
    <item>
      <title>Use gstreamer to transcode MP4 file to ts file erro</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-gstreamer-to-transcode-MP4-file-to-ts-file-erro/m-p/973388#M144881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I use gstreamer to transcode MP4 file to TS file&amp;nbsp;&amp;nbsp;has the following erro（At present, only this MP4 file has this problem）：&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; *** Error in `./gst_transcode': realloc(): invalid next size: 0x7437af60 ***&lt;BR /&gt;&amp;nbsp; &amp;nbsp; intput 298 / output 298 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; intput 302 / output 302 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; intput 1520 / output 1520 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; (gst_transcode:20162): GLib-ERROR **: /home/djq/fsl_release_bsp_v1/gstreamer/tmp/work/cortexa9hf-vfp-neon-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;poky-linux-gnueabi/glib-2.0/1_2.42.1-r0/glib-2.42.1/glib/gmem.c:103: failed to allocate 1382483 bytes&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Trace/breakpoint trap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The pipes I build are as follows：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue&amp;nbsp;&amp;nbsp;imxvideoconvert_ipu&amp;nbsp;&amp;nbsp;videorate&amp;nbsp;&amp;nbsp;videoscale&amp;nbsp; queue&amp;nbsp;&amp;nbsp;vpuenc_h264&amp;nbsp; queue&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uridecodebin&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mpegtsmux&amp;nbsp; filesink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; queue&amp;nbsp; &amp;nbsp;audioconvert&amp;nbsp;&amp;nbsp;audioresample&amp;nbsp; &amp;nbsp;queue&amp;nbsp; &amp;nbsp;avenc_aac&amp;nbsp; &amp;nbsp; &amp;nbsp;queue&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Corresponding log：&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[INFO] Product Info: i.MX6Q/D/S&lt;BR /&gt;compliance : 0&lt;BR /&gt;compliance : -2&lt;BR /&gt;average-period: 4000000&lt;BR /&gt;link videscale and video queue&lt;BR /&gt;link audioresample and audio queue&lt;BR /&gt;link audioresample and audio queue&lt;BR /&gt;Setting to PLAYING&lt;BR /&gt;[INFO] Product Info: i.MX6Q/D/S&lt;BR /&gt;====== VPUENC: 4.0.8 build on Jul 13 2016 17:56:54. ======&lt;BR /&gt; wrapper: 1.0.62 (VPUWRAPPER_ARM_LINUX Build on Jul 13 2016 17:37:28)&lt;BR /&gt; vpulib: 5.4.32&lt;BR /&gt; firmware: 3.1.1.46070&lt;BR /&gt;Running&lt;/P&gt;&lt;P&gt;====== AIUR: 4.0.8 build on Jul 13 2016 17:55:59. ======&lt;BR /&gt; Core: MPEG4PARSER_06.09.17 build on Aug 13 2015 10:41:12&lt;BR /&gt; file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2&lt;BR /&gt;------------------------&lt;BR /&gt; Track 00 [video_0] Enabled&lt;BR /&gt; Duration: 0:04:05.000000000&lt;BR /&gt; Language: und&lt;BR /&gt; Mime:&lt;BR /&gt; video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)1920, height=(int)1080, framerate=(fraction)25/1, codec_data=(buffer)01640028ffe1001b67640028acd940780227e5c044000003000400000300c83c60c65801000568ebecb22c &lt;BR /&gt;------------------------&lt;BR /&gt;[INFO] Product Info: i.MX6Q/D/S&lt;BR /&gt;====== VPUDEC: 4.0.8 build on Jul 13 2016 17:56:54. ======&lt;BR /&gt; wrapper: 1.0.62 (VPUWRAPPER_ARM_LINUX Build on Jul 13 2016 17:37:28)&lt;BR /&gt; vpulib: 5.4.32&lt;BR /&gt; firmware: 3.1.1.46070&lt;BR /&gt;------------------------&lt;BR /&gt; Track 01 [audio_0] Enabled&lt;BR /&gt; Duration: 0:04:05.063008000&lt;BR /&gt; Language: und&lt;BR /&gt; Mime:&lt;BR /&gt; audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrate=(int)127605, stream-format=(string)raw, codec_data=(buffer)121056e500 &lt;BR /&gt;------------------------&lt;BR /&gt;[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0&lt;/P&gt;&lt;P&gt;====== BEEP: 4.0.8 build on Jul 13 2016 17:56:14. ======&lt;BR /&gt; Core: AAC decoder Wrapper build on Apr 22 2014 09:43:50&lt;BR /&gt; file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3&lt;BR /&gt;CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30:32.&lt;BR /&gt;Dynamic pad created, linking parser/decoder&lt;BR /&gt; It has type 'video/x-raw' &lt;BR /&gt;Creat video/x-h264 pad&lt;BR /&gt;A new pad sink_65 was created and linked to src&lt;BR /&gt;Dynamic pad created, linking parser/decoder&lt;BR /&gt; It has type 'audio/x-raw' &lt;BR /&gt; It has type 'audio/x-raw' &lt;BR /&gt;A new pad sink_66 was created and linked to src&lt;BR /&gt;[INFO] ringBufferEnable 0, chromaInterleave 1, mapType 0, linear2TiledEnable 0&lt;BR /&gt;New clock / output 10 &lt;BR /&gt;** Message: Got new clock, clock name is GstSystemClock&lt;BR /&gt;To pause&lt;BR /&gt;To play&lt;BR /&gt;*** Error in `./gst_transcode': realloc(): invalid next size: 0x7426aff8 ***&lt;BR /&gt;intput 1513 / output 1513 &lt;BR /&gt;(gst_transcode:27662): GLib-ERROR **: /home/djq/fsl_release_bsp_v1/gstreamer/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glib-2.0/1_2.42.1-r0/glib-2.42.1/glib/gmem.c:103: failed to allocate 1382483 bytes&lt;BR /&gt;Trace/breakpoint trap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 02:24:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-gstreamer-to-transcode-MP4-file-to-ts-file-erro/m-p/973388#M144881</guid>
      <dc:creator>djqnxp</dc:creator>
      <dc:date>2019-06-26T02:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use gstreamer to transcode MP4 file to ts file erro</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-gstreamer-to-transcode-MP4-file-to-ts-file-erro/m-p/973389#M144882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please try with the below gstreamer pipeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 filesrc location=&amp;lt;your mp4 file&amp;gt; ! qtdemux name=d ! queue ! h264parse ! mpegtsmux name=mux ! filesink location=&amp;lt;your output file&amp;gt; d. ! queue ! aacparse ! mux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Hope this could help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 00:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-gstreamer-to-transcode-MP4-file-to-ts-file-erro/m-p/973389#M144882</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-07-11T00:02:50Z</dc:date>
    </item>
  </channel>
</rss>

