Linphone 3.7.0 on imx6q: Black screen on the self view.

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

Linphone 3.7.0 on imx6q: Black screen on the self view.

4,618 Views
konstantinkoval
Contributor II

So, I am trying to use this linphone 3.7.0 on my Sabre platform for smart devices with OV5640 mipi camera.

I have done these steps:

1. Compile Linux BSP 4.0.1 3.0.35 from freescale

2. Compile linphone, ortp, mediastreamer2 for imx6q

3. Launch linphone, using "linphonec -V -d 3"

The problem is that I can see nothing on a self view (only a black screen). It seems like issue in Xv library which I have taken from freescale Ubuntu image (Linux BSP has not this library)

This phrase I see in linphone debug:

"ortp-error-Could not find suitable format or Xv port to work with."

I have attached the linphone log.

So, from this point I need some help to understand a causes of this problem. And I will appreciate for any advices!

Thanks...

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

Labels (3)
0 Kudos
11 Replies

1,855 Views
meghavalishetra
Contributor I

Hi,

I am facing the same issue with linphone 3.10.2 version on imx6.  Were you able to find a solution for this problem ? It'd be of great help as I am stuck on this issue for a long time.

Thanks

0 Kudos

1,855 Views
igorpadykov
NXP Employee
NXP Employee

Hi Konstantin, seems some libraries are missed,

suggest to use latest Freescale yocto

L3.10.17_1.0.0_IMX6QDLS_BUNDLE

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,857 Views
konstantinkoval
Contributor II

So, now I have built the linphone with latest freescale yocto project (i.MX6Q: i.MX 6Quad Processors – Quad Core) and I have the same issue like in my first post. I mean this "ortp-error-Could not find suitable format or Xv port to work with."

Unfortunately, I was forced to downgrade the linphone from 3.7.0 to 3.6.1 version because of some obstacles during the compilation process which I couldn't overcome... (I can't build "antlr3-3.4" for belle-sip, for instance). It seems like problem between vivante video driver and Xv in Xserver. However, I don't know how to handle it and I need help! Perhaps, there are people here who worked with Xv and vivante, so please tell me, what should I do on a next step?

Here my xorg.conf:

*************************************************************

Section "Device"

    Identifier  "i.MX Accelerated Framebuffer Device"

    Driver      "vivante"

    Option      "fbdev"     "/dev/fb0"

    Option      "vivante_fbdev" "/dev/fb0"

    Option      "HWcursor"  "false"

EndSection

Section "ServerFlags"

    Option "BlankTime"  "0"

    Option "StandbyTime"  "0"

    Option "SuspendTime"  "0"

    Option "OffTime"  "0"

EndSection

*************************************************************

Here my xserver configuration flags:

*********************************************************************************************************************

EXTRA_OECONF += "--with-fop=no \

                 --without-xmlto \

                 --with-pic \

                 --disable-static \

                 --disable-acfb \

                 --disable-ccfb \

                 --disable-mcfb \

                 --disable-xinerama \

                 --disable-xf86misc \

                 --disable-xorgcfg \

                 --disable-record \

                 --disable-dmx \

                 --disable-xnest \

                 --enable-xvfb \

                 --enable-composite \

                 --without-dtrace \

                 --with-int10=x86emu \

                 --sysconfdir=/etc/X11 \

                 --localstatedir=/var \

                 --with-fontdir=${datadir}/fonts/X11 \

                 --with-xkb-output=/var/lib/xkb \

                 ac_cv_file__usr_share_sgml_X11_defs_ent=no \

"

PACKAGECONFIG ??= "udev ${@base_contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)}"

PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev"

PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,glproto virtual/mesa xf86driproto"

PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2,dri2proto"

PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,--disable-glx,glproto virtual/libgl virtual/libx11"

*********************************************************************************************************************

I don't know how to check what type of xserver (udev, dri, dri2, glx) is built by default...

Of course, I can provide any other necessary information. I will be really appreciate for any advices!

Thanks in advance!

0 Kudos

1,857 Views
igorpadykov
NXP Employee
NXP Employee

Hi Konstantin,

please post this to meta-fsl-arm mailing list, so that someone familiar with xserver

could try to assist you.

https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards

chip

0 Kudos

1,857 Views
konstantinkoval
Contributor II

I guess that my problem is closely related to vivante xorg driver for freescale SabreSD. However, I will follow your advice! Thanks!

P.S. By the way, how I can use the common mesa driver for Xorg instead of vivante? On this stage I do not need a gpu acceleration so it can be a workaround.

0 Kudos

1,857 Views
igorpadykov
NXP Employee
NXP Employee

P.S. please follow previous suggestion. :smileyhappy:

0 Kudos

1,857 Views
konstantinkoval
Contributor II

So, today I have completely rebuilt my image with the master branch (fsl-image-multimedia-full) and that damn error "ortp-error-Could not find suitable format or Xv port to work with." has gone! However, I still can't see the self view via linphone! Moreover, it crashes... And now it seems like problem in the mxc_v4l2 driver.

Here is the log message from linphone:

root@imx6qsabresd:~# linphonec -V -d 3

INFO: no logfile, logging to stdout

ortp-message-Using (r/w) config information from /home/root/.linphonerc

ortp-message-Initializing LinphoneCore 3.6.1

ortp-message-oRTP-0.22.0 initialized.

ortp-message-assigning PCMU/8000 payload type number 0

ortp-message-assigning GSM/8000 payload type number 3

ortp-message-assigning PCMA/8000 payload type number 8

ortp-message-assigning speex/8000 payload type number 110

ortp-message-assigning speex/16000 payload type number 111

ortp-message-assigning speex/32000 payload type number 112

ortp-message-assigning telephone-event/8000 payload type number 101

ortp-message-assigning G722/8000 payload type number 9

ortp-message-assigning H263/90000 payload type number 34

ortp-message-assigning theora/90000 payload type number 97

ortp-message-assigning H263-1998/90000 payload type number 98

ortp-message-assigning MP4V-ES/90000 payload type number 99

ortp-message-assigning H264/90000 payload type number 102

ortp-message-assigning VP8/90000 payload type number 103

ortp-message-assigning x-snow/90000 payload type number 96

ortp-message-assigning iLBC/8000 payload type number 100

ortp-message-assigning AMR/8000 payload type number 104

ortp-message-assigning AMR-WB/16000 payload type number 105

ortp-message-assigning 1015/8000 payload type number 106

ortp-message-assigning G726-16/8000 payload type number 107

ortp-message-assigning G726-24/8000 payload type number 108

ortp-message-assigning G726-32/8000 payload type number 109

ortp-message-assigning G726-40/8000 payload type number 113

ortp-message-assigning AAL2-G726-16/8000 payload type number 114

ortp-message-assigning AAL2-G726-24/8000 payload type number 115

ortp-message-assigning AAL2-G726-32/8000 payload type number 116

ortp-message-assigning AAL2-G726-40/8000 payload type number 117

ortp-message-assigning SILK/8000 payload type number 118

ortp-message-assigning SILK/12000 payload type number 119

ortp-message-assigning SILK/16000 payload type number 120

ortp-message-assigning SILK/24000 payload type number 121

ortp-message-assigning G729/8000 payload type number 18

ortp-message-assigning mpeg4-generic/22050 payload type number 122

ortp-message-assigning mpeg4-generic/44100 payload type number 123

ortp-message-assigning opus/48000 payload type number 124

ortp-message-assigning 1016/8000 payload type number 1

ortp-message-assigning GSM/8000 payload type number 3

ortp-message-assigning G723/8000 payload type number 4

ortp-message-assigning LPC/8000 payload type number 7

ortp-message-assigning PCMA/8000 payload type number 8

ortp-message-assigning G722/8000 payload type number 9

ortp-message-assigning L16/44100 payload type number 10

ortp-message-assigning L16/44100 payload type number 11

ortp-message-assigning G729/8000 payload type number 18

ortp-message-assigning H261/90000 payload type number 31

ortp-message-assigning MPV/90000 payload type number 32

ortp-message-assigning H263/90000 payload type number 34

ortp-message-Mediastreamer2 2.9.1 (git: 2.9.1) starting.

ortp-message-ms_base_init() done

ortp-message-Registering all soundcard handlers

ortp-message-Card 'ALSA: default device' added

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_frimx-hdmi-audio imx-hdmi-audio: HDMI Video is not ready!

eescale_build/tmp/work/cortexa9hfimx-hdmi-audio imx-hdmi-audio: ASoC: can't open platform imx-hdmi-audio: -22

-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/conf.c:4694:(snd_config_expand) Unknown parameters 0

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/control/control.c:953:(snd_ctl_open_noupdate) Invalid CTL default:0

ortp-warning-Could not attach mixer to card: Invalid argument

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/aERROR: v4l2 capture: slave not found!

lsa-lib-1.0.27.2/src/conf.c:4694:(snd_config_expand) Unknown parameters 0

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default:0

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/conf.c:4694:(snd_config_expand) Unknown parameters 0

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default:0

ortp-warning-Strange, sound card wm8962-audio does not seems to be capable of anything, retrying with plughw...

ortp-message-Card 'ALSA: wm8962-audio' added

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/conf.c:4694:(snd_config_expand) Unknown parameters 1

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/control/control.c:953:(snd_ctl_open_noupdate) Invalid CTL default:1

ortp-warning-Could not attach mixer to card: Invalid argument

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/conf.c:4694:(snd_config_expand) Unknown parameters 1

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default:1

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/conf.c:4694:(snd_config_expand) Unknown parameters 1

ALSA lib /mnt/Data/Linux_arm/fsl-release-bsp/my_freescale_build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/alsa-lib/1.0.27.2-r0/alsa-lib-1.0.27.2/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default:1

ortp-warning-Strange, sound card imx-hdmi-soc does not seems to be capable of anything, retrying with plughw...

ortp-warning-Strange, sound card imx-hdmi-soc seems totally unusable.

ortp-message-Card 'ALSA: imx-hdmi-soc' added

ortp-message-Card 'PulseAudio: default' added

ortp-message-New PulseAudio context state: PA_CONTEXT_CONNECTING

ortp-message-New PulseAudio context state: PA_CONTEXT_FAILED

ortp-message-Registering all webcam handlers

ortp-message-Webcam V4L2: /dev/video1 added

ortp-message-Webcam StaticImage: Static picture added

ortp-message-ms_voip_init() done

ortp-message-Loading ms plugins from [/usr/lib/mediastreamer/plugins]

ortp-message-Cannot open directory /usr/lib/mediastreamer/plugins: No such file or directory

ortp-message-Cannot open directory /usr/lib/liblinphone/plugins: No such file or directory

ortp-message-linphone_core_set_playback_gain_db(): no active call.

ortp-message-linphone_core_set_mic_gain_db(): no active call.

ortp-message-MTU is supposed to be 1300, rtp payload max size will be 1240

ortp-message-Adding new codec PCMU/8000 with fmtp

ortp-message-Could not find encoder for 1016

ortp-message-Could not find decoder for 1016

ortp-message-Could not find encoder for GSM

ortp-message-Could not find decoder for GSM

ortp-message-Could not find encoder for G723

ortp-message-Could not find decoder for G723

ortp-message-Could not find encoder for LPC

ortp-message-Could not find decoder for LPC

ortp-message-Adding new codec PCMA/8000 with fmtp

ortp-message-Adding new codec G722/8000 with fmtp

ortp-message-Adding new codec L16/44100 with fmtp

ortp-message-Adding new codec L16/44100 with fmtp

ortp-message-Could not find encoder for G729

ortp-message-Could not find decoder for G729

ortp-message-Could not find encoder for iLBC

ortp-message-Could not find decoder for iLBC

ortp-message-Could not find encoder for telephone-event

ortp-message-Could not find decoder for telephone-event

ortp-message-Could not find encoder for AMR

ortp-message-Could not find decoder for AMR

ortp-message-Could not find encoder for AMR-WB

ortp-message-Could not find decoder for AMR-WB

ortp-message-Could not find encoder for 1015

ortp-message-Could not find decoder for 1015

ortp-message-Could not find encoder for G726-16

ortp-message-Could not find decoder for G726-16

ortp-message-Could not find encoder for G726-24

ortp-message-Could not find decoder for G726-24

ortp-message-Could not find encoder for G726-32

ortp-message-Could not find decoder for G726-32

ortp-message-Adding new codec speex/8000 with fmtp vbr=on

ortp-message-Adding new codec speex/16000 with fmtp vbr=on

ortp-message-Adding new codec speex/32000 with fmtp vbr=on

ortp-message-Could not find encoder for G726-40

ortp-message-Could not find decoder for G726-40

ortp-message-Could not find encoder for AAL2-G726-16

ortp-message-Could not find decoder for AAL2-G726-16

ortp-message-Could not find encoder for AAL2-G726-24

ortp-message-Could not find decoder for AAL2-G726-24

ortp-message-Could not find encoder for AAL2-G726-32

ortp-message-Could not find decoder for AAL2-G726-32

ortp-message-Could not find encoder for AAL2-G726-40

ortp-message-Could not find decoder for AAL2-G726-40

ortp-message-Could not find encoder for SILK

ortp-message-Could not find decoder for SILK

ortp-message-Could not find encoder for SILK

ortp-message-Could not find decoder for SILK

ortp-message-Could not find encoder for SILK

ortp-message-Could not find decoder for SILK

ortp-message-Could not find encoder for SILK

ortp-message-Could not find decoder for SILK

ortp-message-Could not find encoder for mpeg4-generic

ortp-message-Could not find decoder for mpeg4-generic

ortp-message-Could not find encoder for mpeg4-generic

ortp-message-Could not find decoder for mpeg4-generic

ortp-message-Could not find encoder for opus

ortp-message-Could not find decoder for opus

ortp-message-Could not find encoder for H261

ortp-message-Could not find decoder for H261

ortp-message-Could not find encoder for MPV

ortp-message-Could not find decoder for MPV

ortp-message-Could not find encoder for H263

ortp-message-Could not find decoder for H263

ortp-message-Could not find encoder for x-snow

ortp-message-Could not find decoder for x-snow

ortp-message-Adding new codec theora/90000 with fmtp

ortp-message-Could not find encoder for H263-1998

ortp-message-Could not find decoder for H263-1998

ortp-message-Could not find encoder for MP4V-ES

ortp-message-Could not find decoder for MP4V-ES

ortp-message-Could not find encoder for H264

ortp-message-Could not find decoder for H264

ortp-message-Could not find encoder for VP8

ortp-message-Could not find decoder for VP8

ortp-message-getaddrinfo returned the following addresses:

ortp-message-0.0.0.0 port 5060

ortp-message-eXosip: Reseting timer to 10s before waking up!

Ready

linphonec> ortp-error-Error in connect: Network is unreachable

ortp-message-Setting video size 352x288

ortp-message-Driver is mxc_v4l2

ortp-message-v4l2: trying 352x288

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-error-Could not find supported pixel format for 352x288

ortp-message-v4l2: trying 320x240

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-error-Could not find supported pixel format for 320x240

ortp-message-v4l2: trying 176x144

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-error-Could not find supported pixel format for 176x144

ortp-message-Could not find any combination of resolution/pixel-format that works !

ortp-message-Driver is mxc_v4l2

ortp-message-v4l2: trying 352x288

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-error-Could not find supported pixel format for 352x288

ortp-message-v4l2: trying 320x240

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-error-Could not find supported pixel format for 320x240

ortp-message-v4l2: trying 176x144

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-message-VIDIOC_TRY_FMT: Invalid argument

ortp-error-Could not find supported pixel format for 176x144

ortp-message-Could not find any combination of resolution/pixel-format that works !

Segmentation fault

Any suggestions?

0 Kudos

1,857 Views
igorpadykov
NXP Employee
NXP Employee

Hi Konstantin,

linphone 3.7.0 is very special software,

not sure that it can be supported here.

please post this to meta-fsl-arm mailing list, so that someone familiar with it

could try to assist you.

https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards

chip

0 Kudos

1,857 Views
konstantinkoval
Contributor II

OK, I have done it! Now my post is placed on the meta-freescale mailing list. I will post a solution here or we can just close this thread.

0 Kudos

1,857 Views
igorpadykov
NXP Employee
NXP Employee

OK, thanks. :smileyhappy:

"If you think you understand computers, you're clearly not an expert"

[Murphy's laws]

0 Kudos

1,857 Views
konstantinkoval
Contributor II

Great news! Thanks a lot!

I will be testing this BSP on the next week. Probably, my issue will be solved...

Thanks again!

0 Kudos