Problem with video capture resolution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jonathan,

Not really. The video port will resample the dshow capture output, so
from the application point of view, video port will return video with
size and fps as requested. To make sure if the problem is in the video
port area, try to open video local preview, e.g: "vid dev prev on 0"
in pjsua prompt.

As usual, debugger call stack will be useful for analyzing crash problem.

BR,
nanang


On Wed, Nov 9, 2011 at 9:09 AM, Jonathan Martin <jmartin at akcode.com> wrote:
> Hi,
>
> I?m working with pjsip 2.0 on Windows.? I retrieved the source via SVN on
> Sunday, November 6th.? Video capture is failing (i.e. no video is presented
> at either machine) when setting up a call between two machines on the local
> LAN.? Here?s an excerpt from the log on one of the machines:
>
> pjsua_vid.c? .......Setting up TX..
> pjsua_vid.c? ........Creating video window: type=preview, cap_id=0,
> rend_id=2
> vid_port.c? .........Opening device Lenovo EasyCamera [dshow] for capture:
> format=YUY2, size=352x288 @30000:1001 fps
> dshow_dev.c? .........Error creating filter graph: An invalid media type was
> specified. (hr=0x80040200)
> dshow_dev.c? .........Trying to open dshow dev with default fps
> dshow_dev.c? .........Error creating filter graph: An invalid media type was
> specified. (hr=0x80040200)
> dshow_dev.c? .........Trying to open dshow dev with default size & fps
> vid_port.c? .........Device Lenovo EasyCamera [dshow] opened: format=YUY2,
> size=640x400 @10000000:333333 fps
> vid_port.c? .........Opening device SDL renderer [SDL] for render:
> format=I420, size=352x288 @30000:1001 fps
> vid_port.c? .........Device SDL renderer [SDL] opened: format=I420,
> size=352x288 @30000:1001 fps
> pjsua_vid.c? .........preview window id 1 created for cap_dev=0
> rend_dev=2
> pjsua_vid.c? .........Window 1 created
>
> It looks like the video camera does not support 352x288 and PJSIP falls back
> to the default resolution of 640x480.? However, the SDL renderer is still
> being initialized with the 352x288 resolution.? The result is that we do not
> see any video and the application crashes within 15 seconds of the call
> setup completing.? Should the SDL renderer resolution match the video camera
> resolution?
>
> Regards,
> --Jonathan
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux