@echo off echo. echo ************************************************************************************ echo. echo NOTES: echo. echo (a) Do not run the script "batch_convert.bat" directly, instead run "main.bat". echo. echo (b) See ".\failed_movies.txt" after the script ends for movies that were aborted due to an error. echo. echo ************************************************************************************ echo. set SESSION_LIST=%1 set IN_VID_DRIVE=\\champ\asl-data4\ASL_lexicon_project\asl-data2\ set OUT_MOV_DIR=%IN_VID_DRIVE%\quicktime\ rem set ANNOTATION_FILE=%IN_VID_DRIVE%\quicktime\annotate\SignStream_annotations\annotations_with_compounds\processed_annotations\%SESSION_LIST%.csv set ANNOTATION_FILE=NA_annotation set IN_VIDEO_EXTENSION=vid rem set ANNOTATION_FILE=X:\quicktime\annotate\jaimee-annotation\jaimee_asl_2008_10_10.csv rem set IN_VID_DRIVE=V:\CS_lab_sessions\ rem set IN_VIDEO_EXTENSION=mov rem Examples: rem set ANNOTATION_FILE=NA_annotation rem set ANNOTATION_FILE=X:\quicktime\annotate\tyler-annotation\tyler_asl_2008_05_29b.csv rem **************************************************************************************** rem Do not make changes to lines below rem **************************************************************************************** echo Running initial setup. echo. call .\setup_vid2mov.bat if %ANNOTATION_FILE% NEQ NA_annotation ( rem process_csv.exe %ANNOTATION_FILE% rem transformAslAnnotation.exe %SESSION_LIST% %ANNOTATION_FILE% ) rem goto END_BATCH_CONVERT rem call .\backup_stuff.bat set SESSION_ID=1 set CAMERAS_LIST=1 2 3 set FPS=60 set BRIGHTNESS_CHANGE=0 set GLYPHS_TXT=%VIDEO_COMPRESSOR%\bitmap_glyphs\glyphs.txt set GLYPHS_PGM=%VIDEO_COMPRESSOR%\bitmap_glyphs\glyphs_10x20.pgm FOR %%S IN (%SESSION_LIST%) DO ( echo %%S set IN_DIR=%IN_VID_DRIVE%\%%S set OUT_DIR=%OUT_MOV_DIR%\%%S mkdir !OUT_DIR! 2> temp\null FOR %%C IN (%CAMERAS_LIST%) DO ( set /a CAMERA=%%C if !CAMERA! == 4 ( set FPS=30 ) else ( set FPS=60 ) call .\run_vid2avi.bat ) ) :END_BATCH_CONVERT