Skip to content

V360

Video Single output Transform

Convert 360 projection of video.

FFmpeg filter: v360 — the official reference.

Add it to a graph. The explicit form works for every filter — bind it to its input and read the result from outputs():

$node = $video->addFilter(new V360());
$result = $node->outputs()[0];

Shorthand. Single-output filters can skip the node — apply() returns the result stream directly:

$result = $video->apply(new V360());

TODO — when this filter shines: what it’s the right tool for, what to reach for instead when it isn’t, and how it composes with neighbouring filters.

TODO — prose: how the filter actually works and what its key parameters mean (the explanation FFmpeg’s terse option help omits).

TODO — runnable PHP, with the equivalent ffmpeg CLI alongside.

TODO

TODO

ParameterTypeDefaultRange / valuesDescription
inputV360Inequirectequirect, c3x2, c6x1, eac, dfisheye, rectilinear, barrel, c1x6, …set input projection
outputV360Outc3x2equirect, c3x2, c6x1, eac, dfisheye, rectilinear, barrel, c1x6, …set output projection
interpV360Interplinearnearest, linear, lagrange9, cubic, lanczos, spline16, gaussian, mitchellset interpolation method
wint0032767output width
hint0032767output height
in_stereoV360Stereo2d2d, sbs, tbinput stereo format
out_stereoV360Stereo2d2d, sbs, tboutput stereo format
in_forderstringrludfbinput cubemap face order
out_forderstringrludfboutput cubemap face order
in_frotstring000000input cubemap face rotation
out_frotstring000000output cubemap face rotation
in_padfloat000.1percent input cubemap pads
out_padfloat000.1percent output cubemap pads
fin_padint00100fixed input cubemap pads
fout_padint00100fixed output cubemap pads
yawfloat0-180180yaw rotation
pitchfloat0-180180pitch rotation
rollfloat0-180180roll rotation
rorderstringyprrotation order
h_fovfloat00360output horizontal field of view
v_fovfloat00360output vertical field of view
d_fovfloat00360output diagonal field of view
h_flipboolfalseflip out video horizontally
v_flipboolfalseflip out video vertically
d_flipboolfalseflip out video indepth
ih_flipboolfalseflip in video horizontally
iv_flipboolfalseflip in video vertically
in_transboolfalsetranspose video input
out_transboolfalsetranspose video output
ih_fovfloat00360input horizontal field of view
iv_fovfloat00360input vertical field of view
id_fovfloat00360input diagonal field of view
h_offsetfloat0-11output horizontal off-axis offset
v_offsetfloat0-11output vertical off-axis offset
alpha_maskboolfalsebuild mask in alpha plane
reset_rotboolfalsereset rotation

Maps to FFmpeg’s v360 filter. Verified against ffmpeg n7.1.1.

An Artisan Build project.

Built on FFmpeg — an independent binding, not affiliated with or endorsed by the FFmpeg project. Support FFmpeg.