I am struggling to reconcile the two definitions for current density.
Definition one: the current is the flux of the current density vectors through a surface: $$I = \iint_{S} \vec{J} \cdot d\vec{S}$$
Definition two: the current is the small change in charge through a surface over the small change in time that passed: $$I=\frac{dq}{dt}$$
I cannot manage to mathematically transform one into the other. Expanding the first definition: $$I=\iint_{S} \vec{J} \cdot d\vec{S}=\iint_{S} \rho \vec{v} \cdot d\vec{S}$$
We can see the real meaning of this integral now. Charge density is the charge contained in a point (really in an infinitesimal volume (Mass-density functions: how is there mass-density at points?). Whatever surface you're measuring the current through, you're measuring the velocity vector of point charges, scaled by the points' respective charge. The flux integral considers all of the influences together of these scaled velocity vectors.
I could use some help completing my mental picture. How is what I just described the same as the rate of change of the charge through the surface? An explanation of that is preferred or maybe a mathematical transformation from one form to the other. A huge thanks to anyone willing to help!
Dear moderators: this post Equivalent formulas for electric current density has a similar title but is not at all the same question in substance.