Page 1 of 1
Insert video & audio packet programmatically to libvlc
Posted: 23 Jun 2015 17:41
by mhheydarchi
Hi
Is there any way that can read stream and put video and audio packet manually into libvlc input buffer.
i have a ts stream. i want to play any service manually by insert packets into buffer libvlc .
i know libvlc can play all of services, but i want to feed libvlc input buffer in code.
please help me on this case.
Re: Insert video & audio packet programmatically to libvlc
Posted: 23 Jun 2015 18:03
by Rémi Denis-Courmont
LibVLC 3.0 supports media items using custom read callbacks. You cannot feed "packets" as such though, only a byte stream.
Re: Insert video & audio packet programmatically to libvlc
Posted: 23 Jun 2015 20:24
by mhheydarchi
LibVLC 3.0 supports media items using custom read callbacks. You cannot feed "packets" as such though, only a byte stream.
Ok, Thanks for reply, I want to use my readback method and return byte. My means of packet is video and audio structure in ts stream.
is there any sample for libvlc 3.0 ?
I want to use it in c#, is there any problem on it?
Re: Insert video & audio packet programmatically to libvlc
Posted: 29 Jul 2015 16:34
by fabsther
Did you found a solution ? I'm looking for it too ..
Re: Insert video & audio packet programmatically to libvlc
Posted: 15 Aug 2015 17:04
by mhheydarchi
Did you found a solution ? I'm looking for it too ..
Hi
No, I haven't found any solution yet.
Re: Insert video & audio packet programmatically to libvlc
Posted: 16 Aug 2015 07:18
by Rémi Denis-Courmont
You can the callbacks to input an MPEG-TS stream. Of course, if you don't call the C API directly, you need up-to-date bindings.