I am new in libVLC and use simplest example of using libVLC from https://wiki.videolan.org/LibVLC_Tutorial/ and https://wiki.videolan.org/Stream_to_mem ... _tutorial/. Also of course I learn libvlc documentation(doxygen) here http://www.videolan.org/developers/vlc/ ... ibvlc.html.
I have two questions:
1)How can i get raw compressed packets from libvlc_media when libvlc_media_player is working. I need something like callback for already parsed/demuxed but not yet decompressed packets of video and audio?
2)How to begin play media without decompressing? Just parse input stream...(some form of fake playing)
However may be exists more elegant solutions for my task. So what I want:
- I need to open some media(for example from net) and write it to disk(or to memory buffer) in compressed form. Function "Write to disk/buffer" may be turned on/off in realtime while live stream is going on. I don't want to transcode the stream for saving cpu time.