Is there a fisheye or dual fisheye to equirectangular filter for ffmpeg?

后端 未结 2 484
后悔当初
后悔当初 2021-02-04 12:01

Or a way to do it with an existing filter? So that you could take in video from a fisheye or dual fisheye camera (such as the Ricoh Theta) and directly output equirectangular,

2条回答
  •  清酒与你
    2021-02-04 12:45

    The Remap filter does just this:

    This filter copies pixel by pixel a source frame to a target frame. It remaps the pixels to a new x,y destination based on two files ymap/xmap.

    Basic command syntax is

    ffmpeg -i fisheye_grid_input.jpg -i fisheye_grid_xmap.pgm -i fisheye_grid_ymap.pgm -filter_complex remap out.png 
    

    Also included at that link are the mapping files for

    Ricoh Theta S camera: input files for resolution 1920x960(1080)

提交回复
热议问题