AnsweredAssumed Answered

gstreamer playbin2 problem

Question asked by Tony.Luo on Mar 20, 2014
Latest reply on Oct 23, 2014 by Raana

Hi all,

 

    I use gstreamer playbin2 to play video file(mp4) like this:

 

    $gst-launch playbin2 uri=file:///mnt/test.mp4

 

    Everything is ok, but when I write a script to call it continuity,it get the problem like this:

 

Header 1

Movie Info:

        Seekable  : Yes

        Live      : No

        Duration  : 0:03:07.812992000

        ReadMode  : File

        Track     : 2

 

Track 00 [video_000000] Enabled

        Duration: 0:03:07.812000000

        Language: und

        Mime:

              video/mpeg, mpegversion=(int)4, parsed=(boolean)true, width=(int)720, height=(in

              t)480, framerate=(fraction)2997/125, codec_data=(buffer)000001b001000001b5891300

              0001000000012000c48d885dad16843c1463000001b24c61766335322e32372e30

Here comes a message: 8192

[INFO]  Product Info: i.MX6Q/D/S

vpudec versions

        plugin: 3.0.7

        wrapper: 1.0.35(VPUWRAPPER_ARM_LINUX Build on Mar 13 2014 15:02:46)

        vpulib: 5.4.12

        firmware: 2.1.9.36350

Track 01 [audio_000000] Enabled

        Duration: 0:03:07.668992000

        Language: und

        Mime:

              audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)0

              , framed=(boolean)true, stream-format=(string)raw, codec_data=(buffer)1190

Here comes a message: 8192

Tag found.

Tag found.

Tag found.

Here comes a message: 8192

Here comes a message: 8192

Here comes a message: 8192

Here comes a message: 8192

[INFO]  bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0

Beep: 3.0.7

Core: AAC decoder Wrapper  build on Mar 15 2013 09:56:21

  mime: audio/mpeg, mpegversion=(int){2,4}

  file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so

CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.07.00  build on Jul 17 2012 17:47:46.

Tag found.

>>V4L_SINK: Actually buffer status:

        hardware buffer : 10

        software buffer : 0

Here comes a message: 8192

State changed: from 2 to 3

Here comes a message: 2097152

Here comes a message: 32768

Here comes a message: 2048

full screen size:1024x768

[V4L Update Display]: left=70, top=0, width=952, height=656

State changed: from 3 to 4

 

(<unknown>:3651): GStreamer-CRITICAL **:

Trying to dispose element streamsynchronizer0, but it is in PLAYING instead of the NULL state.

You need to explicitly set elements to the NULL state before

dropping the final reference, to allow them to clean up.

This problem may also be caused by a refcounting bug in the

application or some element.

 

 

(<unknown>:3651): GStreamer-CRITICAL **:

Trying to dispose element streamsynchronizer0, but it is in PLAYING instead of the NULL state.

You need to explicitly set elements to the NULL state before

dropping the final reference, to allow them to clean up.

This problem may also be caused by a refcounting bug in the

application or some element.

 

 

(<unknown>:3651): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

 

(<unknown>:3651): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

 

(<unknown>:3651): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

 

(<unknown>:3651): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

./test.sh: line 4:  3651 Segmentation fault      ./adv_mach -qws

root@freescale ~$

 

Can someone tell me what wrong with it? Thanks!


By the way, the hw I use is sabrelite, and the linux BSP version I use is "L3.0.35_4.0.0".

Outcomes