rgb update

parent 28f5d3a6
......@@ -39,13 +39,15 @@ do
fi
# if [ ! -d "video" ]; then
# mkdir video
# fi
cd rgb
if [ ! -d "video" ]; then
mkdir video
fi
cd ..
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"
fi
......@@ -53,6 +55,6 @@ do
done
#cd $JP2DIR"rgb/video/"
#ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p rgb.mp4
cd $JP2DIR"rgb/video/"
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