convert mp4 file from cameras to avi that could be read by imagej

for batch processing 
MP4 convert to ImageJ readable avi file

for %i in (*.MP4) do ffmpeg -i "%i" -pix_fmt nv12 -f avi -vcodec rawvideo "%~ni.avi"

the "raw video" codec is too large for sharing 

change to mjpeg for smaller size 


for %i in (*.MP4) do ffmpeg -i "%i" -f avi -vcodec mjpeg "%~ni.avi"