you can use the find function provided in string, to search for the index of the comma then make to sub strings one 0 to comma position -1 and the other from the comma +1 to the end. find returns the position of the character if found else it returns a value = to string::npos.
int location = name.find(",",0);//start search from 0
if(location != string::npos) // do what u want
cause i was thinking if you take the sequence and save only you may paralleliz the processing so that for example 3 processes running, 1 process as the master that sends the frame to other processes and each process takes a frame to process-different frames- and send the result back to the master who saves them to the disk, that if the average didn't work for you .
but the problem with parallel is that there will be some communication overhead between processes but you will be able to process several frames at a time.
i didn't try Gaussian in blurring but i tried the average filter, it's applied by convolution, the filter is matrix of 1's and multiply each element in the filter with it's corresponding element in the picture then sum and divide by the size of the filter and that will be the middle element and also you can avoid the multiplication by conditions in the code, i think the little improvement over the Gaussian would be not using the powering and the too much multiplication.
i have a question: do you have to display the blurred frames after the operation or they are captured and processed and stored?