No sound when playing mp4 file

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

No sound when playing mp4 file

1,102 Views
bzhw
Contributor I

Hi,

 

I am trying to use gstreamer to play mp4 file (H264+AAC). I got video playing on my screen but no audio come out.

The speaker is working because I am able to play mp3.

 

The command I am using is:

 

gst-launch --gst-debug-level=2 -v filesrc location=filename.mp4 typefind=true ! aiurdemux name=demux demux. \

! queue max-size-buffers=0 max-size-time=0 ! vpudec ! mfw_v4lsink demux. \

! queue max-size-buffers=0 max-size-time=0 ! beepdec ! audioconvert ! 'audio/x-raw-int,channels=2' \

! alsasink device=hw:0,0

 

From the debug print, I find following error:

 

beepdec beepdec.c:871:gst_beepdec_chain: Call decode failed, ret = 0x1

beepdec beepdec.c:899:gst_beepdec_chain: Call getDecoderPara failed, ret = 0x2


Could anyone advise what the problem is? Is there anything missing for beepdec to decode AAC audio?

 

My full debug print is attached for reference.

 

Thanks in advance for any help.

Original Attachment has been moved to: playmp4.txt.zip

3 Replies

763 Views
bzhw
Contributor I

Thanks for all the responses.

We did have the needed codec build in. However, the version of codec library and other related libraries are mismatched.

Once we have all libraries to be the same version, it works.

0 Kudos

763 Views
jimmychan
NXP TechSupport
NXP TechSupport

Please try the latest set of branches.

You may check this:

Re: MP3 playback problem on imx6sabresd in Yocto build

and from your log, the libmfwba.so cannot be opened, you may also check this:

gst-fsl-plugins - GST_MFWBUFFER Can not open dll, libmfwba.so: cannot open shared object file: No su...

0 Kudos

763 Views
justin_jiang
NXP Employee
NXP Employee

Did you build Freescale audio codec in the image?