Hi,
I am using Linux 2.6.35 for IMX53 SMD. Sabre Tablet.11.05 Kernel..
I am using "gplay" to run the video file, the video comes up but audio does not play at all for MPEG, AVI, MPG4 extensions files.
However if I play WMV files, both Audio and Video works. Please help me resolving this issue.
Regards,
Swamy
Hi,
I have updated the problem regading alsa/pcm here... Please provide your suggestion
Regards,
Swamy
Hi Daiane Angolini,
Yes sure, I shall close this thread, Thanks all of you for resolving my GPLAY issue.
I am creating new thread "Alsa Library: Error opening PCM playback device" for Navigationa application issue.
Kindly help in resolving this.
Regards,
Swamy
Great it's working! And great the right spec file was posted to the community.
Swamy, I did not understand "Navigation" is your application or it's inside the ltib BSP?
Do you know what PCM device Navigation application looks for? Can you post here the asound cards you can see on you board? ( cat /proc/asound/cards )
It would be good if the "gplay" thread was turned off and another thread regarding the "alsa/card" error was started, wouldn't it?
WOW!! Thanks a lot Kan HU and Daiane Angolini, it worked for me...Now I am able to get audio for MPEG, AVI, MPG4, DAT.
I have one more issue..I am running Navigation application, I am not able to hear the sound on this still. It is looking for ALSA-Lib which I have installed.
I get following error for this..
Error opening PCM playback device: -6, No such device or address
Retrying..
ALSA lib pcm.c:2166:(snd_pcm_open_conf) symbol _snd_pcm_plug_open is not defined
inside [builtin]
Kindly help in resolving this issue.
Regards,
Swamy
there's some bug in the earlier ltib spec for fsl-mm-codeclib.
for example, for the mp3 decoder it should has core codec library named lib_mp3_dec_arm12_elinux.so.x.x.x with lib_mp3_dec_arm12_elinux.so is a symbol link to it. But there's only lib_mp3_dec_arm12_elinux.so present in the rootsfs, so the mp3 plugin can not be loaded since the library missed.
so change the spec will also copy the lib_mp3_dec_arm12_elinux.so.x.x.x file as well.
Hi Daiane Angolini, Hi Kan HU,https://community.nxp.com/topic/listForContributor?user=0n8ejmp9tsc1q
This is my output for gst-inspect | grep mfw,
Also I have attached fsl-mm-codeclib.spec file for the reference.
root@freescale ~$ gst-inspect | grep mfw
mfw_v4lsink: mfw_v4lsink: Freescale: V4L Sink
mfw_ipucsc: mfw_ipucsc: Freescale IPU Color Space Converter
mfw_vpuencoder: mfw_vpuencoder: Freescale: Hardware (VPU) Encoder
mfw_isink: mfw_isink: Freescale: i_sink
mfw_vpudecoder: mfw_vpudecoder: Freescale: Hardware (VPU) Decoder
mfw_deinterlacer: mfw_deinterlacer: Mfw De-interlace
mfw_v4lsrc: mfw_v4lsrc: Freescale Video Source plug-in
Hi Kan HU,
Sorry I could not understand what exactly I need to replace, do I need to replace all arm9 and arm11 with arm12?
Please suggest.
Regards,
Swamy
it look like the freescale some plugins are not working. you can check it by steps.
1. remove /root/.gstreamer-0.10 directory in you rootfs (gstreamer registry files)
2. use gst-inspect and check the very beginning lines, there's maybe some message like "** plugin can not load, library *.so missed" if so, maybe some bugs in the earlier ltib spec files. since we use SONAME for some core codec so files and the spec did not copy the binary named like lib_mp3_dec_arm12_elinux.so.x.x.x.
Steps to fix that.
find spec file for fsl-mm-codeclibs, it should in your ltib installed directory dist/lfs-5.1/fsl-mm/fsl-mm-codeclibs.spec, replace the line in the file, like
"find %{corelibpath} -name "*arm12*.so" | xargs -I corelib install corelib $RPM_BUILD_ROOT/%{pfx}/%{
_prefix}/lib/"
with
"find %{corelibpath} -name "*arm12*.so*" | xargs -I corelib install corelib $RPM_BUILD_ROOT/%{pfx}/%{
_prefix}/lib/"
replace all of that with "arm9", "arm11" lines.
2. rebuild the fsl-mm-codeclibs and gst-fsl-plugins
it should work then, you can check by "gst-inspect | grep mfw", you should can see some plugins like mp3, aac, wma, etc.
There are 2 possibilities:
* bug on gplay
* some missing file on your rootfs
In case you can play it some other way (not using gplay) using mfw decoders it´s a gplay bug.
In case you cannot play anyway, it´s something missing on your rootfs.
Tomorrow, please take the gst-inspect | grep mfw. I´d want to see decoders you have.
Hi,
Currently I am in Home, I shall try out this tomorrow morning and update you..
As far as my understanding playbin2 will not work as I don't see in /ltib/rootfs/usr/bin/
Also I have enabled gstreamer plugins-good in LTIB build.
But when I play WMV files, audio works fine.
Please suggest.
Regards,
Swamy
What did you see when you try playbin2:
gst-launch playbin2 uri=file://home/file.MPG
Do you have any audio sync? Have you enabled GOOD plugins for gstreamer package (under LTIB)?
Can you, please share the log?
What audio decoder do you have? (please show your gst-inspect)