[FFmpeg-user] Generating a displacement map
evorster at gmail.com
Sat Jul 8 18:21:56 EEST 2017
Hi there, Paul and Moritz
Remap definitely does what I want to do. Well, a part of it, anyways.
To do the Gear360 video correctly, I would have to have a little bit of
blending between the two cameras of the device.
Is there a way of making the remap filter do a bit of blending between the
two lenses of a gear360?
If not,one way that I thought of doing this would be to split the gear360
video into a front and back camera.
Each stream can then be remapped seperately. In order to get a little
overlap, I can a little more of each lens on to a slightly bigger canvas
(5% or so)
If I combine the two videos again I can trim off the edges that won't be
needed and only keep the overlap between the two streams.
Which is the proper filter to allow for some blending between two slightly
overlapping video streams?
On 5 July 2017 at 19:17, Evert Vorster <evorster at gmail.com> wrote:
> Wow, thanks.
> Now I have another great time-waster to play with!
> On 5 July 2017 at 19:03, Paul B Mahol <onemda at gmail.com> wrote:
>> On 7/5/17, Moritz Barsnick <barsnick at gmx.net> wrote:
>> > Hi Evert,
>> > On Wed, Jul 05, 2017 at 13:31:15 +0200, Evert Vorster wrote:
>> >> Using ffmpeg, hugin, and some scripting, each image is un-distorted
>> >> according to it's lens characteristics, and stitched together to make
>> >> equirectangular frame.
>> > [...]
>> >> Rather than figure out the location of each pixel every time, it would
>> >> much more efficient to just use a displacement map and move the pixels.
>> > Do have a look at the "displace" filter. The examples show how to
>> > describe the displacement with an equation/formula:
>> remap filter is better option.
>> > https://ffmpeg.org/ffmpeg-filters.html#displace
>> >> Actually generating such a map might be a bit of a trick.
>> >> Is there any ideas from the community on how to generate and use such a
>> >> map?
>> > If you can describe it mathematically, you may be able to use ffmpeg's
>> > expression system for the formula. Otherwise you would create two
>> > "images" which contain this displacement data, and feed them as looped
>> > inputs. The actual description of the map is probably up to you (and
>> > hugin or the lens database).
>> > Cheers,
>> > Moritz
>> >> Isometrix Acquistion Superchief
>> > Lovely title you have there. :-D
>> > _______________________________________________
>> > ffmpeg-user mailing list
>> > ffmpeg-user at ffmpeg.org
>> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> > To unsubscribe, visit link above, or email
>> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> Evert Vorster
> Isometrix Acquistion Superchief
Isometrix Acquistion Superchief
More information about the ffmpeg-user