Use gstreamer to transcode MP4 file to ts file erro

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use gstreamer to transcode MP4 file to ts file erro

1,187 Views
djqnxp
Contributor I

Hi all,

   I use gstreamer to transcode MP4 file to TS file  has the following erro(At present, only this MP4 file has this problem):


    *** Error in `./gst_transcode': realloc(): invalid next size: 0x7437af60 ***
    intput 298 / output 298
    intput 302 / output 302
    intput 1520 / output 1520
    (gst_transcode:20162): 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
    Trace/breakpoint trap

   The pipes I build are as follows:

   

                          queue  imxvideoconvert_ipu  videorate  videoscale  queue  vpuenc_h264  queue  

uridecodebin                                                                                                                                          mpegtsmux  filesink

                          queue   audioconvert  audioresample   queue   avenc_aac     queue  

Corresponding log:


[INFO] Product Info: i.MX6Q/D/S
compliance : 0
compliance : -2
average-period: 4000000
link videscale and video queue
link audioresample and audio queue
link audioresample and audio queue
Setting to PLAYING
[INFO] Product Info: i.MX6Q/D/S
====== VPUENC: 4.0.8 build on Jul 13 2016 17:56:54. ======
wrapper: 1.0.62 (VPUWRAPPER_ARM_LINUX Build on Jul 13 2016 17:37:28)
vpulib: 5.4.32
firmware: 3.1.1.46070
Running

====== AIUR: 4.0.8 build on Jul 13 2016 17:55:59. ======
Core: MPEG4PARSER_06.09.17 build on Aug 13 2015 10:41:12
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
Track 00 [video_0] Enabled
Duration: 0:04:05.000000000
Language: und
Mime:
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
------------------------
[INFO] Product Info: i.MX6Q/D/S
====== VPUDEC: 4.0.8 build on Jul 13 2016 17:56:54. ======
wrapper: 1.0.62 (VPUWRAPPER_ARM_LINUX Build on Jul 13 2016 17:37:28)
vpulib: 5.4.32
firmware: 3.1.1.46070
------------------------
Track 01 [audio_0] Enabled
Duration: 0:04:05.063008000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrate=(int)127605, stream-format=(string)raw, codec_data=(buffer)121056e500
------------------------
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0

====== BEEP: 4.0.8 build on Jul 13 2016 17:56:14. ======
Core: AAC decoder Wrapper build on Apr 22 2014 09:43:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30:32.
Dynamic pad created, linking parser/decoder
It has type 'video/x-raw'
Creat video/x-h264 pad
A new pad sink_65 was created and linked to src
Dynamic pad created, linking parser/decoder
It has type 'audio/x-raw'
It has type 'audio/x-raw'
A new pad sink_66 was created and linked to src
[INFO] ringBufferEnable 0, chromaInterleave 1, mapType 0, linear2TiledEnable 0
New clock / output 10
** Message: Got new clock, clock name is GstSystemClock
To pause
To play
*** Error in `./gst_transcode': realloc(): invalid next size: 0x7426aff8 ***
intput 1513 / output 1513
(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
Trace/breakpoint trap

thanks!

0 Kudos
1 Reply

752 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

can you please try with the below gstreamer pipeline.

gst-launch-1.0 filesrc location=<your mp4 file> ! qtdemux name=d ! queue ! h264parse ! mpegtsmux name=mux ! filesink location=<your output file> d. ! queue ! aacparse ! mux.

Hope this could help you.

Best regards,

Diego.

0 Kudos