Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 31-Mar-17 6:24am
Comments
Phan Thái Trung 31-Mar-17 20:00pm    
Anyone can help me?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900