rgb update

parent e02df163
...@@ -40,20 +40,22 @@ do ...@@ -40,20 +40,22 @@ do
cd rgb cd rgb
if [ ! -d "video" ]; then if [ ! -d $fileout2 ]; then
mkdir video mkdir $fileout2
fi fi
cd .. cd ..
if [ ! -e rgb/video/$fileout2"_"$fileout1".jpg" ]; then if [ ! -e rgb/$fileout2/$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/video/$fileout2"_"$fileout1".jpg" gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG rgb/$fileout2"_"$fileout1".tiff" rgb/$fileout2/$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
cd $PRODCUTSDIR cd $PRODCUTSDIR
done done
# if [ ! -d "video" ]; then
# mkdir video
# fi
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