yixia / VitamioBundle

Vitamio for Android
http://www.vitamio.org/en/
Other
5.27k stars 2.07k forks source link

Black screen for HLS stream #148

Open Ltty opened 10 years ago

Ltty commented 10 years ago

I updated from 4.0.0 to 4.2.0. Video playback still works, but HLS streaming does not work anymore. I get a black screen for the stream and afterwards, Vitamio does not stop buffering. However, I don't see any errors in the code. I have the same result with the provided demo. Looks like a buffering issue.

How can I fix this? I am using Video view and Vitamio is initialized.

Here's the logoutput: 05-28 15:19:23.996: I/VitamioPlayer: isNativeLibsInited, APP VERSION: 1923, Vitamio Library version: 1923 05-28 15:19:24.006: I/Vitamio[4.2.1]Player: Copyright (c) YIXIA (http://yixia.com). 05-28 15:19:24.006: I/Vitamio[4.2.1]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com) 05-28 15:19:24.006: I/Vitamio[4.2.1]Player: LOAD FFMPEG START: /data/data/com.test.demo/libs/libffmpeg.so 05-28 15:19:24.006: W/linker(21959): libffmpeg.so has text relocations. This is wasting memory and is a security risk. Please fix. 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: LOAD FFMPEG END: /data/data/acom.test.demo/libs/libffmpeg.so 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: LOAD VVO START: /data/data/com.test.demo/libs/libvvo.9.so 05-28 15:19:24.016: E/Vitamio[4.2.1]Player: FIND_NAME_SYM vvo, render_yuv 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: LOAD VVO END: /data/data/com.test.demo/libs/libvvo.9.so 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: LOAD VAO START: /data/data/acom.test.demo/libs/libvao.0.so 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: LOAD VAO END: /data/data/com.test.demo/libs/libvao.0.so 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: VPLAYER INIT BEGIN 05-28 15:19:24.016: I/Vitamio[4.2.1]Player: Application package name: com.test.demo 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: VPLAYER INIT END 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: Copyright (c) YIXIA (http://yixia.com). 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com) 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: Application package name: com.test.demo 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: Copyright (c) YIXIA (http://yixia.com). 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com) 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: Application package name: com.test.demo 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: PREPARE SIG: 0 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: THREAD PREPARE START 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: THREAD PREPARE ATTACHED 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: Copyright (c) YIXIA (http://yixia.com). 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com) 05-28 15:19:24.036: I/Vitamio[4.2.1]Player: OPEN FILE http://10.5.5.9:8080/live/amba.m3u8 05-28 15:19:24.356: I/Vitamio[4.2.1]Player: META AUDIO: 1. und, META SUBTITLE: 05-28 15:19:24.356: I/Vitamio[4.2.1]Player: WOW: BRILLIANT C COUNT 4 05-28 15:19:24.366: I/Vitamio[4.2.1]Player: OPEN STREAM AUDIO BEGIN 05-28 15:19:24.366: I/Vitamio[4.2.1]Player: Copyright (c) YIXIA (http://yixia.com). 05-28 15:19:24.366: I/Vitamio[4.2.1]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com) 05-28 15:19:24.366: I/Vitamio[4.2.1]Player: Application package name: com.test.demo 05-28 15:19:24.366: I/Vitamio[4.2.1]Player: 2, 48000, 0 05-28 15:19:24.386: I/Vitamio[4.2.1]Player: OPEN STREAM AUDIO END 05-28 15:19:24.386: I/Vitamio[4.2.1]Player: Copyright (c) YIXIA (http://yixia.com). 05-28 15:19:24.386: I/Vitamio[4.2.1]Player: THIS SOFTWARE (Vitamio) IS WORK OF YIXIA (http://yixia.com) 05-28 15:19:24.386: I/Vitamio[4.2.1]Player: WOW: BRILLIANT C COUNT 4 05-28 15:19:24.406: I/Vitamio[4.2.1]Player: OPEN STREAM VIDEO BEGIN 05-28 15:19:24.406: I/Vitamio[4.2.1]Player: OPEN STREAM VIDEO END 05-28 15:19:24.406: I/Vitamio[4.2.1]Player: THREAD PREPARE DETTACHED, ret = 0 05-28 15:19:24.406: I/Vitamio[4.2.1]Player: THREAD PREPARE END 05-28 15:19:24.456: I/VitamioPlayer: Info (701, 0) 05-28 15:19:24.476: I/Vitamio[4.2.1]Player: CC: SwsScale c 05-28 15:19:26.428: I/VitamioPlayer: Info (901, 124) 05-28 15:19:28.471: I/VitamioPlayer: Info (901, 84) 05-28 15:19:30.513: I/VitamioPlayer: Info (901, 111) 05-28 15:19:32.725: I/VitamioPlayer: Info (901, 89) 05-28 15:19:33.966: I/VitamioPlayer: Info (702, 0) 05-28 15:19:34.937: I/VitamioPlayer: Info (901, 99) 05-28 15:19:36.990: I/VitamioPlayer: Info (901, 110) 05-28 15:19:39.142: I/VitamioPlayer: Info (901, 90) 05-28 15:19:41.344: I/VitamioPlayer: Info (901, 104)

crossle commented 10 years ago

You can use Shou broadcast a video to me .

Ltty commented 10 years ago

Do you want me to send you a video of the black screen?

crossle commented 10 years ago

Yes, video url and device info

Ltty commented 10 years ago

The video comes from a GoPro camera, it's not on the internet. We tried with HTC One, Galaxy S4, S3 and S5. I can try to put the stream on the internet and forward it but I think this will not work very well.

crossle commented 10 years ago

I need the video info.

Ltty commented 10 years ago

I finally found a way to actually provide you with the stream, I will post the link to it later today.

Ltty commented 10 years ago

Hi @crossle , I am still unable to provide you with the live stream because it is a different network the camera is feeding to, so I cannot forward it. However, I extracted the playlist file as well as some sample segments of the stream, you can download it from here: https://dl.dropboxusercontent.com/u/12647354/gopro-hls.rar

As already said, streaming this source was working well on previous versions.

crossle commented 10 years ago

You video yuvj420p ? It deprecated pixel format used. Can you change ti to yuv42p? It would good.

Ltty commented 10 years ago

No, I cannot change this. This is the raw camera stream. I don't have influence on the stream. Also, most of the CCTV cameras will use yuv.

crossle commented 10 years ago

You said streaming this source was working well on previous versions? same stream ?

Ltty commented 10 years ago

yes, i am still using an older version of vitamio. so it works well with 4.0 and 4.1. only 4.2 is not working.

crossle commented 10 years ago

Can you send me some log when you use Vitamio 4.1?

Ltty commented 10 years ago

Hi Crossle, I am sorry, it works on 4.0 but I did not test 4.1. The log of 4.0 is the log on top of this post.

crossle commented 10 years ago

@Ltty The log of top is Vitamio 4.2.1.

Ltty commented 10 years ago

Oh, my mistake. I am very sorry, yes I will produce a log for 4.0

AndyKD commented 8 years ago

Is your problem resolved. I am getting the same issue.