I am coding a Android App with the input is rstp link (rtsp://58.233.189.40:554/video1+audio1). Output is its video+sound
My code is based on the library org.videolan.libvlc. almost it's like this: http://www.programcreek.com/java-api-examples/index.php?source_dir=multiplevlc-master%2Fsrc%2Fcom%2Fambi%2Fmultiplevlc%2FVideoFragment.java
Unfortunately, it can dispaly a video but no sound.
Log cat:
core audio output: playback too early (-43324): down-sampling
core audio output: playback way too early (-126407): playing silence
core audio output: timing screwed (drift: -107826 us): stopping resampling
core video output: picture is too late to be displayed (missing 1155 ms)
What I have tried:
I tried to modify some code in http://www.programcreek.com/java-api-examples/index.php?source_dir=multiplevlc-master%2Fsrc%2Fcom%2Fambi%2Fmultiplevlc%2FVideoFragment.java like below:
libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_FULL); ---> libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_DISABLE)
The result is that it just can play video+sound in about first 3s, then video without sound for the rest. .
Does anyone have any suggestion for me?
Many thanks.