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
wint00–32767output width
hint00–32767output height
in_stereoV360Stereo2d2d, sbs, tbinput stereo format
out_stereoV360Stereo2d2d, sbs, tboutput stereo format
in_forderstringrludfb—input cubemap face order
out_forderstringrludfb—output cubemap face order
in_frotstring000000—input cubemap face rotation
out_frotstring000000—output cubemap face rotation
in_padfloat00–0.1percent input cubemap pads
out_padfloat00–0.1percent output cubemap pads
fin_padint00–100fixed input cubemap pads
fout_padint00–100fixed output cubemap pads
yawfloat0-180–180yaw rotation
pitchfloat0-180–180pitch rotation
rollfloat0-180–180roll rotation
rorderstringypr—rotation order
h_fovfloat00–360output horizontal field of view
v_fovfloat00–360output vertical field of view
d_fovfloat00–360output diagonal field of view
h_flipboolfalse—flip out video horizontally
v_flipboolfalse—flip out video vertically
d_flipboolfalse—flip out video indepth
ih_flipboolfalse—flip in video horizontally
iv_flipboolfalse—flip in video vertically
in_transboolfalse—transpose video input
out_transboolfalse—transpose video output
ih_fovfloat00–360input horizontal field of view
iv_fovfloat00–360input vertical field of view
id_fovfloat00–360input diagonal field of view
h_offsetfloat0-1–1output horizontal off-axis offset
v_offsetfloat0-1–1output vertical off-axis offset
alpha_maskboolfalse—build mask in alpha plane
reset_rotboolfalse—reset 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.