Where I live it is illegal to use dashcams for this purpose,
whether on cars or bicycles. If you do it and give another
reason that's fine, but it will still not be accepted as
evidence in court. The rarity of good bike lanes does not
improve the situation either.