You can read more about what I was trying to do here
The fix for the file-name-as-a-data-stream error is to dump each line of the input file into an array first. That is what I am doing below.
*Note: You have to set the IFS to something else if the file names have spaces
while read line; do
done > $errorfile
if [ "$COUNTER" -eq "10000100" ]
echo "First 100 Thumbnails Generated: `date`" > $OUTPUT/videosdone