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?