Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoSentinel
Project
Project
Details
Activity
Releases
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
Mario Chirinos Colunga
GeoSentinel
Commits
4afd7acf
Commit
4afd7acf
authored
May 27, 2018
by
Mario Chirinos Colunga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rgb update
parent
4832a3ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
productToRGBJPG.sh
tools/productToRGBJPG.sh
+9
-9
No files found.
tools/productToRGBJPG.sh
View file @
4afd7acf
...
...
@@ -48,7 +48,7 @@ do
if
[
!
-e
rgb/
$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
]
;
then
gdal_translate
-projwin
$BOX
-projwin_srs
WGS84
-ot
Byte
-scale
0 4096 0 255
-of
JPEG rgb/
$fileout2
"_"
$fileout1
".tiff"
rgb/
$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
convert rgb/
$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
-resize
640x480
\!
rgb/
$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
convert rgb/
$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
-resize
640x480
\!
rgb/
$fileout1
/
$fileout2
"_"
$fileout1
"
_t
.jpg"
fi
cd
$PRODCUTSDIR
...
...
@@ -57,14 +57,14 @@ done
# mkdir video
# fi
cd
$JP2DIR
"rgb/"
for
d
in
*
/
;
do
# Will print */ if no directories are available
cd
$d
VIDEONAME
=
$(
echo
$d
/ |
cut
-d
"/"
-f1
)
ffmpeg
-i
%
*
.jpg
-c
:v libx264
-vf
fps
=
10
-pix_fmt
yuvj422p
$VIDEONAME
.mp4
cd
..
done
#
cd $JP2DIR"rgb/"
#
for d in */; do
#
# Will print */ if no directories are available
#
cd $d
#
VIDEONAME = $(echo $d/ | cut -d"/" -f1)
#
ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p $VIDEONAME.mp4
#
cd ..
#
done
#ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p rgb.mp4
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