Screenly / Anthias

The world's most popular open source digital signage project.
https://anthias.screenly.io
GNU General Public License v2.0
2.33k stars 596 forks source link

MP4 plays but crashes | Raspberry Pi 4 #1833

Open macxq opened 8 months ago

macxq commented 8 months ago

Overview of the Issue

The MP4 video plays but stops at a completely random moment. This issue always occurs, usually after just a few repetitions, often the first time

docker restart screenly-anthias-viewer-1 helps to recover

Reproduction Steps

Add mp4 video asset

Environment

Option Value
Load Average 0.17
Free Space 23G
Memory Total: 1731 / Used: 368 / Free: 694 / Shared: 29 / Buff: 30 / Available: 1265
Uptime 0 days and 0.34 hours
Monitor Info 0xa [HDMI CUSTOM RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
Display Power (CEC) None
Raspberry Pi Model Raspberry Pi 4 Model B Rev 1.1
Generating asset-list...
Showing asset cm.mp4 (video)
Current url is null
[ee41ccc0] mmal_codec decoder: VCSM init succeeded: CMA
[ee41ccc0] main decoder error: buffer deadlock prevented
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
CONTAINER ID   NAME                           CPU %     MEM USAGE / LIMIT     MEM %     NET I/O           BLOCK I/O         PIDS
c088708a50c1   screenly-anthias-viewer-1      8.73%     113.5MiB / 1.353GiB   8.20%     867kB / 1.16MB    0B / 8.19kB       73
a12b407e3b52   screenly-anthias-celery-1      0.20%     89.56MiB / 1.691GiB   5.17%     843kB / 878kB     11.5MB / 4.1kB    12
23368a8558e8   screenly-anthias-nginx-1       0.00%     13.36MiB / 1.691GiB   0.77%     17.4MB / 16.9MB   11MB / 1.72MB     5
a1ff3ece7b6e   screenly-anthias-websocket-1   0.86%     27.34MiB / 1.691GiB   1.58%     514kB / 673kB     19.2MB / 0B       5
ad5831c7ee0e   screenly-redis-1               0.48%     4.039MiB / 1.691GiB   0.23%     924kB / 840kB     3.33MB / 0B       4
d28bdc433f59   screenly-anthias-server-1      0.09%     80.75MiB / 1.691GiB   4.66%     17.7MB / 1.2MB    50.9MB / 16.5MB   10
vpetersson commented 8 months ago

Can you run ffprobe on the video?

macxq commented 8 months ago

@vpetersson sure 👍

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './screenly_assets/05edf45f55ac4a149fb6f61f9b528b4e.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:00:15.90, start: 0.000000, bitrate: 1203 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 1199 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
macxq commented 8 months ago

I get into container and made vlc more verbose:

VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
[010bab88] main libvlc debug: VLC media player - 3.0.17.4 Vetinari
[010bab88] main libvlc debug: Copyright © 1996-2022 the VideoLAN team
[010bab88] main libvlc debug: revision 3.0.13-8-g41878ff4f2
[010bab88] main libvlc debug: configured with ./configure  '--build=arm-linux-gnueabihf' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/arm-linux-gnueabihf' '--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.17.4-0+deb10u2+rpt1' '--enable-a52' '--enable-aa' '--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-svg' '--enable-svgdec' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-x265' '--enable-zvbi' '--with-kde-solid=/usr/share/solid/actions/' '--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-srt' '--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-vcd' '--enable-smbclient' '--disable-oss' '--disable-crystalhd' '--disable-mmx' '--disable-sse' '--enable-neon' '--enable-mmal' '--enable-mmal-avcodec' '--disable-vdpau' '--disable-libva' '--enable-dav1d' '--disable-aom' '--disable-altivec' 'build_alias=arm-linux-gnueabihf' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-iTPUTR/vlc-3.0.17.4=. -fstack-protector-strong -Wformat -Werror=format-security ' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-iTPUTR/vlc-3.0.17.4=. -fstack-protector-strong -Wformat -Werror=format-security ' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/vlc-iTPUTR/vlc-3.0.17.4=. -fstack-protector-strong -Wformat -Werror=format-security'
[010bab88] main libvlc debug: searching plug-in modules
[010bab88] main libvlc debug: loading plugins cache file /usr/lib/arm-linux-gnueabihf/vlc/plugins/plugins.dat
[010bab88] main libvlc debug: recursively browsing `/usr/lib/arm-linux-gnueabihf/vlc/plugins'
[010bab88] main libvlc debug: plug-ins loaded: 501 modules
[010bab88] main libvlc debug: opening config file (/data/.config/vlc/vlcrc)
[010bada8] main logger debug: looking for logger module matching "any": 4 candidates
[010bada8] main logger debug: using logger module "console"
[010bab88] main libvlc debug: translation test: code is "C"
[01120380] main keystore debug: looking for keystore module matching "memory": 4 candidates
[01120380] main keystore debug: using keystore module "memory"
[010bab88] main libvlc debug: CPU has capabilities FPU
[01123e08] main playlist debug: creating audio output
[01115468] main audio output debug: looking for audio output module matching "any": 6 candidates
[01115468] vlcpulse audio output debug: using library version 12.2.0
[01115468] vlcpulse audio output debug:  (compiled with version 12.2.0, protocol 32)
Home directory not accessible: Permission denied
[01115468] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[01115468] alsa audio output debug: Available ALSA PCM devices:
[01115468] alsa audio output debug: Discard all samples (playback) or generate zero samples (capture) (null)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Default Audio Device (default:CARD=b1)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Default Audio Device (sysdefault:CARD=b1)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Direct sample mixing device (dmix:CARD=b1,DEV=0)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Direct sample mixing device (dmix:CARD=b1,DEV=1)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Direct sample snooping device (dsnoop:CARD=b1,DEV=0)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Direct sample snooping device (dsnoop:CARD=b1,DEV=1)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Direct hardware device without any conversions (hw:CARD=b1,DEV=0)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Direct hardware device without any conversions (hw:CARD=b1,DEV=1)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Hardware device with all software conversions (plughw:CARD=b1,DEV=0)
[01115468] alsa audio output debug: bcm2835 HDMI 1, bcm2835 HDMI 1 Hardware device with all software conversions (plughw:CARD=b1,DEV=1)
[01115468] alsa audio output debug: bcm2835 Headphones, bcm2835 Headphones Default Audio Device (default:CARD=Headphones)
[01115468] alsa audio output debug: bcm2835 Headphones, bcm2835 Headphones Default Audio Device (sysdefault:CARD=Headphones)
[01115468] alsa audio output debug: bcm2835 Headphones, bcm2835 Headphones Direct sample mixing device (dmix:CARD=Headphones,DEV=0)
[01115468] alsa audio output debug: bcm2835 Headphones, bcm2835 Headphones Direct sample snooping device (dsnoop:CARD=Headphones,DEV=0)
[01115468] alsa audio output debug: bcm2835 Headphones, bcm2835 Headphones Direct hardware device without any conversions (hw:CARD=Headphones,DEV=0)
[01115468] alsa audio output debug: bcm2835 Headphones, bcm2835 Headphones Hardware device with all software conversions (plughw:CARD=Headphones,DEV=0)
[01115468] main audio output debug: using audio output module "alsa"
[01123e08] main playlist debug: keeping audio output
[0111c008] main interface debug: looking for interface module matching "dbus,none": 17 candidates
[0111c008] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0111c008] main interface debug: no interface modules matched
[0111c008] main interface error: no suitable interface module
[010bab88] main libvlc error: interface "dbus,none" initialization failed
[f6700638] main input debug: Creating an input for preparsing 'e71fec8e941b46b2a7bdce1cbd81ec77.mp4'
[0111c008] main interface debug: looking for interface module matching "hotkeys,none": 17 candidates
[0111c008] main interface debug: using interface module "hotkeys"
[01124d00] main interface debug: looking for interface module matching "globalhotkeys,none": 17 candidates
[01124d00] main interface debug: no interface modules matched
[01124d00] main interface error: no suitable interface module
[010bab88] main libvlc error: interface "globalhotkeys,none" initialization failed
[010bab88] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[01124d00] main interface debug: looking for interface module matching "any": 17 candidates
error: XDG_RUNTIME_DIR not set in the environment.
[01124d00] [cli] lua interface debug: Found lua interface script: /usr/lib/arm-linux-gnueabihf/vlc/lua/intf/cli.luac
[01124d00] [cli] main interface debug: using interface module "lua"
[01123e08] main playlist debug: processing request item: null, node: Playlist, skip: 0
[01123e08] main playlist debug: rebuilding array of current - root Playlist
[01123e08] main playlist debug: rebuild done - 1 items, index -1
[01123e08] main playlist debug: starting playback of new item
[01123e08] main playlist debug: resyncing on e71fec8e941b46b2a7bdce1cbd81ec77.mp4
[01123e08] main playlist debug: e71fec8e941b46b2a7bdce1cbd81ec77.mp4 is at 0
[01123e08] main playlist debug: creating new input thread
[01124d00] [cli] lua interface: Listening on host "*console".
VLC media player 3.0.17.4 Vetinari
Command Line Interface initialized. Type `help' for help.
> [f2800668] main input debug: Creating an input for 'e71fec8e941b46b2a7bdce1cbd81ec77.mp4'
[f630fde8] main meta fetcher debug: looking for meta fetcher module matching "any": 1 candidates
[f630fde8] lua meta fetcher debug: Trying Lua scripts in /data/.local/share/vlc/lua/meta/fetcher
[01123e08] main playlist debug: requesting art for new input thread
[f630fde8] lua meta fetcher debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/fetcher
[f630fde8] lua meta fetcher debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
[f630fde8] main meta fetcher debug: no meta fetcher modules matched
[f2800668] main input debug: using timeshift granularity of 50 MiB
[f2800668] main input debug: using default timeshift path
[f630fde8] main art finder debug: looking for art finder module matching "any": 2 candidates
[f2800668] main input debug: `file:///data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4' gives access `file' demux `any' path `/data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4'
[f2600918] main input source debug: creating demux: access='file' demux='any' location='/data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4' file='/data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4'
[f2600a58] main demux debug: looking for access_demux module matching "file": 17 candidates
[f2600a58] main demux debug: no access_demux modules matched
[f2600dd8] main stream debug: creating access: file:///data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4
[f2600dd8] main stream debug:  (path: /data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4)
[f2600dd8] main stream debug: looking for access module matching "file": 28 candidates
[f2600dd8] main stream debug: using access module "filesystem"
[f2600fe8] main stream debug: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
[f2600fe8] cache_read stream debug: Using stream method for AStream*
[f630fde8] lua art finder debug: Trying Lua scripts in /data/.local/share/vlc/lua/meta/art
[f2600fe8] cache_read stream debug: starting pre-buffering
[f2600fe8] cache_read stream debug: received first data after 0 ms
[f2600fe8] cache_read stream debug: pre-buffering done 1024 bytes in 0s - 859 KiB/s
[f2600fe8] main stream debug: using stream_filter module "cache_read"
[f26012c8] main stream debug: looking for stream_filter module matching "any": 26 candidates
[f630fde8] lua art finder debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art
[f26012c8] lua stream debug: Trying Lua scripts in /data/.local/share/vlc/lua/playlist
[f26012c8] lua stream debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/anevia_streams.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/anevia_xml.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/appletrailers.luac
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/bbc_co_uk.luac
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/cue.luac
[f630fde8] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[f630fde8] main art finder debug: no art finder modules matched
[f630fde8] main meta fetcher debug: looking for meta fetcher module matching "any": 1 candidates
[f630fde8] lua meta fetcher debug: Trying Lua scripts in /data/.local/share/vlc/lua/meta/fetcher
[f630fde8] lua meta fetcher debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/fetcher
[f630fde8] lua meta fetcher debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
[f630fde8] main meta fetcher debug: no meta fetcher modules matched
[f630fde8] main art finder debug: looking for art finder module matching "any": 2 candidates
[f630fde8] lua art finder debug: Trying Lua scripts in /data/.local/share/vlc/lua/meta/art
[f630fde8] lua art finder debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/dailymotion.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/jamendo.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
[f630fde8] lua art finder debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/koreus.luac
[f630fde8] lua art finder debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
[f630fde8] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[f630fde8] main art finder debug: no art finder modules matched
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/liveleak.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/newgrounds.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/rockbox_fm_presets.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/soundcloud.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/twitch.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/vimeo.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/vocaroo.luac
[f26012c8] lua stream debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/youtube.luac
[f26012c8] lua stream debug: Trying Lua scripts in /usr/share/vlc/lua/playlist
[f26012c8] main stream debug: no stream_filter modules matched
[f2604ac8] main stream_directory debug: looking for stream_directory module matching "any": 1 candidates
[f2604ac8] main stream_directory debug: no stream_directory modules matched
[f2600918] main input source debug: attachment of directory-extractor failed for file:///data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4
[f26012c8] main stream debug: looking for stream_filter module matching "record": 26 candidates
[f26012c8] main stream debug: using stream_filter module "record"
[f2600918] main input source debug: creating demux: access='file' demux='any' location='/data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4' file='/data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4'
[f260b988] main demux debug: looking for demux module matching "mp4": 55 candidates
[f26012c8] mp4 stream warning: Unknown uuid type box
[f26012c8] mp4 stream debug: dumping root Box "root"
[f26012c8] mp4 stream debug: |   + ftyp size 32 offset 0
[f26012c8] mp4 stream debug: |   + free size 8 offset 32
[f26012c8] mp4 stream debug: |   + moov size 6174 offset 40
[f26012c8] mp4 stream debug: |   |   + mvhd size 108 offset 48
[f26012c8] mp4 stream debug: |   |   + trak size 5960 offset 156
[f26012c8] mp4 stream debug: |   |   |   + tkhd size 92 offset 164
[f26012c8] mp4 stream debug: |   |   |   + edts size 36 offset 256
[f26012c8] mp4 stream debug: |   |   |   |   + elst size 28 offset 264
[f26012c8] mp4 stream debug: |   |   |   + mdia size 5824 offset 292
[f26012c8] mp4 stream debug: |   |   |   |   + mdhd size 32 offset 300
[f26012c8] mp4 stream debug: |   |   |   |   + hdlr size 45 offset 332
[f26012c8] mp4 stream debug: |   |   |   |   + minf size 5739 offset 377
[f26012c8] mp4 stream debug: |   |   |   |   |   + vmhd size 20 offset 385
[f26012c8] mp4 stream debug: |   |   |   |   |   + dinf size 36 offset 405
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + dref size 28 offset 413
[f26012c8] mp4 stream debug: |   |   |   |   |   |   |   + url  size 12 offset 429
[f26012c8] mp4 stream debug: |   |   |   |   |   + stbl size 5675 offset 441
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + stsd size 199 offset 449
[f26012c8] mp4 stream debug: |   |   |   |   |   |   |   + avc1 size 183 offset 465
[f26012c8] mp4 stream debug: |   |   |   |   |   |   |   |   + avcC size 58 offset 551
[f26012c8] mp4 stream debug: |   |   |   |   |   |   |   |   + colr size 19 offset 609
[f26012c8] mp4 stream debug: |   |   |   |   |   |   |   |   + btrt size 20 offset 628
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + stts size 24 offset 648
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + stss size 28 offset 672
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + ctts size 3408 offset 700
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + stsc size 52 offset 4108
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + stsz size 1928 offset 4160
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + stco size 28 offset 6088
[f26012c8] mp4 stream debug: |   |   + udta size 98 offset 6116
[f26012c8] mp4 stream debug: |   |   |   + meta size 90 offset 6124
[f26012c8] mp4 stream debug: |   |   |   |   + hdlr size 33 offset 6136
[f26012c8] mp4 stream debug: |   |   |   |   + ilst size 45 offset 6169
[f26012c8] mp4 stream debug: |   |   |   |   |   + ctoo size 37 offset 6177
[f26012c8] mp4 stream debug: |   |   |   |   |   |   + data size 29 offset 6185
[f26012c8] mp4 stream debug: |   + uuid size 3075 offset 6214
[f26012c8] mp4 stream debug: |   + mdat size 2383399 offset 9289
[f260b988] mp4 demux debug: ISO Media (isom) version 512.
[f260b988] mp4 demux debug: found 1 tracks
[f260b988] mp4 demux warning: elst box found
[f260b988] mp4 demux debug:    - [0] duration=15900ms media time=66ms) rate=1.0
[f260b988] mp4 demux debug: track[Id 0x1] read 3 chunk
[f260b988] mp4 demux warning: STTS table of 1 entries
[f260b988] mp4 demux warning: CTTS table of 424 entries
[f260b988] mp4 demux debug: track[Id 0x1] read 477 samples length:15s
[f2800668] main input debug: selecting program id=0
[f260b988] mp4 demux debug: adding track[Id 0x1] video (enable) language undef
[f260b988] main demux debug: using demux module "mp4"
[f2800668] main input debug: looking for a subtitle file in /data/screenly_assets/
[f26093b8] main decoder debug: looking for video decoder module matching "any": 18 candidates
[f26093b8] mmal_codec decoder debug: OpenDecoder: <<< (h264/----)[H264] 1920x1080 0/0=0/0 o:0 -> (----/----) 0x0 0/0 o:0
[f26093b8] mmal_codec decoder: VCSM init succeeded: CMA
[f26093b8] main decoder debug: using video decoder module "mmal_codec"
[f2606df8] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[f2606df8] main demux meta debug: using meta reader module "taglib"
[f260b988] main demux debug: removing module "taglib"
[f2800668] main input debug: `file:///data/screenly_assets/e71fec8e941b46b2a7bdce1cbd81ec77.mp4' successfully opened
[f260b988] mp4 demux debug: elst (0) gives 0ms (movie)-> 66ms (track)
[f260b988] mp4 demux debug: track[Id 0x1] using Sync Sample Box (stss)
[f260b988] mp4 demux debug: stss gives 2 --> 0 (sample number)
[f2800668] main input debug: Buffering 0%
[f2800668] main input debug: Buffering 25%
[f2800668] main input debug: Buffering 50%
[f2800668] main input debug: Buffering 75%
[f2800668] main input debug: Buffering 100%
[f2800668] main input debug: Stream buffering done (1250 ms in 3 ms)
[f26093b8] main decoder error: buffer deadlock prevented
[f2800668] main input debug: Decoder wait done in 3 ms
[eb805948] main spu text debug: looking for text renderer module matching "any": 2 candidates
[eb805948] freetype spu text debug: Building font databases.
[eb805948] freetype spu text debug: Took -57229 microseconds
[eb805948] main spu text debug: using text renderer module "freetype"
[eb809568] main scale debug: looking for video converter module matching "any": 17 candidates
[eb809568] swscale scale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
[eb809568] main scale debug: using video converter module "swscale"
[eb83da58] main scale debug: looking for video converter module matching "any": 17 candidates
[eb83da58] yuvp scale debug: YUVP to YUVA converter
[eb83da58] main scale debug: using video converter module "yuvp"
[eb802cd0] main video output debug: Deinterlacing available
[eb802cd0] main video output debug: deinterlace -1, mode auto, is_needed 0
[eb81f0e0] main window debug: looking for vout window module matching "any": 5 candidates
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
[eb81f0e0] main window debug: no vout window modules matched
[eb802cd0] main video output debug: Opening vout display wrapper
[0113dc38] main vout display debug: looking for vout display module matching "mmal_vout": 15 candidates
[0113dc38] mmal_vout vout display debug: Display device: HDMI-2, qt=-1 id=7 display=7
[0113dc38] mmal_vout vout display debug: Display transform: auto, mmal_display_transform=0
[0113dc38] mmal_vout vout display debug: WxH: 1920x1088, Crop: 1920x1088
[0113dc38] mmal_vout vout display debug: State=0x12000a
[0113dc38] mmal_vout vout display debug: HDMI: 1920x1080
[0113dc38] mmal_vout vout display debug: >>> OpenMmalVout: ok
[0113dc38] main vout display debug: using vout display module "mmal_vout"
[0113dc38] mmal_vout vout display debug: vd_pool: fmt:1920x1088,sar:0/0; source:1920x1088
[0113dc38] mmal_vout vout display debug: vd_pool: fmt:1920x1088,sar:0/0; source:1920x1088
[eb802cd0] main video output debug: original format sz 1920x1088, of (0,0), vsz 1920x1080, 4cc MMAL, sar 1:1, msk r0x0 g0x0 b0x0
[eb805948] main spu text debug: removing module "freetype"
[0113dc38] main vout display debug: VoutDisplayEvent 'resize' 1920x1080
[eb829188] main spu text debug: looking for text renderer module matching "any": 2 candidates
[eb829188] freetype spu text debug: Building font databases.
[eb829188] freetype spu text debug: Took -55496 microseconds
[eb829188] main spu text debug: using text renderer module "freetype"
[eb802cd0] main video output warning: picture is too late to be displayed (missing 253 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 286 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 254 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 221 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 155 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 155 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 122 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 89 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 56 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 45 ms)
[eb802cd0] main video output debug: picture might be displayed late (missing 12 ms)
[0113dc38] mmal_vout vout display debug: Reset port format
[eb802cd0] main video output debug: picture might be displayed late (missing 11 ms)
[0113dc38] main vout display debug: auto hiding mouse cursor
[eb802cd0] main video output warning: picture is too late to be displayed (missing 2333 ms)
[eb802cd0] main video output warning: picture is too late to be displayed (missing 2300 ms)
[f2800668] main input debug: EOF reached
[f2800668] main input debug: waiting decoder fifos to empty
[f2800668] main input debug: waiting decoder fifos to empty
[f2800668] main input debug: waiting decoder fifos to empty

And found two links around that but not sure if helpful

https://forums.raspberrypi.com/viewtopic.php?t=329408 https://forum.videolan.org/viewtopic.php?f=13&t=159158&p=524894&hilit=fifos#p524894

vpetersson commented 8 months ago

@nicomiguelino Please take a look at this when you get a chance.

nicomiguelino commented 8 months ago

@macxq, I was not able to replicate the issue on my Pi 4 (Model B, with 4GB of RAM). I haven't experienced random stops yet. Would you be able to provide the actual MP4 video that you've used? I'm not sure if it's because of the video or because of memory constraints.

rapasae commented 7 months ago

If it can help, I have the exact same problem and it doesn't seem to depend on the video encoding. I have tried encoding them with different formats, resolutions, bit rates, etc... In my case I have noticed that this only happens when the videos are played from a remote url, if they are played from the raspberry's SD, it does not crash.

Tested with 5 different RPI4, installed with raspi os lite and connected via ethernet.

vpetersson commented 7 months ago

Playing videos from a remote URL is strongly discouraged in general.

nicomiguelino commented 2 weeks ago

@macxq, are you still having this kind of issue? Anthias switched back to using omxplayer in the meantime. At the time, I'm not experiencing such issues.