Insert video & audio packet programmatically to libvlc

This forum is about all development around libVLC.
mhheydarchi
Blank Cone
Blank Cone
Posts: 10
Joined: 23 Jun 2015 17:30

Insert video & audio packet programmatically to libvlc

Postby mhheydarchi » 23 Jun 2015 17:41

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Insert video & audio packet programmatically to libvlc

Postby Rémi Denis-Courmont » 23 Jun 2015 18:03

LibVLC 3.0 supports media items using custom read callbacks. You cannot feed "packets" as such though, only a byte stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mhheydarchi
Blank Cone
Blank Cone
Posts: 10
Joined: 23 Jun 2015 17:30

Re: Insert video & audio packet programmatically to libvlc

Postby mhheydarchi » 23 Jun 2015 20:24

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?

fabsther
Blank Cone
Blank Cone
Posts: 13
Joined: 04 Jun 2015 16:32

Re: Insert video & audio packet programmatically to libvlc

Postby fabsther » 29 Jul 2015 16:34

Did you found a solution ? I'm looking for it too ..

mhheydarchi
Blank Cone
Blank Cone
Posts: 10
Joined: 23 Jun 2015 17:30

Re: Insert video & audio packet programmatically to libvlc

Postby mhheydarchi » 15 Aug 2015 17:04

Did you found a solution ? I'm looking for it too ..
Hi
No, I haven't found any solution yet.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Insert video & audio packet programmatically to libvlc

Postby Rémi Denis-Courmont » 16 Aug 2015 07:18

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests