core video output: picture is too late to be displayed

VLC for Android and Chrome OS specific usage questions
Fradow
Blank Cone
Blank Cone
Posts: 22
Joined: 10 Jan 2014 17:44

core video output: picture is too late to be displayed

Postby Fradow » 31 Mar 2014 15:29

Hello,

I have some problems when trying to read a video on a Nexus 5: the video freezes after a few seconds and there is only sound (the video otherwise works well on other devices). When it starts to do that, Logcat shows :

Code: Select all

core video output: picture is too late to be displayed (missing 247 ms)
The missing ms varies from about 50 to 1000.

Do someone know what can causes that, and how to solve it ?

I run LibVLC along with cocos2d-x (a C++ game-engine which uses OpenGL), which obviously use a bit of GPU, could that have a relation ?

Thanks,

flx42
Blank Cone
Blank Cone
Posts: 41
Joined: 17 Feb 2014 12:29

Re: core video output: picture is too late to be displayed

Postby flx42 » 31 Mar 2014 18:09

Can you share a sample of the video?

Are you using HW acceleration?

Fradow
Blank Cone
Blank Cone
Posts: 22
Joined: 10 Jan 2014 17:44

Re: core video output: picture is too late to be displayed

Postby Fradow » 02 Apr 2014 10:29

Hello,

I checked at the start-up, the Hardware acceleration is at 2 (a comment says : // Automatic mode: activate MediaCodec opaque direct rendering for 4.3 and above.), which seems correct since it's a device on Android 4.4.

I have code in case Hardware acceleration fails, but on this particular device, this code is not reached (I checked with breakpoints and a log)

Code: Select all

public void handleMessage(Message msg) { int event = msg.getData().getInt("event", -1); if(event == EventHandler.HardwareAccelerationError) { Log.i(TAG, "Hardware Acceleration Error, disabling hardware acceleration"); try { LibVLC vlc = LibVlcUtil.getLibVlcInstance(); vlc.setHardwareAcceleration(0); vlc.playIndex(0); } catch (LibVlcException e) { e.printStackTrace(); } } }
Here is the full video I am using (25Mb) : http://we.tl/FpvFVVpcBJ

Thanks for your help.

flx42
Blank Cone
Blank Cone
Posts: 41
Joined: 17 Feb 2014 12:29

Re: core video output: picture is too late to be displayed

Postby flx42 » 02 Apr 2014 11:59

Looks fine on my Nexus 5.
Could you try with the VLC app? Use a nightly build such as this one: http://nightlies.videolan.org/build/and ... 2-0108.apk

Fradow
Blank Cone
Blank Cone
Posts: 22
Joined: 10 Jan 2014 17:44

Re: core video output: picture is too late to be displayed

Postby Fradow » 06 Apr 2014 17:15

Thanks for the help flx42.

I just updated LibVLC to the latest version, and now everything works fine. That was probably a bug in the older version I was using up until now.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 12 guests