No sound when playing mp4 file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

No sound when playing mp4 file

2,047 次查看
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 回复数

1,708 次查看
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 项奖励
回复

1,708 次查看
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 项奖励
回复

1,708 次查看
justin_jiang
NXP Employee
NXP Employee

Did you build Freescale audio codec in the image?