Page 1 of 1

the delay of "libvlc_new_media_callbacks" created input stream is too long,how to short it?

Posted: 14 Aug 2020 18:38
by pango
my app realtime generate h264 video stream and aac audio stream,I put them into transport stream using ffmpeg,and then create a memory input media using "libvlc_new_media_callbacks()",in the read cb function of "libvlc_new_media_callbacks" I feed the ts stream to libvlc; I create a vlc_media_player instance to play the mem input media,the stream can be played,but the delay time is long,it is 1.5s at least,the delay time I said is the duration from a video frame encoded by my app to that frame displayed by vlc, because I use nvidia gpu to do video encoding so the time for encoding is short, so which component may cause the long delay? How can I shorten it?

another question, in the read callback function of "libvlc_new_media_callbacks()",can I feed raw H264 element stream,or aac element stream to libvlc?

Re: the delay of "libvlc_new_media_callbacks" created input stream is too long,how to short it?

Posted: 02 Sep 2020 13:27
by mfkl
Can you share your code and logs please?
can I feed raw H264 element stream,or aac element stream to libvlc?
well, have you tried?