Re: Creating barrel distortion of video

2016-03-09 Thread semeon . risom
On Tuesday, 8 March 2016 19:46:18 UTC-6, Ben Finney  wrote:
> semeon.ri...@gmail.com writes:
> 
> > This may seem like an odd request for the main python google group
> 
> (Note that this is not a Google group. Google may be presenting this
> forum to you, but it's not exclusive to Google and many of us don't
> participate there.)
> 
> > but I thought this question might have answers coming from different
> > backgrounds that utilize python.
> 
> Your question is fine for this forum. Thanks for investigating Python!
> 
> > I'm trying to find a way of rendering an optical distortion on a video
> > I will be presenting through the use of a head-mounted display. This
> > distortion is necessary to correct the video due to the optics being
> > used. Any advice on a module(s) or examples that already do this?
> 
> I have no experience with such a library. Possible candidates include:
> 
> * moviepy: Video editing with Python
>   
> 
> * pygame: wrapper module for the SDL multimedia library
>   
> 
> -- 
>  \  "Holy hole in a donut, Batman!" --Robin |
>   `\   |
> _o__)  |
> Ben Finney

I'll check both of these out. Thank you
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating barrel distortion of video

2016-03-09 Thread semeon . risom
On Tuesday, 8 March 2016 19:53:10 UTC-6, Chris Angelico  wrote:
> On Wed, Mar 9, 2016 at 12:32 PM,   wrote:
> > This may seem like an odd request for the main python google group, but I 
> > thought this question might have answers coming from different backgrounds 
> > that utilize python.
> >
> > I'm trying to find a way of rendering an optical distortion on a video I 
> > will be presenting through the use of a head-mounted display. This 
> > distortion is necessary to correct the video due to the optics being used. 
> > Any advice on a module(s) or examples that already do this?
> >
> 
> Hi! Seems like a perfectly reasonable request; there are tens of
> thousands of packages listed on the Python Package Index, and this
> mailing list is one of the best places to find advice!
> 
> Are you playing the video in real-time, or is it stored in a file that
> you'll end up playing? If the latter, I would recommend looking into
> FFMpeg (or its fork AVConv), which has an insane number of features,
> and quite likely has what you want. It'll read in a file and write out
> a file.
> 
> If it's real-time, though, I'm not sure what's best to do. Do you know
> exactly what distortion you're trying to perform here?
> 
> ChrisA

It'll be a barrel distortion. I won't need real time processing, and I'll be 
sure to check out both FFMpeg and it's fork. Thank you!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating barrel distortion of video

2016-03-08 Thread Steven D'Aprano
On Wednesday 09 March 2016 12:52, Chris Angelico wrote:

> On Wed, Mar 9, 2016 at 12:32 PM,   wrote:
>> This may seem like an odd request for the main python google group, but I
>> thought this question might have answers coming from different
>> backgrounds that utilize python.
>>
>> I'm trying to find a way of rendering an optical distortion on a video I
>> will be presenting through the use of a head-mounted display. This
>> distortion is necessary to correct the video due to the optics being
>> used. Any advice on a module(s) or examples that already do this?
>>
> 
> Hi! Seems like a perfectly reasonable request; 

Actually, it doesn't seem like a reasonable request to me. There's nothing 
in the OP's question that suggests that he needs a Python library to do 
this. In fact, your first suggestion:

> I would recommend looking into FFMpeg (or its fork AVConv)

has nothing to do with Python.

Unless the OP specifically needs to do this through Python, I would 
recommend asking on forums specifically about video editing.


> If it's real-time, though, I'm not sure what's best to do. Do you know
> exactly what distortion you're trying to perform here?

"Barrel distortion", like the subject line says :-)


-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating barrel distortion of video

2016-03-08 Thread Chris Angelico
On Wed, Mar 9, 2016 at 12:32 PM,   wrote:
> This may seem like an odd request for the main python google group, but I 
> thought this question might have answers coming from different backgrounds 
> that utilize python.
>
> I'm trying to find a way of rendering an optical distortion on a video I will 
> be presenting through the use of a head-mounted display. This distortion is 
> necessary to correct the video due to the optics being used. Any advice on a 
> module(s) or examples that already do this?
>

Hi! Seems like a perfectly reasonable request; there are tens of
thousands of packages listed on the Python Package Index, and this
mailing list is one of the best places to find advice!

Are you playing the video in real-time, or is it stored in a file that
you'll end up playing? If the latter, I would recommend looking into
FFMpeg (or its fork AVConv), which has an insane number of features,
and quite likely has what you want. It'll read in a file and write out
a file.

If it's real-time, though, I'm not sure what's best to do. Do you know
exactly what distortion you're trying to perform here?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Creating barrel distortion of video

2016-03-08 Thread Ben Finney
semeon.ri...@gmail.com writes:

> This may seem like an odd request for the main python google group

(Note that this is not a Google group. Google may be presenting this
forum to you, but it's not exclusive to Google and many of us don't
participate there.)

> but I thought this question might have answers coming from different
> backgrounds that utilize python.

Your question is fine for this forum. Thanks for investigating Python!

> I'm trying to find a way of rendering an optical distortion on a video
> I will be presenting through the use of a head-mounted display. This
> distortion is necessary to correct the video due to the optics being
> used. Any advice on a module(s) or examples that already do this?

I have no experience with such a library. Possible candidates include:

* moviepy: Video editing with Python
  

* pygame: wrapper module for the SDL multimedia library
  

-- 
 \  “Holy hole in a donut, Batman!” —Robin |
  `\   |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list