VLC on buildroot image could not load codec plugins while they're presented

0

We've managed to build up a buildroot X11 image for Raspberry Pi 4 with vlc package enabled(beside ffmpeg + libopenh264 and other dependencies). so we can run vlc like this vlc --verbose=2 --file-logging --logfile=vlc-log.txt xbody.mp4 while ffmpeg libavcodec.so and vlc libavcodec_plugin.so are present on target image and also we can play with gst-play-1.0.

But VLC show error and fails to play media:

Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported

And also as expected vlc --list doesn't list codec module.

So why it can not load codec modules?

ldd /usr/lib/vlc/plugins/codec/libavcodec_plugin.so:

    ld-uClibc.so.1 => /lib/ld-uClibc.so.1 (0xb6f90000)
checking sub-depends for '/usr/lib/libvlccore.so.9'
checking sub-depends for '/usr/lib/libiconv.so.2'
checking sub-depends for '/usr/lib/libavcodec.so.58'
checking sub-depends for '/usr/lib/libavutil.so.56'
checking sub-depends for '/lib/libatomic.so.1'
checking sub-depends for '/lib/libc.so.0'
    libvlccore.so.9 => /usr/lib/libvlccore.so.9 (0x00000000)
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00000000)
    libavcodec.so.58 => /usr/lib/libavcodec.so.58 (0x00000000)
    libavutil.so.56 => /usr/lib/libavutil.so.56 (0x00000000)
    libatomic.so.1 => /lib/libatomic.so.1 (0x00000000)
    libc.so.0 => /lib/libc.so.0 (0x00000000)
    /lib/ld-uClibc.so.1 => /lib/ld-uClibc.so.1 (0x00000000)
    /lib/ld-uClibc.so.1 => /lib/ld-uClibc.so.1 (0x00000000)

ldd /usr/lib/vlc/plugins/demux/libavformat_plugin.so:

    ld-uClibc.so.1 => /lib/ld-uClibc.so.1 (0xb6fb4000)
checking sub-depends for '/usr/lib/libvlccore.so.9'
checking sub-depends for '/usr/lib/libiconv.so.2'
checking sub-depends for '/usr/lib/libavformat.so.58'
checking sub-depends for '/usr/lib/libavcodec.so.58'
checking sub-depends for '/usr/lib/libavutil.so.56'
checking sub-depends for '/usr/lib/libz.so.1'
checking sub-depends for '/lib/libatomic.so.1'
checking sub-depends for '/lib/libc.so.0'
    libvlccore.so.9 => /usr/lib/libvlccore.so.9 (0x00000000)
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00000000)
    libavformat.so.58 => /usr/lib/libavformat.so.58 (0x00000000)
    libavcodec.so.58 => /usr/lib/libavcodec.so.58 (0x00000000)
    libavutil.so.56 => /usr/lib/libavutil.so.56 (0x00000000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00000000)
    libatomic.so.1 => /lib/libatomic.so.1 (0x00000000)
    libc.so.0 => /lib/libc.so.0 (0x00000000)
    /lib/ld-uClibc.so.1 => /lib/ld-uClibc.so.1 (0x00000000)
    /lib/ld-uClibc.so.1 => /lib/ld-uClibc.so.1 (0x00000000)

VLC logs:

-- logger module started --
main debug: VLC media player - 3.0.8 Vetinari
main debug: Copyright © 1996-2019 the VideoLAN team
main debug: revision 3.0.8-0-gf350b6b5a7
main debug: configured with ./configure  '--target=arm-buildroot-linux-uclibcgnueabihf' '--host=arm-buildroot-linux-uclibcgnueabihf' '--build=x86_64-pc-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--program-prefix=' '--disable-gtk-doc' '--disable-gtk-doc-html' '--disable-doc' '--disable-docs' '--disable-documentation' '--with-xmlto=no' '--with-fop=no' '--disable-dependency-tracking' '--enable-ipv6' '--disable-nls' '--enable-shared' '--disable-a52' '--disable-addonmanagermodules' '--disable-aom' '--disable-aribb25' '--disable-aribsub' '--disable-asdcp' '--disable-bpg' '--disable-caca' '--disable-chromaprint' '--disable-chromecast' '--disable-crystalhd' '--disable-dc1394' '--disable-dca' '--disable-decklink' '--disable-dsm' '--disable-dv1394' '--disable-fluidlite' '--disable-fluidsynth' '--disable-gme' '--disable-goom' '--disable-jack' '--disable-jpeg' '--disable-kai' '--disable-kate' '--disable-kva' '--disable-libplacebo' '--disable-linsys' '--disable-mfx' '--disable-microdns' '--disable-mmal' '--disable-mtp' '--disable-notify' '--disable-projectm' '--disable-schroedinger' '--disable-shine' '--disable-shout' '--disable-sndio' '--disable-spatialaudio' '--disable-srt' '--disable-telx' '--disable-tiger' '--disable-twolame' '--disable-vdpau' '--disable-vsxu' '--disable-wasapi' '--disable-x262' '--disable-zvbi' '--enable-run-as-root' '--disable-static' '--disable-altivec' '--disable-sse' '--disable-alsa' '--disable-avahi' '--disable-dbus' '--enable-faad' '--enable-avcodec' '--disable-postproc' '--disable-swscale' '--disable-flac' '--disable-freerdp' '--enable-gst-decode' '--enable-harfbuzz' '--enable-gles2' '--disable-opencv' '--enable-opus' '--disable-archive' '--disable-libass' '--disable-bluray' '--disable-libcddb' '--disable-dvbpsi' '--disable-dvdnav' '--disable-dvdread' '--enable-libgcrypt' '--disable-mad' '--disable-matroska' '--disable-mod' '--disable-libmpeg2' '--disable-nfs' '--enable-png' '--disable-svg' '--disable-svgdec' '--disable-samplerate' '--disable-secret' '--disable-soxr' '--disable-sftp' '--disable-sid' '--disable-theora' '--disable-upnp' '--disable-libva' '--disable-vnc' '--enable-vorbis' '--disable-v4l2' '--disable-vpx' '--enable-xcb' '--enable-libxml2' '--disable-live555' '--disable-lua' '--enable-mpg123' '--disable-mpc' '--disable-ncurses' '--disable-pulse' '--enable-qt' '--enable-skins2' '--disable-sdl-image' '--disable-smbclient' '--disable-speex' '--disable-taglib' '--disable-tremor' '--enable-udev' '--disable-wayland' '--enable-x264' '--disable-x265' '--with-x' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=arm-buildroot-linux-uclibcgnueabihf' 'target_alias=arm-buildroot-linux-uclibcgnueabihf' 'CC=/home/iman/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc' 'CFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3  ' 'LDFLAGS=' 'LIBS=-latomic' 'CPPFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' 'CPP=/home/iman/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-cpp' 'CXX=/home/iman/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-g++' 'CXXFLAGS=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3  ' 'PKG_CONFIG=/home/iman/buildroot/output/host/bin/pkg-config'
main debug: searching plug-in modules
main debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
main warning: cannot read /usr/lib/vlc/plugins/plugins.dat: No such file or directory
main debug: recursively browsing `/usr/lib/vlc/plugins'
main warning: cannot load module `/usr/lib/vlc/plugins/access/libavio_plugin.so' ((null))
main warning: cannot load module `/usr/lib/vlc/plugins/demux/libavformat_plugin.so' ((null))
main warning: cannot load module `/usr/lib/vlc/plugins/packetizer/libpacketizer_avparser_plugin.so' ((null))
main warning: cannot load module `/usr/lib/vlc/plugins/video_output/libgles2_plugin.so' ((null))
main warning: cannot load module `/usr/lib/vlc/plugins/video_output/libegl_x11_plugin.so' ((null))
main warning: cannot load module `/usr/lib/vlc/plugins/codec/libavcodec_plugin.so' ((null))
main debug: plug-ins loaded: 362 modules
main debug: opening config file (/home/.config/vlc/vlcrc)
main debug: looking for logger module matching "any": 3 candidates
file debug: opening logfile `vlc-log.txt'
main debug: using logger module "file"
main debug: translation test: code is "C"
main debug: looking for keystore module matching "memory": 2 candidates
main debug: using keystore module "memory"
main debug: CPU has capabilities ARM_NEON FPU 
main debug: creating audio output
main debug: looking for audio output module matching "any": 3 candidates
main debug: no audio output modules matched
main error: no suitable audio output module
main debug: looking for interface module matching "htt,none": 11 candidates
main debug: no interface modules matched
main error: no suitable interface module
main error: interface "htt,none" initialization failed
main debug: looking for interface module matching "logger,none": 11 candidates
logger error: The logger interface no longer exists.
logger: As of VLC version 0.9.0, use --file-logging to write logs to a file.
logger: Use --syslog to send logs to the system logger.
main debug: no interface modules matched
main error: no suitable interface module
main error: interface "logger,none" initialization failed
main debug: Creating an input for preparsing 'xbody.mp4'
main debug: looking for interface module matching "hotkeys,none": 11 candidates
main debug: using interface module "hotkeys"
main debug: looking for interface module matching "globalhotkeys,none": 11 candidates
main debug: using interface module "xcb_hotkeys"
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main debug: looking for interface module matching "any": 11 candidates
main debug: looking for meta fetcher module matching "any": 0 candidates
main debug: no meta fetcher modules
main debug: looking for art finder module matching "any": 1 candidates
main debug: no art finder modules matched
qt debug: Boring first Run Wizard
main debug: looking for extension module matching "any": 0 candidates
main debug: no extension modules
qt error: Unable to load extensions module
main debug: using interface module "qt"
main debug: processing request item: null, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting playback of new item
main debug: resyncing on xbody.mp4
main debug: xbody.mp4 is at 0
main debug: creating new input thread
main debug: Creating an input for 'xbody.mp4'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `file:///home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4' gives access `file' demux `any' path `/home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4'
main debug: looking for meta fetcher module matching "any": 0 candidates
main debug: no meta fetcher modules
main debug: creating demux: access='file' demux='any' location='/home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4' file='/home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4'
main debug: looking for access_demux module matching "file": 7 candidates
main debug: no access_demux modules matched
main debug: looking for art finder module matching "any": 1 candidates
main debug: creating access: file:///home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4
main debug:  (path: /home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4)
main debug: looking for access module matching "file": 18 candidates
main debug: using access module "filesystem"
main debug: looking for stream_filter module matching "prefetch,cache_read": 25 candidates
main debug: no art finder modules matched
cache_read debug: Using stream method for AStream*
cache_read debug: starting pre-buffering
cache_read debug: received first data after 0 ms
cache_read debug: pre-buffering done 1024 bytes in 0s - 6802 KiB/s
main debug: using stream_filter module "cache_read"
main debug: looking for stream_filter module matching "any": 25 candidates
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 0 candidates
main debug: no stream_directory modules
main debug: attachment of directory-extractor failed for file:///home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4
main debug: looking for stream_filter module matching "record": 25 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='any' location='/home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4' file='/home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4'
main debug: looking for demux module matching "mp4": 45 candidates
mp4 debug: dumping root Box "root"
mp4 debug: |   + ftyp size 32 offset 0
mp4 debug: |   + free size 8 offset 32
mp4 debug: |   + mdat size 28676881 offset 40
mp4 debug: |   + moov size 99484 offset 28676921
mp4 debug: |   |   + mvhd size 108 offset 28676929
mp4 debug: |   |   + trak size 44080 offset 28677037
mp4 debug: |   |   |   + tkhd size 92 offset 28677045
mp4 debug: |   |   |   + edts size 36 offset 28677137
mp4 debug: |   |   |   |   + elst size 28 offset 28677145
mp4 debug: |   |   |   + mdia size 43944 offset 28677173
mp4 debug: |   |   |   |   + mdhd size 32 offset 28677181
mp4 debug: |   |   |   |   + hdlr size 45 offset 28677213
mp4 debug: |   |   |   |   + minf size 43859 offset 28677258
mp4 debug: |   |   |   |   |   + vmhd size 20 offset 28677266
mp4 debug: |   |   |   |   |   + dinf size 36 offset 28677286
mp4 debug: |   |   |   |   |   |   + dref size 28 offset 28677294
mp4 debug: |   |   |   |   |   |   |   + url  size 12 offset 28677310
mp4 debug: |   |   |   |   |   + stbl size 43795 offset 28677322
mp4 debug: |   |   |   |   |   |   + stsd size 171 offset 28677330
mp4 debug: |   |   |   |   |   |   |   + avc1 size 155 offset 28677346
mp4 debug: |   |   |   |   |   |   |   |   + avcC size 53 offset 28677432
mp4 debug: |   |   |   |   |   |   |   |   + pasp size 16 offset 28677485
mp4 debug: |   |   |   |   |   |   + stts size 24 offset 28677501
mp4 debug: |   |   |   |   |   |   + stss size 176 offset 28677525
mp4 debug: |   |   |   |   |   |   + ctts size 18424 offset 28677701
mp4 debug: |   |   |   |   |   |   + stsc size 40 offset 28696125
mp4 debug: |   |   |   |   |   |   + stsz size 12480 offset 28696165
mp4 debug: |   |   |   |   |   |   + stco size 12472 offset 28708645
mp4 debug: |   |   + trak size 55190 offset 28721117
mp4 debug: |   |   |   + tkhd size 92 offset 28721125
mp4 debug: |   |   |   + edts size 36 offset 28721217
mp4 debug: |   |   |   |   + elst size 28 offset 28721225
mp4 debug: |   |   |   + mdia size 55054 offset 28721253
mp4 debug: |   |   |   |   + mdhd size 32 offset 28721261
mp4 debug: |   |   |   |   + hdlr size 45 offset 28721293
mp4 debug: |   |   |   |   + minf size 54969 offset 28721338
mp4 debug: |   |   |   |   |   + smhd size 16 offset 28721346
mp4 debug: |   |   |   |   |   + dinf size 36 offset 28721362
mp4 debug: |   |   |   |   |   |   + dref size 28 offset 28721370
mp4 debug: |   |   |   |   |   |   |   + url  size 12 offset 28721386
mp4 debug: |   |   |   |   |   + stbl size 54909 offset 28721398
mp4 debug: |   |   |   |   |   |   + stsd size 103 offset 28721406
mp4 debug: |   |   |   |   |   |   |   + mp4a size 87 offset 28721422
mp4 debug: |   |   |   |   |   |   |   |   + esds size 51 offset 28721458
mp4 debug: |   |   |   |   |   |   + stts size 24 offset 28721509
mp4 debug: |   |   |   |   |   |   + stsc size 20752 offset 28721533
mp4 debug: |   |   |   |   |   |   + stsz size 21496 offset 28742285
mp4 debug: |   |   |   |   |   |   + stco size 12472 offset 28763781
mp4 debug: |   |   |   |   |   |   + sgpd size 26 offset 28776253
mp4 debug: |   |   |   |   |   |   + sbgp size 28 offset 28776279
mp4 debug: |   |   + udta size 98 offset 28776307
mp4 debug: |   |   |   + meta size 90 offset 28776315
mp4 debug: |   |   |   |   + hdlr size 33 offset 28776327
mp4 debug: |   |   |   |   + ilst size 45 offset 28776360
mp4 debug: |   |   |   |   |   + ctoo size 37 offset 28776368
mp4 debug: |   |   |   |   |   |   + data size 29 offset 28776376
mp4 debug: ISO Media (isom) version 512.
mp4 debug: found 2 tracks
mp4 warning: elst box found
mp4 debug:    - [0] duration=124600ms media time=40ms) rate=1.0
mp4 debug: track[Id 0x1] read 3114 chunk
mp4 warning: STTS table of 1 entries
qt debug: IM: Setting an input
mp4 warning: CTTS table of 2301 entries
mp4 debug: track[Id 0x1] read 3115 samples length:124s
main debug: selecting program id=0
mp4 debug: adding track[Id 0x1] video (enable) language undef
mp4 warning: elst box found
mp4 debug:    - [0] duration=124668ms media time=0ms) rate=1.0
mp4 debug: track[Id 0x2] read 3114 chunk
mp4 warning: STTS table of 1 entries
mp4 debug: track[Id 0x2] read 5369 samples length:124s
mp4 debug: adding track[Id 0x2] audio (enable) language undef
main debug: using demux module "mp4"
main debug: looking for a subtitle file in /home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/
main debug: looking for video decoder module matching "any": 9 candidates
gstdecode debug: Using decodebin? yes 
gstdecode error: no suitable decoder found
main debug: no video decoder modules matched
main error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
main debug: killing decoder fourcc `    '
main debug: looking for audio decoder module matching "any": 14 candidates
main debug: using audio decoder module "faad"
main debug: looking for meta reader module matching "any": 0 candidates
main debug: no meta reader modules
main debug: `file:///home/media/usbhd-sda1/xbodyactive/MEDIA/therapeutic/xbody.mp4' successfully opened
mp4 debug: elst (0) gives 0ms (movie)-> 0ms (track)
main debug: Buffering 0%
faad warning: decoded zero sample
main debug: Buffering 83%
main debug: creating audio output
main debug: looking for audio output module matching "any": 3 candidates
main debug: no audio output modules matched
main error: no suitable audio output module
main error: failed to create audio output
main debug: creating audio output
main debug: looking for audio output module matching "any": 3 candidates
main debug: no audio output modules matched
main error: no suitable audio output module
main error: failed to create audio output
main debug: creating audio output
.
.
.
main debug: looking for audio output module matching "any": 3 candidates
main debug: no audio output modules matched
main error: no suitable audio output module
main error: failed to create audio output
main debug: creating audio output
main debug: looking for audio output module matching "any": 3 candidates
main debug: no audio output modules matched
main error: no suitable audio output module
main error: failed to create audio output
main debug: creating audio output
main debug: looking for audio output module matching "any": 3 candidates
main debug: no audio output modules matched
main error: no suitable audio output module
main error: failed to create audio output
vlc
libvlc
buildroot
asked on Stack Overflow Mar 26, 2020 by IMAN4K

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0