Sure thing ! Sent from my Windows Phone -----Original Message----- From: "Matt Broad" <matt@xxxxxxxxxxxxxxxxxxxxx> Sent: ?3/?18/?2015 2:02 PM To: "pjsip list" <pjsip at lists.pjsip.org> Subject: Re: Video Inactive on Raspberry Pi 2 glad you got it working, the next step is to take a copy of the sd card and lock it away somewhere safe :) On 18 March 2015 at 08:10, Chirag Ajmera <chirag at ncc.co.in> wrote: finally got it ... recompiling SDL fixed the issue Thank you for the time and support Best, Chirag A. On Tue, Mar 17, 2015 at 5:23 PM, Matt Broad <matt at supportedbusiness.com> wrote: Hi Chirag, sorry for the delay, I haven't attempted to use a usb cam so might not be able to help. I do notice that you have the rpi camera board. Are you able to get this to work? Are you able to see a feed when using vid dev preview on 0 (pretty sure this is the correct syntax, if not use vid help). This should display your usb camera or using 1 on the end instead of 0 should display your rpi camera. thanks Matt On 16 March 2015 at 11:24, Chirag Ajmera <chirag at ncc.co.in> wrote: here's vid_streamutil output 11:22:43.635 os_core_unix.c !pjlib 2.3 for POSIX initialized 11:22:43.715 pa_dev.c PortAudio sound library initialized, status=0 11:22:43.715 pa_dev.c PortAudio host api count=2 11:22:43.715 pa_dev.c Sound device count=6 11:22:43.716 pjlib select() I/O Queue created (0x139cc7c) 11:22:43.722 v4l2_dev.c Found capture device UVC Camera (046d:081b) <------------------- Webcam 11:22:43.722 v4l2_dev.c Enumerating formats: 11:22:43.722 v4l2_dev.c Supported: YUV 4:2:2 (YUYV) 11:22:43.722 v4l2_dev.c Unsupported: MJPEG 11:22:43.722 v4l2_dev.c Unsupported: RGB3 11:22:43.722 v4l2_dev.c Supported: BGR3 11:22:43.722 v4l2_dev.c Unsupported: YU12 11:22:43.723 v4l2_dev.c Unsupported: YV12 11:22:44.016 v4l2_dev.c Found capture device Camera Board OV5647 <------------------------- Camera Module Raspberry 11:22:44.016 v4l2_dev.c Enumerating formats: 11:22:44.016 v4l2_dev.c Unsupported: MJPEG Video 11:22:44.017 v4l2_dev.c Unsupported: JPEG Still 11:22:44.017 v4l2_dev.c Unsupported: H264 11:22:44.017 v4l2_dev.c Unsupported: YUV 4:2:0 11:22:44.018 v4l2_dev.c Unsupported: Y/CrCb 4:2:0 11:22:44.018 v4l2_dev.c Unsupported: YVU 4:2:0 11:22:44.018 v4l2_dev.c Unsupported: RGB565 11:22:44.018 v4l2_dev.c Unsupported: RGB565X 11:22:44.019 v4l2_dev.c Unsupported: RGB24 LE 11:22:44.019 v4l2_dev.c Supported: BGR24 BE 11:22:44.019 v4l2_dev.c Unsupported: RGBA 11:22:44.020 v4l2_dev.c Supported: BGRA 11:22:44.092 v4l2_dev.c Video4Linux2 has 2 devices 11:22:44.092 colorbar_dev.c Colorbar video src initialized with 1 device(s): 11:22:44.092 colorbar_dev.c 0: Colorbar generator 11:22:44.103 sdl_dev.c !SDL_Init() error: No available video device 11:22:44.104 vid_port.c !Opening device UVC Camera (046d:081b) [v4l2] for capture: format=YUY2, size=720x480 @15:1 fps 11:22:44.159 v4l2_dev.c mmap streaming initialized 11:22:44.160 vid_port.c Device UVC Camera (046d:081b) [v4l2] opened: format=YUY2, size=640x480 @15:1 fps 11:22:44.298 rtp.c pjmedia_rtp_session_init: ses=0x13a3280, default_pt=97, ssrc=0x238e1f29 11:22:44.298 vstdec0x73fab0 Decoding channel created 720x480 I420<-H264 22/1(~22)fps 11:22:44.298 rtp.c pjmedia_rtp_session_init: ses=0x13a3314, default_pt=97, ssrc=0x238e1f29 11:22:44.298 vstenc0x73fab0 Encoding channel created 720x480 I420->H264 15/1(~15)fps 11:22:44.299 udp0x13bbfe0 SO_RCVBUF set to 163840 11:22:44.299 udp0x13bbfe0 SO_SNDBUF set to 163840 11:22:44.300 vid_stream.c Video stream vstrm0x73fab07c created 11:22:44.300 vstenc0x73fab0 Encoder stream started 11:22:44.300 vstdec0x73fab0 Decoder stream paused 11:22:44.300 v4l2_dev.c Starting v4l2 video stream UVC Camera (046d:081b) Stream is active, dir is send-only, sending to 192.168.1.91:9078 11:22:44.311 vid_streamutil Sending 720x480 H264 @15.00fps Commands: q Quit Command: q 11:22:47.103 v4l2_dev.c Stopping v4l2 video stream UVC Camera (046d:081b) 11:22:47.104 vid_port.c Closing UVC Camera (046d:081b).. 11:22:47.105 v4l2_dev.c Stopping v4l2 video stream UVC Camera (046d:081b) 11:22:47.106 v4l2_dev.c Destroying v4l2 video stream UVC Camera (046d:081b) 11:22:47.113 vstdec0x73fab0 JB summary: size=0/eff=0 prefetch=0 level=0 delay (min/max/avg/dev)=0/0/0/0 ms burst (min/max/avg/dev)=0/0/0/0 frames lost=0 discard=0 empty=0 11:22:47.220 pa_dev.c PortAudio sound library shutting down.. On Wed, Mar 11, 2015 at 8:12 PM, Matt Broad <matt at supportedbusiness.com> wrote: I will take a look when I am at home. Are you sure you have started the whole thing from fresh? It took my pi about 3 hours to compile ffmpeg I run straight from the command line and do not launch the desktop. What does pjsua show when you enter vid dev list from the cli? Does it show the webcam as device? I also use the rPi camera board so have not tested on a USB camera. thanks On 11 March 2015 at 14:36, Chirag Ajmera <chirag at ncc.co.in> wrote: Dear Matt, No success starting fresh .. still the same problem Kindly share the guide Also, let know if you are using Desktop (start-x) while running pjsua sample .. cause I been trying things via ssh terminal and I boot to console on start up ( Raspberry Pi ) Using Logitech camera via v4l2 ( vid_streamutil does work ) The camera led is not started at all when running pjsua sample Thanks Chirag A. On Wed, Mar 11, 2015 at 6:51 PM, Matt Broad <matt at supportedbusiness.com> wrote: If it does not work let me know and I will look at my notes. I made a step by step guide of each install I tried as I spent ALOT of time trying and failing to get video to work. thanks On 11 March 2015 at 13:19, Matt Broad <matt at supportedbusiness.com> wrote: No Problem, I found that I had to remove the pjsip folder from an earlier attempt and start that stage again before it would compile correctly. I must stress that ffmpg cannot be a higher version than 1.2.6. I tried and it will not work, I used 1.2.6 and it worked fine :) thanks Matt On 11 March 2015 at 13:10, Chirag Ajmera <chirag at ncc.co.in> wrote: Dear Matt, Thank you very much for the prompt response ! Help Appreciated I followed the instructions on an existing image but no luck. Have started fresh, will post update soon Thanks Best, Chirag A. On Tue, Mar 10, 2015 at 7:08 PM, Matt Broad <matt at supportedbusiness.com> wrote: are you running pjsua with --video or are you using "vid enable". I was unable to get this to work on the RpiB using Openh264 and after following some steps form another user on this list was able to get video working. in a nutshell you need to: install x264 $ apt-get install x264 libx264-dev download and install ssl (not mandatory) $ apt-get install openssl $ apt-get install libssl-dev download and compile sdl2 (I tried the pre compiled version but this did not work so had to compile myself) download and compile ffmpeg 1.2.6 (this will take a few hours so make yourself a big cup of tea) $ ./configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-libx264 $ make && make install create file pjproject-2.2.1/pjlib/include/pj/config_site.h add the following line and save #define PJMEDIA_HAS_VIDEO 1 download and compile pjproject (add parameters to ./configure if you do not want ssl) ./configure && make && make install launch pjsua with --video or you could use the following pjsua --video --log-level=5 --add-codec=G722 --auto-answer=200 --no-vad --ec-tail 0 --playback-dev=0 credit to Silvio for these steps thanks Matt On 10 March 2015 at 07:41, Chirag Ajmera <chirag at ncc.co.in> wrote: Kindly can anyone please guide on the below, I have been trying to get video working on Arm based boards since last 6 months but no success ! Compilation has been successful w/o error & vid_streamutil also works Issue - Video is Inactive ( camera does not start during a call pjsua, but streams with vid_streamutil app ) Platform - Raspberry Pi 2 with Asterisk SIP Server PJSIP - v2.3 compiled from source omitting openH264 & libyuv Below is the call disconnection message ( PJSU DEMO APP ) ----------------------------------------------------------------------------------------- 13:03:20.813 pjsua_aud.c ..Conf connect: 2 --> 0 13:03:20.813 pjsua_aud.c ...Set sound device: capture=-1, playback=-2 13:03:20.814 pjsua_app.c ....Turning sound device ON 13:03:20.814 pjsua_aud.c ....Opening sound device PCM at 16000/1/20ms 13:03:20.838 ec0x21540e8 .....AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=0 ms 13:03:20.839 conference.c !...Port 2 (ring) transmitting to port 0 (default:CARD=U0x46d0x81b) 13:03:20.839 pjsua_call.c ..Answering call 0: code=200 13:03:20.839 pjsua_media.c .....Call 0: updating media.. 13:03:20.840 pjsua_aud.c !......Audio channel update.. 13:03:20.840 strm0x217f604 !.......VAD temporarily disabled 13:03:20.842 strm0x217f604 .......Encoder stream started 13:03:20.842 strm0x217f604 .......Decoder stream started 13:03:20.842 pjsua_media.c ......Audio updated, stream #0: PCMU (sendrecv) 13:03:20.842 pjsua_vid.c ......Video channel update.. 13:03:20.863 vstenc0x2183c5 .......Encoder stream started 13:03:20.863 vstdec0x2183c5 .......Decoder stream started 13:03:20.864 pjsua_vid.c .......Setting up RX.. 13:03:20.864 pjsua_vid.c ........Creating video window: type=stream, cap_id=-1, rend_id=0 13:03:20.864 pjsua_vid.c .........Window 0: destroying.. 13:03:20.864 pjsua_media.c ......pjsua_vid_channel_update() failed for call_id 0 media 1: Invalid video device (PJMEDIA_EVID_INVDEV) 13:03:20.864 pjsua_app.c .....Call 0 media 0 [type=audio], status is Active 13:03:20.864 pjsua_aud.c .....Conf disconnect: 2 -x- 0 13:03:20.864 conference.c ......Port 2 (ring) stop transmitting to port 0 (default:CARD=U0x46d0x81b) 13:03:20.865 pjsua_aud.c .....Conf connect: 3 --> 0 13:03:20.865 conference.c ......Port 3 (sip:1004 at 192.168.1.190) transmitting to port 0 (default:CARD=U0x46d0x81b) 13:03:20.865 pjsua_aud.c .....Conf connect: 0 --> 3 13:03:20.865 conference.c ......Port 0 (default:CARD=U0x46d0x81b) transmitting to port 3 (sip:1004 at 192.168.1.190) 13:03:20.865 pjsua_app.c .....Call 0 media 1 [type=video], status is None 13:03:20.865 pjsua_app.c .....Just rejected incoming video offer on call 0, use "vid call enable 1" or "vid call add" to enable video! 13:03:20.865 pjsua_core.c ......TX 1032 bytes Response msg 200/INVITE/cseq=102 (tdta0x214a428) to UDP 192.168.1.190:5060: SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.190:5060;rport=5060;received=192.168.1.190;branch=z9hG4bK5aac1fe4 Call-ID: 6f30ba0b4fc6117d07745c7a2aeaa3a6 at 192.168.1.190:5060 From: "1004" <<a href [The entire original message is not included.] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150318/dfa41dfe/attachment.html>