I have this string:
Stream #0:0: Video: vp6f, yuv420p, 852x478, 1638 kb/s, 25 tbr, 1k tbn, 1k tbc
and I would like to extract 25
25
Your current sed command would work well if you tweak the regex a bit:
sed -r 's/.+ (\S+) tbr,.+/\1/'