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(…));When to use it
Section titled “When to use it”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.
How to use it
Section titled “How to use it”TODO — prose: how the filter actually works and what its key parameters mean (the explanation FFmpeg’s terse option help omits).
Examples
Section titled “Examples”TODO — runnable PHP, with the equivalent ffmpeg CLI alongside.
Gotchas
Section titled “Gotchas”TODO
See also
Section titled “See also”TODO
Parameters
Section titled “Parameters”| Parameter | Type | Default | Range / values | Description |
|---|---|---|---|---|
input | V360In | equirect | equirect, c3x2, c6x1, eac, dfisheye, rectilinear, barrel, c1x6, … | set input projection |
output | V360Out | c3x2 | equirect, c3x2, c6x1, eac, dfisheye, rectilinear, barrel, c1x6, … | set output projection |
interp | V360Interp | linear | nearest, linear, lagrange9, cubic, lanczos, spline16, gaussian, mitchell | set interpolation method |
w | int | 0 | 0–32767 | output width |
h | int | 0 | 0–32767 | output height |
in_stereo | V360Stereo | 2d | 2d, sbs, tb | input stereo format |
out_stereo | V360Stereo | 2d | 2d, sbs, tb | output stereo format |
in_forder | string | rludfb | — | input cubemap face order |
out_forder | string | rludfb | — | output cubemap face order |
in_frot | string | 000000 | — | input cubemap face rotation |
out_frot | string | 000000 | — | output cubemap face rotation |
in_pad | float | 0 | 0–0.1 | percent input cubemap pads |
out_pad | float | 0 | 0–0.1 | percent output cubemap pads |
fin_pad | int | 0 | 0–100 | fixed input cubemap pads |
fout_pad | int | 0 | 0–100 | fixed output cubemap pads |
yaw | float | 0 | -180–180 | yaw rotation |
pitch | float | 0 | -180–180 | pitch rotation |
roll | float | 0 | -180–180 | roll rotation |
rorder | string | ypr | — | rotation order |
h_fov | float | 0 | 0–360 | output horizontal field of view |
v_fov | float | 0 | 0–360 | output vertical field of view |
d_fov | float | 0 | 0–360 | output diagonal field of view |
h_flip | bool | false | — | flip out video horizontally |
v_flip | bool | false | — | flip out video vertically |
d_flip | bool | false | — | flip out video indepth |
ih_flip | bool | false | — | flip in video horizontally |
iv_flip | bool | false | — | flip in video vertically |
in_trans | bool | false | — | transpose video input |
out_trans | bool | false | — | transpose video output |
ih_fov | float | 0 | 0–360 | input horizontal field of view |
iv_fov | float | 0 | 0–360 | input vertical field of view |
id_fov | float | 0 | 0–360 | input diagonal field of view |
h_offset | float | 0 | -1–1 | output horizontal off-axis offset |
v_offset | float | 0 | -1–1 | output vertical off-axis offset |
alpha_mask | bool | false | — | build mask in alpha plane |
reset_rot | bool | false | — | 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.