gstreamer playbin2 problem

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

gstreamer playbin2 problem

2,839 Views
Tony_Luo
Contributor II

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 :smileyhappy:

        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".

0 Kudos
Reply
4 Replies

1,042 Views
LeonardoSandova
Specialist I

What does the script look like?

Do you see problem launching this script?

while true; do gst-lauch playbin2 uri=file://$media; done

Leo

0 Kudos
Reply

1,042 Views
Tony_Luo
Contributor II

Hi Leo,

    I use gplay to test, and I found something maybe the problem.

    When I use the below command to play a list of video continuity:

   gplay -r --video-sink=mfw_v4lsink --audio-sink=alsasink /mnt/media/*

    It get the same problem.

    Is it the bug of playbin2, and how to fix it?

    ps:

       When play a media, I need to resize the v4l output according to the w/h scale, that is what I need to assign the video-sink.

0 Kudos
Reply

1,042 Views
Raana
Contributor III

Hi Tony,

Even, I am also facing the same issue.
Did you resolve it ?

BSP Version : L3.0.35_4.1.0

Board : SabreSD based custom board.

My Script :

#bin/bash

echo -e "\033[9;0]" > /dev/tty0

while [ 1 ]

do

gplay /iwtest/SeaOfMonsters.avi

cat /sys/class/thermal/thermal_zone0/temp

done

Could you please clarify me if you didn't solve.

What is the error ?

How to resolve it ?

Thanks in Advance.

Best Regards,

J.P.Raja

0 Kudos
Reply

1,042 Views
Tony_Luo
Contributor II

Hi Leo,

    I use the script like yours,  whould you please try it on and after several hour gone, you can get the same problem, I think.

0 Kudos
Reply