VLC Android subtitles cause video to stutter/ drop frames

This forum is about all development around libVLC.
dykimser
New Cone
New Cone
Posts: 9
Joined: 19 May 2018 11:16

VLC Android subtitles cause video to stutter/ drop frames

Postby dykimser » 21 May 2018 10:16

Thanks for your support.

I have seen video to stutter/ drop frames at the time of subtitle display when playing DVD ISO file with VLC Android player.
I found vlc-android 1.0.1 version has no video frames dropping with subtitle but, 1.1.0 version has video frame dropping problem.
And I also found no problem with my Asus Zenpad 10.1 in which Intel atom cpu is.
Finally, this occur between 1.0.1 and 1.1.0 apk with arm based cpu devices.

I am trying to find from which checkout git version this problem is.
But, I encounter compile error related with gcc compiler.
git revision ad95770 is compile OK.
git revision 7c91fed is compile error in module a52
Could anyone help to solve this compile error?

gcc version 4.8 (GCC)
configure:3495: $? = 0
configure:3484: arm-linux-androideabi-gcc -V >&5
arm-linux-androideabi-gcc: error: unrecognized command line option '-V'
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.

[config.log]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --prefix=/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi --datarootdir=/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/share --includedir=/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include --libdir=/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/lib --build=i686-linux-gnu --host=arm-linux-androideabi --target=arm-linux-androideabi --program-prefix= --enable-static --disable-shared --disable-dependency-tracking --with-pic

## --------- ##
## Platform. ##
## --------- ##

hostname = hlds
uname -m = i686
uname -r = 4.13.0-36-generic
uname -s = Linux
uname -v = #40~16.04.1-Ubuntu SMP Fri Feb 16 23:26:51 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/bin
PATH: /home/hlds/vlc-android/vlc/extras/tools/build/bin
PATH: /home/hlds/vlc-android/vlc/extras/tools/build/bin
PATH: /home/hlds/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin
PATH: /home/hlds/bin
PATH: /home/hlds/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin
PATH: /home/hlds/android-sdk/platform-tools
PATH: /home/hlds/android-sdk/tools
PATH: /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/../arm-linux-androideabi/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2510: checking for a BSD-compatible install
configure:2578: result: /usr/bin/install -c
configure:2589: checking whether build environment is sane
configure:2644: result: yes
configure:2703: checking for arm-linux-androideabi-strip
configure:2730: result: arm-linux-androideabi-strip
configure:2795: checking for a thread-safe mkdir -p
configure:2834: result: /bin/mkdir -p
configure:2841: checking for gawk
configure:2871: result: no
configure:2841: checking for mawk
configure:2857: found /usr/bin/mawk
configure:2868: result: mawk
configure:2879: checking whether make sets $(MAKE)
configure:2901: result: yes
configure:2930: checking whether make supports nested variables
configure:2947: result: yes
configure:3077: checking whether to enable maintainer-specific portions of Makefiles
configure:3086: result: no
configure:3103: checking build system type
configure:3117: result: i686-pc-linux-gnu
configure:3137: checking host system type
configure:3150: result: arm-unknown-linux-androideabi
configure:3179: checking for arm-linux-androideabi-gcc
configure:3206: result: arm-linux-androideabi-gcc
configure:3475: checking for C compiler version
configure:3484: arm-linux-androideabi-gcc --version >&5
arm-linux-androideabi-gcc (GCC) 4.8
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3495: $? = 0
configure:3484: arm-linux-androideabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=arm-linux-androideabi-gcc
COLLECT_LTO_WRAPPER=/home/hlds/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../libexec/gcc/arm-linux-androideabi/4.8/lto-wrapper
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.8/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-cloog=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-isl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-ppl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --disable-ppl-version-check --disable-cloog-version-check --disable-isl-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot --with-binutils-version=2.24 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.8 --with-gdb-version=7.6 --with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/linux-x86/bin/python-config.sh --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.8 --with-bugurl=http://source.android.com/source/report-bugs.html --enable-languages=c,c++ --disable-bootstrap --enable-plugins --enable-libgomp --disable-libsanitizer --enable-gold --enable-graphite=yes --with-cloog-version=0.18.0 --with-isl-version=0.11.1 --enable-eh-frame-hdr-for-static --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default
Thread model: posix
gcc version 4.8 (GCC)
configure:3495: $? = 0
configure:3484: arm-linux-androideabi-gcc -V >&5
arm-linux-androideabi-gcc: error: unrecognized command line option '-V'
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
configure:3495: $? = 1
configure:3484: arm-linux-androideabi-gcc -qversion >&5
arm-linux-androideabi-gcc: error: unrecognized command line option '-qversion'
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
configure:3495: $? = 1
configure:3515: checking whether the C compiler works
configure:3537: arm-linux-androideabi-gcc -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -DNDEBUG -I/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2 -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -DNDEBUG -I/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include -L/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/lib -L/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -lgnustl_static conftest.c >&5
/home/hlds/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/home/hlds/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/home/hlds/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/home/hlds/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status
configure:3541: $? = 1
configure:3579: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "a52dec"
| #define VERSION "0.7.4"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3584: error: in `/home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec':
configure:3586: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=arm-linux-androideabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -DNDEBUG -I/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -DNDEBUG -I/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -L/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/lib -L/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -lgnustl_static'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux-androideabi
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux-androideabi
ac_cv_host=arm-unknown-linux-androideabi
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_CC=arm-linux-androideabi-gcc
ac_cv_prog_STRIP=arm-linux-androideabi-strip
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

A52DEC_CFLAGS=''
ACLOCAL='${SHELL} /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing aclocal-1.15'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR='arm-linux-androideabi-ar'
AS=''
AUTOCONF='${SHELL} /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing autoconf'
AUTOHEADER='${SHELL} /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing autoheader'
AUTOMAKE='${SHELL} /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing automake-1.15'
AWK='mawk'
CC='arm-linux-androideabi-gcc'
CCDEPMODE=''
CFLAGS=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -DNDEBUG -I/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2'
CPP=''
CPPFLAGS=' -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -DNDEBUG -I/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INCLUDES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='arm-linux-androideabi-ld'
LDFLAGS=' -L/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/lib -L/home/hlds/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -lgnustl_static'
LIBA52_CFLAGS=''
LIBA52_LIBS=''
LIBAO_LIBS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='a52dec'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='arm-linux-androideabi-ranlib'
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='arm-linux-androideabi-strip'
VERSION='0.7.4'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-unknown-linux-androideabi'
host_alias='arm-linux-androideabi'
host_cpu='arm'
host_os='linux-androideabi'
host_vendor='unknown'
htmldir='${docdir}'
includedir='/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/hlds/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/a52dec/autotools/install-sh'
libdir='/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/hlds/vlc-android/vlc/contrib/arm-linux-androideabi'
program_transform_name='s&^&&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='arm-linux-androideabi'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "a52dec"
#define VERSION "0.7.4"

configure: exit 77

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby mfkl » 21 May 2018 11:30

I found vlc-android 1.0.1 version
This version is over 3 years old. My only advice is for you to get a recent version (i.e. 3+) from https://code.videolan.org/videolan/vlc-android and start from there.
https://mfkl.github.io

dykimser
New Cone
New Cone
Posts: 9
Joined: 19 May 2018 11:16

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby dykimser » 21 May 2018 11:44

latest version also has same problem.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby mfkl » 21 May 2018 12:44

Do you have any logs to share regarding what you observe?
https://mfkl.github.io

dykimser
New Cone
New Cone
Posts: 9
Joined: 19 May 2018 11:16

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby dykimser » 21 May 2018 18:34

I attach vlc android log when picture frame dropping.

https://drive.google.com/file/d/1kdbTI ... drivesdk

dykimser
New Cone
New Cone
Posts: 9
Joined: 19 May 2018 11:16

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby dykimser » 24 May 2018 12:46

Could any one help to check my log file?

dykimser
New Cone
New Cone
Posts: 9
Joined: 19 May 2018 11:16

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby dykimser » 25 May 2018 14:50

Sorry, I change access permit of log file for everyone to acess.
https://drive.google.com/file/d/1kdbT ... p=drivesdk

pitt66
New Cone
New Cone
Posts: 6
Joined: 12 Nov 2018 11:33

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby pitt66 » 21 Nov 2018 23:03

I can confirm that I observe the same or similar problem. I have the current newest VLC for Android (that is available on play.google.com) running on Xiaomi Mi Box 4K with Android 8 (this is Android TV device).
When I play the movie from shared samba resource there is no problem with stutter or dropped frames whatsoever, but when I turn on subtitles then just before the subtitle is about to be shown there are a couple of frames being dropped. Very annoying. Subtitles file was loaded from .srt file (from the same shared resource).

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby unidan » 23 Nov 2018 09:27

I can confirm that I observe the same or similar problem. I have the current newest VLC for Android (that is available on play.google.com) running on Xiaomi Mi Box 4K with Android 8 (this is Android TV device).
When I play the movie from shared samba resource there is no problem with stutter or dropped frames whatsoever, but when I turn on subtitles then just before the subtitle is about to be shown there are a couple of frames being dropped. Very annoying. Subtitles file was loaded from .srt file (from the same shared resource).

Hi, is it 4k video playback ?

iamviswa
New Cone
New Cone
Posts: 1
Joined: 20 Jan 2019 00:58

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby iamviswa » 20 Jan 2019 01:00

I confirm this issue still noticed with my Bbox Android TV, VLC for Android 3.0.13.
I notice this issue after upgrade my TV to 4K, even when playing the HD content on 4K TV has this problem.

Thanks

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby unidan » 21 Jan 2019 18:41

> I notice this issue after upgrade my TV to 4K, even when playing the HD content on 4K TV has this problem.

Thank you for the information, I'll try to take a look. when playing in 4K resolution, subtitles are rasterized in 4K, not in HD (otherwise you would have scaling artefacts and it's very ugly on text). That's why it suffers from this slow down.

oornmyr
New Cone
New Cone
Posts: 1
Joined: 06 Feb 2019 14:30

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby oornmyr » 06 Feb 2019 16:13

I am also encountering video stuttering just before subtitles are rendered.
I have tested this on 3 different android TV boxes (Android 4, 6 and 7) connected to TV's through HDMI. The TV's does not support 4K resolution.

I cloned and compiled the libvlc-android-samples repo (https://code.videolan.org/videolan/libv ... id-samples), it provided me with both a .apk file and a .aar library.
I have tested both using the apk, "VLC for Android" (version 3.0.96), and the .aar by building my own app on top of the libvlc .aar library. Both suffer from the same stuttering problem.

The problem does not happen on all media. I tested on a few different TV-Channel streams. The issue might be related to resolution.

NAT GEO WILD:
Observed: Stuttering when subtitle renders
Log: Mentions about 450ms of video delay when subtitle renders
Stream resolution: 1920*1080

Travel Channel HD
Observed: Slight stuttering when subtitle renders
Log: Mentions about 60ms of video delay when subtitle renders
Stream resolution: 1920*1080

NRK 1 HD
Observed: Barely noticable stuttering
Log: Mentions about 25ms of video delay
Stream resolution: 1280*720

Discovery World
Observed: No noticable stuttering
Log: No video delay mentioned
Stream resolution: 704*576

Discovery Science
Observed: No noticable stuttering
Log: No video delay mentioned
Stream resolution: 704*576

Log sample with "-vvv option enabled" when subtitles are rendered during playback of the Travel Channel HD stream:
02-06 15:50:50.173 3343-4155/se.ixanon.android.vlctest W/VLC: [f3af1e30/103b] libvlc video output: picture is too late to be displayed (missing 80 ms)
02-06 15:50:50.174 3343-4155/se.ixanon.android.vlctest W/VLC: [f3af1e30/103b] libvlc video output: picture is too late to be displayed (missing 41 ms)
02-06 15:50:50.174 3343-4155/se.ixanon.android.vlctest D/VLC: [f3af1e30/103b] libvlc video output: picture might be displayed late (missing 1 ms)

frabatto
New Cone
New Cone
Posts: 3
Joined: 12 Apr 2019 08:50

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby frabatto » 17 May 2019 12:18

same issue for me on windows 10 and 1080p video, the video often stutter often just before new sub is displayed. very annoying :(

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby unidan » 17 May 2019 15:00

Hi, I'm currently writing the fix, it should be available in the dev branch in the following weeks. Thank you for reporting this.

@frabatto: what is your CPU/system ? please don't double post on many subjects as it becomes really hard to follow after this :)

kejogdelacruz
New Cone
New Cone
Posts: 1
Joined: 22 Aug 2019 01:18

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby kejogdelacruz » 22 Aug 2019 01:21

Hello ... Any update on this issue.. thank you..

elebomin
New Cone
New Cone
Posts: 2
Joined: 25 Sep 2019 16:59

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby elebomin » 25 Sep 2019 17:07

hello,
is there any news about this issue ?
I am facing it on Android vlclib3.1.12 (dl from bintray) with mpeg2 DVB streams, and don"t what to do to improve it ...
Thanks!
Eric

EncryptedEggs
Blank Cone
Blank Cone
Posts: 30
Joined: 02 Mar 2018 00:54

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby EncryptedEggs » 25 Dec 2019 17:48

I just watched an MKV file of a movie and used the "add subtitle file" feature to use an .ass subtitle file and found that there was a brief but noticeable stutter when a new line appeared. Most noticeable when, say, camera is still and an object like a plane is moving across the screen at a constant rate, or also during the movie's credits. I don't know if this happens for subtitles that are inside the MKV file itself, but definitely happens when using an external sub file.

bravia-af8
New Cone
New Cone
Posts: 4
Joined: 04 Mar 2020 09:10

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby bravia-af8 » 04 Mar 2020 09:13

Hello,

I am using Sony Bravia 55af8 Android Oreo and still have the same issue the other guys described above. Could please guys fix it. Thanks a lot.

VLC (3.2.7) Error on Teletext subtitles (UK TV) and same error on DVB subtitles (UK TV)

Update: I've just installed 3.2.9 (beta tester) and the same subtitles stuttering error is still there.

bravia-af8
New Cone
New Cone
Posts: 4
Joined: 04 Mar 2020 09:10

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby bravia-af8 » 09 Mar 2020 09:23

guys, any chance you can fix it ?

urbelt
New Cone
New Cone
Posts: 2
Joined: 14 Mar 2020 15:20

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby urbelt » 14 Mar 2020 15:21

Yes, this needs to be fixed.

marcindloza
New Cone
New Cone
Posts: 1
Joined: 15 Mar 2020 20:24

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby marcindloza » 15 Mar 2020 20:27

I have exactly same issue. When playing video 4K HDR, the video stutters every time new subtitle line is displayed. Switching off subtitles resolve the issue.

juanfri
New Cone
New Cone
Posts: 2
Joined: 19 Apr 2020 12:32

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby juanfri » 19 Apr 2020 12:35

Hello, I have the same issue.. 4K movie files hosted on Synology NAS, playing with AndroidTV on Philips 55OLED903/12 TV. If the subtitles are activated frames are dropped on many subtitle lines.

Saludos
Juan

calfj
New Cone
New Cone
Posts: 1
Joined: 22 Apr 2020 09:47

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby calfj » 22 Apr 2020 10:09

I am getting this on VLC on a Sony TV, and sometimes on VLC on my Windows PC. Especially noticeable with dual-language Chinese subs because there's lots of characters being drawn.
I was worried maybe it's just the TV hardware trying to play high resolution video, I am looking for an alternative player to verify this but I have no idea what else is out there, as I've never used anything other than VLC, hah.

amateurninja
New Cone
New Cone
Posts: 1
Joined: 05 May 2020 05:42

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby amateurninja » 05 May 2020 05:46

I have the same exact problem on my Android TV too.

The video stutters badly every time a subtitle line comes up, when playing 4K HDR videos (I use Network Stream and stream from the Internet, I don't have enough storage to test if this happens for local files too but I expect it to from the previous replies here). Switching off the subtitles fixes this problem. The same video plays fine in MX Player with subtitles on!

Looks like this is a long standing issue. Any hopes of getting a fix for this?

t03apt
New Cone
New Cone
Posts: 1
Joined: 06 May 2020 20:16

Re: VLC Android subtitles cause video to stutter/ drop frames

Postby t03apt » 06 May 2020 20:18

Same issue for me. Works fine with MX Player.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests