AnsweredAssumed Answered

gplay hangs playing a video with audio

Question asked by chen ming on Mar 6, 2016
Latest reply on Jun 30, 2016 by Ambika .

Hi,

 

We are testing videos on the i.MX6DL with Linux version 3.14.52. If we play a video without audio, it play very well, but playing a video with audio, gplay will hangs up, but I can see first frame showed on the display. Some Info show below:

 

//====================================================================================

//==== command:   gst-launch-0.10 playbin uri=file:///harddisk/maiken1.mpg

//===================================================================================

export GST_DEBUG=filesrc:4

mx6qsabresd:/harddisk# gst-launch-0.10 playbin uri=file:///harddisk/maiken1.mpg

Setting pipeline to PAUSED ...

0:00:00.061378333   553  0x1518380 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:374:gst_file_src_set_location: filename : /harddisk/maiken1.mpg

0:00:00.061536333   553  0x1518380 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:375:gst_file_src_set_location: uri      : file:///harddisk/maiken1.mpg

0:00:00.065732000   553  0x1518380 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

0:00:00.065909667   553  0x1518380 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

 

 

(gst-launch-0.10:553): GStreamer-CRITICAL **: gst_debug_log_valist: assertion 'category != NULL' failed

0:00:00.087778000   553  0x1518380 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

0:00:00.087915000   553  0x1518380 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

Pipeline is PREROLLING ...

Aiur: 4.0.3

Core: BLN_MAD-MMLAYER_MPG2PARSER_04.04.40  build on Nov 11 2015 08:09:41

  mime: video/mpeg, mpegversion=(int)[1,2]; video/mpegts, systemstream=true; video/x-cdxa

  file: /usr/lib/imx-mm/parser/lib_mpg2_parser_arm11_elinux.so.3.1

Content Info:

        URI:

              file:///harddisk/maiken1.mpg

        Idx File:

              /home/root/.aiur/.harddisk.maiken1.mpg.aidx

        Seekable  : Yes

        Size(byte): 17670148

 

 

Mpeg2CreateParser:parser created successfully

Movie Info:

        Seekable  : Yes

        Live      : No

        Duration  : 0:00:31.272000000

        ReadMode  : File

        programs    : 1

        Track     : 2

 

 

Track 00 [video_000000] Enabled

        ppid: 0, ppid 0

        Duration: 0:00:31.240000000

        Language: und

        Mime:

              video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)

              2, width=(int)720, height=(int)576, framerate=(fraction)25/1, codec_data=(buffer

              )000001b32d02403309c423811011111212121313131314141414141515151515151616161616161

              6171717171717171718181818181818191a191a1a191b1b1b1a1b1c1c1c1c1e1e1e1f1f21000001b

              5148200010000000001b8001909c0

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

vpudec versions

        plugin: 4.0.3

        wrapper: 1.0.62(VPUWRAPPER_ARM_LINUX Build on Feb 21 2016 01:52:14)

        vpulib: 5.4.32

        firmware: 3.1.1.46070

Track 01 [audio_000001] Enabled

        ppid: 0, ppid 1

        Duration: 0:00:31.272000000

        Language: und

        Mime:

              audio/mpeg, mpegversion=(int)1, framed=(boolean)true, channels=(int)2, rate=(int

              )48000, bitrate=(int)384

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

MFW_GST_V4LSINK_PLUGIN 4.0.3 build on Feb 21 2016 02:58:35.

Beep: 4.0.3

Core: MP3 decoder Wrapper  build on Mar 21 2014 15:04:50

  mime: audio/mpeg, mpegversion = (int)1

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

CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.00_CORTEX-A8  build on Apr 10 2014 15:26:15.

set v4l rotate sucessfully

>>V4L_SINK: Actually buffer status:

        hardware buffer : 10

        software buffer : 0

Pipeline is PREROLLED ...

Setting pipeline to PLAYING ...

full screen size:1920x1080

[V4L Update Display]: left=0, top=0, width=1920, height=1080

set v4l display crop sucessfully

New clock: GstAudioSinkClock

//====================================================================================

//==== ctrl+c

//===================================================================================

^CCaught interrupt -- handling interrupt.

Interrupt: Stopping pipeline ...

(gst-launch-0.10:553): GLib-CRITICAL **: Source ID 75 was not found when attempting to remove it

Execution ended after 134436192350 ns.

Setting pipeline to PAUSED ...

//====================================================================================

//==== ctrl+c

//===================================================================================

^C

mx6qsabresd:/harddisk#

 

 

//====================================================================================

//==== command:  gplay maiken1.mpg 

//===================================================================================

gplay maiken1.mpg

playbin2 is employed!

fsl_player_init(): Successfully initialize!

fsl_player_set_media_location(): filename=maiken1.mpg

[Stopped  ][Vol=01][00:00:00/00:00:00][fps:0]0:00:00.077219333   507   0xf0ce20 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:374:gst_file_src_set_location: filename : /harddisk/maiken1.mpg

0:00:00.077372666   507   0xf0ce20 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:375:gst_file_src_set_location: uri      : file:///harddisk/maiken1.mpg

0:00:00.079879333   507   0xf0ce20 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

0:00:00.080044333   507   0xf0ce20 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

 

(gplay:507): GStreamer-CRITICAL **: gst_debug_log_valist: assertion 'category != NULL' failed

0:00:00.105827000   507   0xf0ce20 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

0:00:00.105965666   507   0xf0ce20 INFO                 filesrc /home/ubuntu/yocto/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/plugins/elements/gstfilesrc.c:969:gst_file_src_start:<source> opening file /harddisk/maiken1.mpg

Aiur: 4.0.3

Core: BLN_MAD-MMLAYER_MPG2PARSER_04.04.40  build on Nov 11 2015 08:09:41

  mime: video/mpeg, mpegversion=(int)[1,2]; video/mpegts, systemstream=true; video/x-cdxa

  file: /usr/lib/imx-mm/parser/lib_mpg2_parser_arm11_elinux.so.3.1

Content Info:

        URI:

              file:///harddisk/maiken1.mpg

        Idx File:

              /home/root/.aiur/.harddisk.maiken1.mpg.aidx

        Seekable  : Yes

        Size(byte): 17670148

 

Mpeg2CreateParser:parser created successfully

Movie Info:

        Seekable  : Yes

        Live      : No

        Duration  : 0:00:31.272000000

        ReadMode  : File

        programs    : 1

        Track     : 2

 

Track 00 [video_000000] Enabled

        ppid: 0, ppid 0

        Duration: 0:00:31.240000000

        Language: und

        Mime:

              video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)

              2, width=(int)720, height=(int)576, framerate=(fraction)25/1, codec_data=(buffer

              )000001b32d02403309c423811011111212121313131314141414141515151515151616161616161

              6171717171717171718181818181818191a191a1a191b1b1b1a1b1c1c1c1c1e1e1e1f1f21000001b

              5148200010000000001b8001909c0

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

vpudec versions

        plugin: 4.0.3

        wrapper: 1.0.62(VPUWRAPPER_ARM_LINUX Build on Feb 21 2016 01:52:14)

        vpulib: 5.4.32

        firmware: 3.1.1.46070

Track 01 [audio_000001] Enabled

        ppid: 0, ppid 1

        Duration: 0:00:31.272000000

        Language: und

        Mime:

              audio/mpeg, mpegversion=(int)1, framed=(boolean)true, channels=(int)2, rate=(int

              )48000, bitrate=(int)384

FOUND GST_MESSAGE_TAG!

          codec: MPEG2

  language code: und

        bitrate: 4000000

FOUND GST_MESSAGE_TAG!

container format: MPEG

    video codec: MPEG2

     frame rate: 25

  video bitrate: 4000000

    image width: 720

   image height: 576

FOUND GST_MESSAGE_TAG!

          codec: MP3

  language code: und

        bitrate: 384

MFW_GST_V4LSINK_PLUGIN 4.0.3 build on Feb 21 2016 02:58:35.

Beep: 4.0.3

Core: MP3 decoder Wrapper  build on Mar 21 2014 15:04:50

  mime: audio/mpeg, mpegversion = (int)1

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

CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.00_CORTEX-A8  build on Apr 10 2014 15:26:15.

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

FOUND GST_MESSAGE_TAG!

    audio codec: MPEG 1 Audio, Layer 2

nominal bitrate: 384000

FOUND GST_MESSAGE_TAG!

        has crc: FALSE

   channel mode: stereo

FOUND GST_MESSAGE_TAG!

number of channels: 2

        bitrate: 384000

sampling frequency (Hz): 48000

    audio codec: MPEG-1 Layer 2

FOUND GST_MESSAGE_TAG!

    image width: 720

   image height: 576

set v4l rotate sucessfully

>>V4L_SINK: Actually buffer status:

        hardware buffer : 10

        software buffer : 0

FOUND GST_MESSAGE_TAG!

minimum bitrate: 384000

maximum bitrate: 384000

full screen size:1920x1080

[V4L Update Display]: left=0, top=0, width=1920, height=1080

set v4l display crop sucessfully

fsl_player_play()

 

FSL_PLAYER_01.00_LINUX build on Feb 21 2016 02:59:27

        [h]display the operation Help

        [p]Play

        [s]Stop

        [e]Seek

        [a]Pause when playing, play when paused

        [v]Volume

        [m]Switch to mute or not

        [>]Play next file

        [<]Play previous file

        [r]Switch to repeated mode or not

        [f]Set full screen or not

        [z]resize the width and height

        [t]Rotate

        [c]Setting play rate

        [i]Display the metadata

        [x]eXit

get GST_MESSAGE_ELEMENT playbin2-stream-changed, uri=(string)file:///harddisk/maiken1.mpg;

[Playing  ][Vol=01][00:00:00/00:00:31][fps:0]

[Playing  ][Vol=01][00:00:00/00:00:31][fps:0]

[Playing  ][Vol=01][00:00:00/00:00:31][fps:0]^C Aborted by signal[2] Interrupt...

FSL_PLAYER_UI_MSG_EXIT

^C Aborted by signal[2] Interrupt...

^C Aborted by signal[2] Interrupt...

^C Aborted by signal[2] Interrupt...

 

 

Can any body give me some advise? Thanks.

Outcomes