[FFmpeg-trac] #8459(avfilter:open): V360 + BLEND
FFmpeg
trac at avcodec.org
Sun Feb 23 14:28:32 EET 2020
#8459: V360 + BLEND
-------------------------------------+------------------------------------
Reporter: villmer | Owner: villmer
Type: enhancement | Status: open
Priority: wish | Component: avfilter
Version: git-master | Resolution:
Keywords: v360 | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by mkoch):
I did download the video in size 1280x640. The first command line makes
only the conversion from dual_fisheye to equirectangular, without
smoothing. The best in_pad parameter must be found by try and error. That
should be always the same value, as long as you use the same camera.
The second command line does the same thing, but including smoothing.
Unfortunately all these workarounds with geq filter are quite slow. That's
why I limited the duration to 8 seconds.
set "FF=c:\ffmpeg\ffmpeg" :: Path to FFmpeg
set "IN=dualfisheye.mp4" :: Input video
set "B1=320" :: Left side of first vertical border, right
side is at B1+1
set "B2=959" :: Left side of second vertical border, right
side is at B2+1
set "W=25" :: Width of interpolation area
set "T=8" :: Duration in seconds
%FF% -i %IN% -vf "v360=input=dfisheye:output=e:in_pad=0.058" -t %T% -y
out1.mp4
%FF% -i %IN% -vf
"v360=input=dfisheye:output=e:in_pad=0.058,geq=cb_expr='cb(X,Y)':cr_expr='cr(X,Y)':lum_expr='clip(lum(X,Y)+between(X,%B1%-%W%,%B1%)*lerp(0,lum(%B1%+1,Y)-lum(%B1%,Y),(X-%B1%+%W%)/%W%)+between(X,%B2%-%W%,%B2%)*lerp(0,lum(%B2%+1,Y)-lum(%B2%,Y),(X-%B2%+%W%)/%W%),0,255)'"
-t %T% -y out2.mp4
pause
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8459#comment:18>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list