I think a Magmeter (flowmeter) can output line velocity. I'm not sure how the pellets would affect the accuracy though? I'm not an expert by any means, but there are a lot of different meters out there that can do some pretty neat stuff. You may find one that would be able to sense the pellets as the come past? Usually my customers specify what they want, but I have used Endress an Hauser and Anderson.
I agree with sreid about the clear section of pipe with different vision systems. I have sold a number of sight-glasses in tubing before...7cm is getting on the large side if you have significant pressures though.
What kind of pellet frequency are you looking at? could there be multiple pellets in the same cross-section of tubing at the same time? And what do you anticipate the line velocity to be?