rgb update

parent 28f5d3a6
...@@ -39,13 +39,15 @@ do ...@@ -39,13 +39,15 @@ do
fi fi
# if [ ! -d "video" ]; then cd rgb
# mkdir video if [ ! -d "video" ]; then
# fi mkdir video
fi
cd ..
if [ ! -e video/$fileout2"_"$fileout1".jpg" ]; then if [ ! -e video/$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/$fileout2"_"$fileout1".jpg" gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG rgb/$fileout2"_"$fileout1".tiff" rgb/video/$fileout2"_"$fileout1".jpg"
# convert video/$fileout2"_"$fileout1".jpg" -resize 640x480\! video/$fileout2"_"$fileout1".jpg" # convert video/$fileout2"_"$fileout1".jpg" -resize 640x480\! video/$fileout2"_"$fileout1".jpg"
fi fi
...@@ -53,6 +55,6 @@ do ...@@ -53,6 +55,6 @@ do
done done
#cd $JP2DIR"rgb/video/" cd $JP2DIR"rgb/video/"
#ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p rgb.mp4 ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p rgb.mp4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment