Posts

Showing posts with the label ogg

VLC stream to render texture

   In VLC, click Stream Select your media, click stream Add a HTTP, choose a port - say "8080", and give it a name, lets say "q" Make sure you activate "transcoding". Select Ogg as the main wrapper. In the video codec tab, select "Theora" (this is the ogg video codec I think). Save this preset, hit next and then finally Stream. I haven't figured out how to stream a playlist yet. Perhaps using VLC in command line mode?   In Unity, create a Videoplayer object. Set it to render to a Render Texture(and assign this render texture to a material on a quad or something). For the video player's source, set it to URL and enter something resembling the following - http://192.168.1.44:8080/q the 192.168.1.44 will be your machine's IP (run ipconfig in command prompt to find out what it actually is). The :8080 is to access the port you specified earlier, the "q" is what we named the stream. Now if you hit play , your object should have th...