Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
Insta360VRutils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sysadmin
Insta360VRutils
Commits
1c457442
Commit
1c457442
authored
Apr 30, 2022
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push latest changes
parent
5245177e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
Insta360_EVO_to_VR
Insta360_EVO_to_VR
+27
-1
No files found.
Insta360_EVO_to_VR
View file @
1c457442
...
...
@@ -12,6 +12,8 @@ fi
HLS
=
"n"
MP4
=
"n"
EQ
=
"n"
FLAT
=
"n"
FLATWIDE
=
"n"
HLSDIR
=
"HLS"
scales
=
"5760x2880 5120x2560 4096x2048 3840x1920 2880x1440"
degree
=
"180"
...
...
@@ -40,6 +42,14 @@ case "${1}" in
MP4
=
"y"
echo
"Allsizes mode"
;;
flat
)
FLAT
=
"y"
echo
"FLAT"
;;
flatwide
)
FLATWIDE
=
"y"
echo
"FLATWIDE"
;;
equi
)
echo
"Fisheye to Equirectangolar mode"
EQ
=
"y"
...
...
@@ -61,7 +71,7 @@ case "${1}" in
HLS
=
"y"
;;
*
)
echo
"Error. Command has to be hls, mp4, all, equi, equihls, equimp4 or equiall"
echo
"Error. Command has to be
flat, flatwide,
hls, mp4, all, equi, equihls, equimp4 or equiall"
echo
$1
exit
1
...
...
@@ -73,6 +83,22 @@ if [ "$VENC" == "h264_nvenc" ] ; then
PRESET
=
"slow"
fi
if
[
x
"
$FLAT
"
==
x
"y"
]
||
[
x
"
$FLATWIDE
"
==
x
"y"
]
;
then
inf
=
$2
outf
=
$3
h
=
90
v
=
50
if
[
x
"
$FLATWIDE
"
==
x
"y"
]
;
then
h
=
120
v
=
68
fi
ffmpeg
$YES
-i
$inf
-vf
v360
=
fisheye:flat:ih_fov
=
$degree
:iv_fov
=
$degree
:h_fov
=
$h
:v_fov
=
$v
-vcodec
libx264
\
-crf
18
-x264-params
mvrange
=
511
-maxrate
80M
-bufsize
25M
-ac
2
\
-pix_fmt
yuv420p
-c
:a aac
-b
:a 160k
-movflags
faststart
\
-preset
$PRESET
${
outf
}
exit
0
fi
if
[
x
"
$4
"
!=
x
""
]
;
then
left
=
$2
right
=
$3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment