rgb update

parent 4832a3ed
...@@ -48,7 +48,7 @@ do ...@@ -48,7 +48,7 @@ do
if [ ! -e rgb/$fileout1/$fileout2"_"$fileout1".jpg" ]; then 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" 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 fi
cd $PRODCUTSDIR cd $PRODCUTSDIR
...@@ -57,14 +57,14 @@ done ...@@ -57,14 +57,14 @@ done
# mkdir video # mkdir video
# fi # fi
cd $JP2DIR"rgb/" #cd $JP2DIR"rgb/"
for d in */; do #for d in */; do
# Will print */ if no directories are available # # Will print */ if no directories are available
cd $d # cd $d
VIDEONAME = $(echo $d/ | cut -d"/" -f1) # VIDEONAME = $(echo $d/ | cut -d"/" -f1)
ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p $VIDEONAME.mp4 # ffmpeg -i %*.jpg -c:v libx264 -vf fps=10 -pix_fmt yuvj422p $VIDEONAME.mp4
cd .. # cd ..
done #done
#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