As my target was :
I have successfully accomplished first two tasks, but now i want to stream the processed video/image over network from the memory buffer as source, memory buffer is a iplimage variable, it could Mat variable. So, if somebody know how to stream such a raw data using libvlc then please help out, or point me to the right direction or sample code or link. Would be thankful..!
Try imem, then you can use memory input as the stream source. By implementing the get-release callbacks of the module, you can point where your buffer is and set the values for decode-presentation timestamps. Here are the prototypes for get and release:
int imemGetCallback(void *userdata, const char* cookie, int64_t *dts, int64_t *pts, unsigned *flags, size_t *bufferSize, void **buffer);
int imemReleaseCallback(void *data, const char *cookie, size_t bufferSize, void *buffer);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With