The first link two links are specifically related to the image (or video) compression tasks.
The TF compression repository instead it is related to multiple data compression use cases.

I am curious if I can replace L1 regularization with autoencoder?

Generally you can use also KL-divergence as sparsity penalty.