libvlc - how to increase channel switching speed for HLS stream

This forum is about all development around libVLC.
cardinaltm
New Cone
New Cone
Posts: 3
Joined: 05 Jan 2020 22:28

libvlc - how to increase channel switching speed for HLS stream

Postby cardinaltm » 05 Jan 2020 22:54

Hello,
I integrated libvlc into android using the package
org.videolan.android:libvlc-allhaps.2.3

and I encountered such a problem that when turn on the HLS stream, it takes about 3-5 seconds, it takes a very long time, especially for an IPTV application.
but with UDP Multicast and HTTP streams everything works fine, and the inclusion speed is good

I tested the same HLS stream with libvlc and exoplayer, and as a result, exoplayer got 1 second, while libvlc 3-5 seconds
please help me how can increase the display speed of the stream.

here is my libvlc configuration:

Code: Select all

rgs.add("-vvv"); args.add("--avcodec-dr"); args.add("--clock-jitter=1500"); args.add("--live-caching=1500"); args.add("--network-caching=1500"); args.add("--file-caching=3000"); args.add("--no-drop-late-frames"); args.add("--no-skip-frames"); args.add("--no-sout-smem-time-sync"); args.add("--sout-mp4-faststart"); args.add("--sout-x264-partitions=fast"); args.add("--adaptive-logic=nearoptimal"); args.add("--adaptive-use-access"); args.add("--avcodec-threads=10"); args.add("--sout-x264-psy"); args.add("--aout=opensles"); args.add("--demuxdump-append"); args.add("--avcodec-hw=d3d11va");

I also tried without configurations, same problem

Debug:

Code: Select all

[b42a1bb0/600a] libvlc demux: enabling pid 1123 from program 1100 [b42a1bb0/600a] libvlc demux: enabling pcr pid 1110 from program 1100 [b42a1bb0/600a] libvlc demux: first packet for pid=1110 cc=0xa [b42a1bb0/600a] libvlc demux: first packet for pid=1120 cc=0x9 [b42a1bb0/600a] libvlc demux: first packet for pid=1121 cc=0xa [b42a1bb0/600a] libvlc demux: first packet for pid=1122 cc=0xf [b42a1bb0/600a] libvlc demux: first packet for pid=1123 cc=0x9 ****************** most of the time spent here ****************** D/VLC: [a6a9dab0/600f] libvlc stream: end of stream D/VLC: [a6a9dab0/6009] libvlc stream: removing module "prefetch" [a6a9d790/6009] libvlc stream: removing module "access" D/VLC: [b42a12f0/6009] libvlc stream: Retrieving http://x.x.x.x:8000/play/channelName/s59e10nl.ts @0 [a6a9d650/6009] libvlc stream: creating access: http://x.x.x.x:8000/play/channelName/s59e10nl.ts [a6a9d650/6009] libvlc stream: looking for access module matching "http": 24 candidates

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

Re: libvlc - how to increase channel switching speed for HLS stream

Postby mfkl » 08 Jan 2020 03:42

org.videolan.android:libvlc-allhaps.2.3
Not sure where you got this from, but you might wanna try with a recent libvlc package (3+)
https://mfkl.github.io

cardinaltm
New Cone
New Cone
Posts: 3
Joined: 05 Jan 2020 22:28

Re: libvlc - how to increase channel switching speed for HLS stream

Postby cardinaltm » 08 Jan 2020 11:32

sorry, its right, we use it
org.videolan.android:libvlc-all:3.2.3


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests