My question is exactly the same as this one, except that... is it possible to achieve the goal with LibVLC? Thanks!
By the way, are there any full-fledged tutorials or books for LibVLC? There are plenty modules mentioned in this page, but without a tutorial it's difficult/impossible for me to understand how they work. So far, the only tutorial I found is https://wiki.videolan.org/LibVLC_Tutorial/ which is very primitive and says nothing about demuxing, decoding, encoding or muxing. Any information or suggestion is highly appreciated!