I suppose being able able to transcode in real time would depend on how powerful a computer you have and what the capabilities of vlc are. I haven't had any time to experiment and I'm kind of new to vlc (I had been using HandBrake). I pretty much just tried the NASA TV example and didn't have much luck with changing any of the parameters from those given in the example (you have to change the audio codec to aac from mp3, though). My laptop (the world's slowest 2.4GHz Pentium4) was able to transcode NASA TV in real time, for what it's worth.
I thought about adding a real time conversion to the mymedia project so it could display any kind of video, but I have to wonder about that approach. You can use this patched version of vlc to convert a video to HLS, but what's the point really? You still end up with two versions of the same video, although I suppose you could use the patched vlc's capability to automatically delete the .ts segments as they're no longer needed.
Anyway, here's what it takes. The patch didn't work on the latest version of vlc. I didn't spend any time trying to figure out what the problem was, I just tracked down
this one that's referred to in the blog. Next I had to get all of the tools to actually build vlc. I built it natively on win32 which is not recommended (for good reason). Tracking down everything I needed was a nightmare. You have to get the right version of everything. I suppose this would be the case on any platform, but it was definitely a pain for win32. If you want to build under Windows, I recommend
this guide. It will get you pretty close. There were still a few issues I had to overcome. If you plan on trying to attempt a win32 build, let me know.
Since I'm not all that familiar with vlc, I don't know how much of the 33meg (zipped) of the version I built is actually necessary. If you really want to try it, let me know and I'll try to figure a way to get it to you
Hope this helps!
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.