[vlc-devel] Play HTTP Live Streaming with VLC Player.

Hongyi Zhao hongyi.zhao at gmail.com
Thu Feb 4 03:16:14 UTC 2021


On Thu, Feb 4, 2021 at 9:09 AM Hongyi Zhao <hongyi.zhao at gmail.com> wrote:
>
> On Wed, Feb 3, 2021 at 11:07 PM Francois Cartegnie <fcvlcdev at free.fr> wrote:
> >
> > Le 03/02/2021 à 16:01, Hongyi Zhao a écrit :
> > > On Wed, Feb 3, 2021 at 10:48 PM Alexandre Janniaux <ajanni at videolabs.io> wrote:
> > >>
> > >> Hi,
> > >>
> > >> You'll need to attach verbose log (-vv) to provide the
> > >> full information about why it is stuck.
> > >
> > > Thanks a lot for your suggestion. Considering that the verbose log is
> > > rather huge, I put it at my git temp repo:
> > >
> > > https://github.com/hongyi-zhao/temp/blob/master/vlc/cvlc.log
> > >
> > > Thank anyone here for your time and help.
> > >
> > > Regards
> > >
> >
> > zero segments, zero content.
>
> What is the reason and how to fix it?

I confirmed that the VLC relevant problem is caused by the cert used
by me as shown below:


$ cvlc -vv https://localhost:8443/live/surveillance.m3u8
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[000055b421ef15b0] main libvlc debug: VLC media player - 3.0.9.2 Vetinari
[000055b421ef15b0] main libvlc debug: Copyright © 1996-2020 the VideoLAN team
[000055b421ef15b0] main libvlc debug: revision 3.0.9.2-0-gd4c1aefe4d
[000055b421ef15b0] main libvlc debug: configured with ./configure
'--build=x86_64-linux-gnu' '--prefix=/usr'
'--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
'--infodir=${prefix}/share/info' '--sysconfdir=/etc'
'--localstatedir=/var' '--disable-silent-rules'
'--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run'
'--disable-maintainer-mode' '--disable-dependency-tracking'
'--disable-debug' '--config-cache' '--disable-update-check'
'--enable-fast-install' '--docdir=/usr/share/doc/vlc'
'--with-binary-version=3.0.9.2-1' '--enable-a52' '--enable-aa'
'--enable-aom' '--enable-aribsub' '--enable-avahi' '--enable-bluray'
'--enable-caca' '--enable-chromaprint' '--enable-chromecast'
'--enable-dbus' '--enable-dca' '--enable-dvbpsi' '--enable-dvdnav'
'--enable-faad' '--enable-flac' '--enable-fluidsynth'
'--enable-freetype' '--enable-fribidi' '--enable-gles2'
'--enable-gnutls' '--enable-harfbuzz' '--enable-jack' '--enable-kate'
'--enable-libass' '--enable-libmpeg2' '--enable-libxml2'
'--enable-lirc' '--enable-live555' '--enable-mad' '--enable-matroska'
'--enable-mod' '--enable-mpc' '--enable-mpg123' '--enable-mtp'
'--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus'
'--enable-pulse' '--enable-qt' '--enable-realrtsp'
'--enable-samplerate' '--enable-sdl-image' '--enable-sftp'
'--enable-shine' '--enable-shout' '--enable-skins2' '--enable-sndio'
'--enable-soxr' '--enable-spatialaudio' '--enable-speex'
'--enable-srt' '--enable-svg' '--enable-svgdec' '--enable-taglib'
'--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vdpau'
'--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-x265'
'--enable-zvbi' '--with-kde-solid=/usr/share/solid/actions/'
'--disable-crystalhd' '--disable-d3d11va' '--disable-decklink'
'--disable-directx' '--disable-dsm' '--disable-dxva2'
'--disable-fdkaac' '--disable-fluidlite' '--disable-freerdp'
'--disable-goom' '--disable-gst-decode' '--disable-libtar'
'--disable-macosx' '--disable-macosx-avfoundation'
'--disable-macosx-qtkit' '--disable-microdns' '--disable-mfx'
'--disable-opencv' '--disable-projectm' '--disable-schroedinger'
'--disable-sparkle' '--disable-telx' '--disable-vpx' '--disable-vsxu'
'--disable-wasapi' '--enable-alsa' '--enable-dc1394' '--enable-dv1394'
'--enable-libplacebo' '--enable-linsys' '--enable-nfs'
'--enable-omxil' '--enable-udev' '--enable-v4l2' '--enable-wayland'
'--enable-libva' '--enable-vcd' '--enable-smbclient' '--disable-oss'
'--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
-fdebug-prefix-map=/build/vlc-sUx6OI/vlc-3.0.9.2=.
-fstack-protector-strong -Wformat -Werror=format-security '
'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now
-Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-sUx6OI/vlc-3.0.9.2=.
-fstack-protector-strong -Wformat -Werror=format-security '
'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-sUx6OI/vlc-3.0.9.2=.
-fstack-protector-strong -Wformat -Werror=format-security'
[000055b421ef15b0] main libvlc debug: searching plug-in modules
[000055b421ef15b0] main libvlc debug: loading plugins cache file
/usr/lib/x86_64-linux-gnu/vlc/plugins/plugins.dat
[000055b421ef15b0] main libvlc debug: recursively browsing
`/usr/lib/x86_64-linux-gnu/vlc/plugins'
[000055b421ef15b0] main libvlc debug: plug-ins loaded: 521 modules
[000055b421ef15b0] main libvlc debug: opening config file
(/home/werner/.config/vlc/vlcrc)
[000055b421ef1900] main logger debug: looking for logger module
matching "any": 4 candidates
[000055b421ef1900] main logger debug: using logger module "console"
[000055b421ef15b0] main libvlc debug: translation test: code is "C"
[000055b421f8a120] main keystore debug: looking for keystore module
matching "memory": 4 candidates
[000055b421f8a120] main keystore debug: using keystore module "memory"
[000055b421ef15b0] main libvlc debug: CPU has capabilities MMX MMXEXT
SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 FPU
[000055b421f91c00] main input debug: Creating an input for 'Media Library'
[000055b421f91c00] main input debug: Input is a meta file: disabling
unneeded options
[000055b421f91c00] main input debug: using timeshift granularity of 50 MiB
[000055b421f91c00] main input debug: using default timeshift path
[000055b421f91c00] main input debug:
`file/directory:///home/werner/.local/share/vlc/ml.xspf' gives access
`file' demux `directory' path `/home/werner/.local/share/vlc/ml.xspf'
[000055b421f8be90] main input source debug: creating demux:
access='file' demux='directory'
location='/home/werner/.local/share/vlc/ml.xspf'
file='/home/werner/.local/share/vlc/ml.xspf'
[000055b421f8d550] main demux debug: looking for access_demux module
matching "file": 17 candidates
[000055b421f8d550] main demux debug: no access_demux modules matched
[000055b421fb1170] main stream debug: creating access:
file:///home/werner/.local/share/vlc/ml.xspf
[000055b421fb1170] main stream debug:  (path:
/home/werner/.local/share/vlc/ml.xspf)
[000055b421fb1170] main stream debug: looking for access module
matching "file": 28 candidates
[000055b421fb1170] main stream debug: using access module "filesystem"
[000055b421fb2310] main stream debug: looking for stream_filter module
matching "prefetch,cache_read": 26 candidates
[000055b421fb2310] cache_read stream debug: Using stream method for AStream*
[000055b421fb2310] cache_read stream debug: starting pre-buffering
[000055b421fb2310] cache_read stream debug: received first data after 0 ms
[000055b421fb2310] cache_read stream debug: pre-buffering done 296
bytes in 0s - 8501 KiB/s
[000055b421fb2310] main stream debug: using stream_filter module "cache_read"
[000055b421fb33f0] main stream debug: looking for stream_filter module
matching "any": 26 candidates
[000055b421fb33f0] playlist stream debug: using XSPF playlist reader
[000055b421fb33f0] main stream debug: using stream_filter module "playlist"
[000055b421fb33f0] main stream debug: stream filter added to 0x55b421fb2310
[000055b421fb6950] main stream debug: looking for stream_filter module
matching "any": 26 candidates
[000055b421fb6950] main stream debug: no stream_filter modules matched
[000055b421f8e570] main stream_directory debug: looking for
stream_directory module matching "any": 1 candidates
[000055b421f8e570] main stream_directory debug: no stream_directory
modules matched
[000055b421f8be90] main input source debug: attachment of
directory-extractor failed for
file:///home/werner/.local/share/vlc/ml.xspf
[000055b421fb6950] main stream debug: looking for stream_filter module
matching "record": 26 candidates
[000055b421fb6950] main stream debug: using stream_filter module "record"
[000055b421f8be90] main input source debug: creating demux:
access='file' demux='directory'
location='/home/werner/.local/share/vlc/ml.xspf'
file='/home/werner/.local/share/vlc/ml.xspf'
[000055b421f8d550] main demux debug: looking for demux module matching
"directory": 55 candidates
[000055b421f8d550] main demux debug: using demux module "directory"
[000055b421fbaf00] main demux meta debug: looking for meta reader
module matching "any": 2 candidates
[000055b421fbaf00] lua demux meta debug: Trying Lua scripts in
/home/werner/.local/share/vlc/lua/meta/reader
[000055b421fbaf00] lua demux meta debug: Trying Lua scripts in
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/reader
[000055b421fbaf00] lua demux meta debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/reader/filename.luac
[000055b421fbaf00] lua demux meta debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/reader
[000055b421fbaf00] main demux meta debug: no meta reader modules matched
[000055b421f91c00] main input debug:
`file/directory:///home/werner/.local/share/vlc/ml.xspf' successfully
opened
[000055b421fc6500] main xml reader debug: looking for xml reader
module matching "any": 1 candidates
[000055b421fc6500] main xml reader debug: using xml reader module "xml"
[000055b421f91c00] main input debug: EOF reached
[000055b421f8d550] main demux debug: removing module "directory"
[000055b421fb6950] main stream debug: removing module "record"
[000055b421fb33f0] main stream debug: removing module "playlist"
[000055b421fb2310] main stream debug: removing module "cache_read"
[000055b421fb1170] main stream debug: removing module "filesystem"
[000055b421f8f420] main playlist debug: creating audio output
[000055b421fc6140] main audio output debug: looking for audio output
module matching "any": 6 candidates
[000055b421fc6140] vlcpulse audio output debug: using library version 13.99.0
[000055b421fc6140] vlcpulse audio output debug:  (compiled with
version 13.99.0, protocol 33)
[000055b421fc6140] vlcpulse audio output debug: connected locally to
/run/user/1000/pulse/native as client #46
[000055b421fc6140] vlcpulse audio output debug: using protocol 33,
server protocol 33
[000055b421fc6140] pulse audio output debug: adding sink 1:
alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo
(Audio Adapter (Unitek Y-247A) Analog Stereo)
[000055b421fc6140] pulse audio output debug: adding sink 3:
alsa_output.pci-0000_00_1b.0.hdmi-stereo (Built-in Audio Digital
Stereo (HDMI))
[000055b421fc6140] pulse audio output debug: adding sink 4:
alsa_output.pci-0000_02_00.1.hdmi-stereo-extra1 (TU104 HD Audio
Controller Digital Stereo (HDMI 2))
[000055b421fc6140] main audio output debug: using audio output module "pulse"
[000055b421f8f420] main playlist debug: keeping audio output
[000055b421fce410] main interface debug: looking for interface module
matching "dbus,none": 19 candidates
[000055b421fce410] dbus interface debug: listening on dbus as:
org.mpris.MediaPlayer2.vlc
[000055b421fce410] main interface debug: using interface module "dbus"
[000055b421fd2940] main interface debug: looking for interface module
matching "hotkeys,none": 19 candidates
[000055b421fd2940] main interface debug: using interface module "hotkeys"
[000055b421fd3310] main interface debug: looking for interface module
matching "globalhotkeys,none": 19 candidates
[000055b421fce410] dbus interface debug: Getting All properties
[000055b421fd3310] main interface debug: using interface module "xcb_hotkeys"
[000055b421fd4210] main interface debug: looking for interface module
matching "dummy": 19 candidates
[000055b421fd4210] dummy interface: using the dummy interface module...
[000055b421fd4210] main interface debug: using interface module "dummy"
[000055b421f8f420] main playlist debug: processing request item: null,
node: Playlist, skip: 0
[000055b421f8f420] main playlist debug: rebuilding array of current -
root Playlist
[000055b421f8f420] main playlist debug: rebuild done - 1 items, index -1
[000055b421f8f420] main playlist debug: starting playback of new item
[000055b421f8f420] main playlist debug: resyncing on surveillance.m3u8
[000055b421f8f420] main playlist debug: surveillance.m3u8 is at 0
[000055b421f8f420] main playlist debug: creating new input thread
[00007ff104000c80] main input debug: Creating an input for 'surveillance.m3u8'
[000055b421f8f420] main playlist debug: requesting art for new input thread
[00007ff104000c80] main input debug: using timeshift granularity of 50 MiB
[00007ff104000c80] main input debug: using default timeshift path
[00007ff104000c80] main input debug:
`https://localhost:8443/live/surveillance.m3u8' gives access `https'
demux `any' path `localhost:8443/live/surveillance.m3u8'
[00007ff0f8000fa0] main input source debug: creating demux:
access='https' demux='any'
location='localhost:8443/live/surveillance.m3u8' file='(null)'
[00007ff0f8001140] main demux debug: looking for access_demux module
matching "https": 17 candidates
[00007ff0f8001140] main demux debug: no access_demux modules matched
[00007ff0f8001610] main stream debug: creating access:
https://localhost:8443/live/surveillance.m3u8
[00007ff0f0000c20] main meta fetcher debug: looking for meta fetcher
module matching "any": 1 candidates
[00007ff0f8001610] main stream debug: looking for access module
matching "https": 28 candidates
[00007ff0f0000c20] lua meta fetcher debug: Trying Lua scripts in
/home/werner/.local/share/vlc/lua/meta/fetcher
[00007ff0f0000c20] lua meta fetcher debug: Trying Lua scripts in
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
[00007ff0f0000c20] lua meta fetcher debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/fetcher
[00007ff0f0000c20] main meta fetcher debug: no meta fetcher modules matched
[00007ff0f0000c20] main art finder debug: looking for art finder
module matching "any": 2 candidates
[00007ff0f80024b0] main tls client debug: looking for tls client
module matching "any": 1 candidates
[00007ff0f0000c20] lua art finder debug: Trying Lua scripts in
/home/werner/.local/share/vlc/lua/meta/art
[00007ff0f0000c20] lua art finder debug: Trying Lua scripts in
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
[00007ff0f0000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
[00007ff0f0000c20] lua art finder debug: skipping script (unmatched
scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
[00007ff0f0000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
[00007ff0f0000c20] lua art finder debug: skipping script (unmatched
scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
[00007ff0f0000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
[00007ff0f0000c20] lua art finder debug: skipping script (unmatched
scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
[00007ff0f0000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
[00007ff0f0000c20] lua art finder debug: skipping script (unmatched
scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
[00007ff0f0000c20] lua art finder debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/art
[00007ff0f0000c20] main art finder debug: no art finder modules matched
[00007ff0f4000c20] main meta fetcher debug: looking for meta fetcher
module matching "any": 1 candidates
[00007ff0f4000c20] lua meta fetcher debug: Trying Lua scripts in
/home/werner/.local/share/vlc/lua/meta/fetcher
[00007ff0f4000c20] lua meta fetcher debug: Trying Lua scripts in
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
[00007ff0f4000c20] lua meta fetcher debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/fetcher
[00007ff0f4000c20] main meta fetcher debug: no meta fetcher modules matched
[00007ff0f4000c20] main art finder debug: looking for art finder
module matching "any": 2 candidates
[00007ff0f4000c20] lua art finder debug: Trying Lua scripts in
/home/werner/.local/share/vlc/lua/meta/art
[00007ff0f4000c20] lua art finder debug: Trying Lua scripts in
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
[00007ff0f4000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
[00007ff0f4000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
[00007ff0f80024b0] gnutls tls client debug: using GnuTLS version 3.6.13
[00007ff0f4000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
[00007ff0f4000c20] lua art finder debug: Trying Lua playlist script
/usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
[00007ff0f4000c20] lua art finder debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/art
[00007ff0f4000c20] main art finder debug: no art finder modules matched
[000055b421fce410] dbus interface debug: Getting All properties
[000055b421fce410] dbus interface debug: Getting All properties
[00007ff0f80024b0] gnutls tls client debug: loaded 138 trusted CAs from system
[00007ff0f80024b0] main tls client debug: using tls client module "gnutls"
[00007ff0f80024b0] main tls client debug: resolving localhost ...
[00007ff0f80024b0] gnutls tls client debug: TLS handshake: Resource
temporarily unavailable, try again.
[00007ff0f80024b0] gnutls tls client debug: TLS handshake: Success.
[00007ff0f80024b0] gnutls tls client debug:  - safe renegotiation
(RFC5746) enabled
[00007ff0f80024b0] gnutls tls client debug:  - extended master secret
(RFC7627) enabled
[00007ff0f80024b0] gnutls tls client debug:  - false start (RFC7918) enabled
[00007ff0f80024b0] gnutls tls client error: Certificate verification
failure: The certificate is NOT trusted. The certificate issuer is
unknown. The certificate chain uses expired certificate. The name in
the certificate does not match the expected.
[00007ff0f80024b0] main tls client error: TLS session handshake error
[00007ff0f80024b0] main tls client error: connection error: Resource
temporarily unavailable
[00007ff0f8001610] access stream error: HTTP connection failure
[00007ff0f8001610] main stream debug: no access modules matched
[00007ff104000c80] main input error: Your input can't be opened
[00007ff104000c80] main input error: VLC is unable to open the MRL
'https://localhost:8443/live/surveillance.m3u8'. Check the log for
details.
[000055b421f8f420] main playlist debug: dead input
[000055b421f8f420] main playlist debug: changing item without a
request (current 0/1)
[000055b421f8f420] main playlist debug: nothing to play



I'm not sure if the problem can be fixed by using an automated service
like https://letsencrypt.org to renew the cert in an interval with
something like certbot. Any hints will be highly appreciated.

Regards,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao at gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China


More information about the vlc-devel mailing list