libVLC on Android hardware acceleration
Posted: 07 Jun 2016 16:43
Hi all,
I am developing an Android application using the 1.9.8 version of libVLC. I was upgrading from a very old version and I'm experiencing a strange behaviour after the upgrade. First of all, not all video files can be played: on serveral devices videos that are not encoded using the H.264 codec (but, e.g., MPEG-4) are not displayed at all, unless I forcibly disable hardware acceleration.
On the other side, if I run the application disabling HW acceleration, I can play even MPEG-4 encoded videos correctly for some time, but after ~1h of playback the device freezes completely. Looking at the logcat my unserstanding is that it seems to never be able to complete buffering at some point, which leads to threads being suspended which in turn causes some deadlock somewhere.
Does anybody have any idea/suggestion/clue about what I can do without converting every single file to H.264?
Any help would be very welcome, thanks in advance to those who will help me. I can provide further details if needed.
I am developing an Android application using the 1.9.8 version of libVLC. I was upgrading from a very old version and I'm experiencing a strange behaviour after the upgrade. First of all, not all video files can be played: on serveral devices videos that are not encoded using the H.264 codec (but, e.g., MPEG-4) are not displayed at all, unless I forcibly disable hardware acceleration.
On the other side, if I run the application disabling HW acceleration, I can play even MPEG-4 encoded videos correctly for some time, but after ~1h of playback the device freezes completely. Looking at the logcat my unserstanding is that it seems to never be able to complete buffering at some point, which leads to threads being suspended which in turn causes some deadlock somewhere.
Does anybody have any idea/suggestion/clue about what I can do without converting every single file to H.264?
Any help would be very welcome, thanks in advance to those who will help me. I can provide further details if needed.