[mythtv] [PATCH] MythPhone - prevent sending garbage video when webcam grabs smaller video than we want to send

Paul Volkaerts paul.volkaerts at lineone.net
Wed Jan 26 17:46:26 EST 2005


> Hi,
> i have encountered a problem with mythphone when using a quickcam
> messenger
> and grabbing video in cif and sending it in cif.
> the problem is, that the qc cant do cif-modes. i.e. instead of 176x144 it
> opens in 162x124.
> this leads to problems when trying to send in cif.
> the attached patch does check if the actual width/height of the
> webcam are
> smaller than the res in we want to send. if it is it crops the
> image instead
> of scaling it.
> i dont know if this also happens when there is zoom enabled.
> also the transmitted image has now a green line at the bottom.
> doesnt look
> good, but at least you can see something now.
> perhaps the image should be padded with black pixels, dont know.

Thanks; I will patch it this weekend --- work too busy at the moment and I
can't live on Myth alone!

> p.s. @ Paul
> you can expect me to send some more patches. i am currently working on
> konference again and would like to add a more flexible way of
> handling audio
> input/output. have you ever looked at kphone source? they have a more
> flexible way of handling audio (alsa, oss, jack). i would like to
> implement
> something similar in konference/mythphone. let me know if you
> already worked
> on something similar.

Cool. I don't really like my audio code as it is OSS only, which is not well
suited to real-time programming.  Ideally this would be common myth code,
but maybe mythphones requirements differ too much from the rest of myth, I
am not sure.

Other areas I would like to sort out revolve around getting better
integration; i.e. should Mythphone's SIP stack be integrated as a mfd
application somehow; can we use mythphone to send/receive IM messages whilst
watching tv etc.    My main driver next though is going to be stability I
think as there are a few segfaults / memory leaks that I need to chase.





More information about the mythtv-dev mailing list