# Mp4 videos chopping the first second or so of video - Pi 4

**URL:** <https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574>\
**Category:** Anthias\
**Created:** [September 11, 2024, 3:39am UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574 "2024-09-11T03:39:22Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [September 11, 2024, 3:39am UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/1 "2024-09-11T03:39:22Z")

</div>

I have been working on this for several days. I can get anthias to install and run on my pi4b but if I add a mp4 asset it chops the first second or so of the HD video. Here are the logs from the screenly-anthias-viewer-1 container for the asset in question:

Showing asset GH010110.MP4 (video)  
Current url is null  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
[f191f6b8] wl\_xdg\_shell window: \<\<\< WL XDG, type=0  
error: XDG\_RUNTIME\_DIR is invalid or not set in the environment.  
[f191f6b8] wl\_xdg\_shell window: \>\>\> WL XDG No display  
error: XDG\_RUNTIME\_DIR is invalid or not set in the environment.  
error: XDG\_RUNTIME\_DIR is invalid or not set in the environment.  
[ee805c60] gles2 generic error: parent window not available  
[ee805c60] xcb generic error: window not available  
[ee8f7e68] gles2 vout display error: parent window not available  
[ee8f7e68] gl vout display error: parent window not available  
[ee8f7e68] xcb vout display error: window not available  
[ee8f7e68] drm\_vout vout display: \<\<\< OpenDrmVout: Fmt=DPV0  
[ee8f7e68] drm\_vout vout display error: Failed to get xlease  
[ee8f7e68] drm\_vout vout display error: Failed to set atomic cap  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
[f191c288] avcodec decoder: Using DRM Video Accel for hardware decoding

Here is another video it is doing it with:  
Showing asset Logo Animation 01.mp4 (video)  
Current url is null  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
[f2d09a70] wl\_xdg\_shell window: \<\<\< WL XDG, type=0  
error: XDG\_RUNTIME\_DIR is invalid or not set in the environment.  
[f2d09a70] wl\_xdg\_shell window: \>\>\> WL XDG No display  
error: XDG\_RUNTIME\_DIR is invalid or not set in the environment.  
error: XDG\_RUNTIME\_DIR is invalid or not set in the environment.  
[f37327e8] gles2 generic error: parent window not available  
[f37327e8] xcb generic error: window not available  
[f37060d8] gles2 vout display error: parent window not available  
[f37060d8] gl vout display error: parent window not available  
[f37060d8] xcb vout display error: window not available  
[f37060d8] drm\_vout vout display: \<\<\< OpenDrmVout: Fmt=DPV0  
[f37060d8] drm\_vout vout display error: Failed to get xlease  
[f37060d8] drm\_vout vout display error: Failed to set atomic cap  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
Fontconfig error: No writable cache directories  
[f2d2a468] avcodec decoder: Using DRM Video Accel for hardware decoding

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [September 11, 2024, 2:29pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/2 "2024-09-11T14:29:12Z")

</div>

@anonpoet, I’ll check this one closely later.

In the meantime, you can install ffmpeg on your container by running the following commands:

```bash
cd ~/screenly
docker compose exec anthias-viewer bash

apt-get install -y --no-install-recommends ffmpeg

```

After running the commands, try running the following:

```bash
cd ~/screenly_assets

# The filename of the uploaded MP4 file is different from the original filename.
# It was renamed to <UUID>.mp4, so it's important to take note of the asset ID of your
# video via the web UI.

ffprobe [filename].mp4

```

One you got the output of the `ffprobe` command, please put the output here. Thanks.

---

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [September 11, 2024, 5:02pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/3 "2024-09-11T17:02:41Z")

</div>

Run the commands. Here is the output:  
root@53c075a087fe:~/screenly\_assets# ls -lh  
total 106M  
-rw-r–r-- 1 root root 39M Sep 11 10:13 10c01200be384ec1bde5ad72403304c9.mp4  
-rw-r–r-- 1 root root 37K Sep 11 10:12 4126891c806143888ccbc612b39bca7a.jpg  
-rw-r–r-- 1 root root 19M Sep 11 10:27 63b45236f10e47c6825931ecd1b1ebd4.mpeg  
-rw-r–r-- 1 root root 48M Sep 11 09:57 6d4e2433e8ca45df875f74adeab056f4.mp4  
-rw-r–r-- 1 root root 315K Sep 11 10:12 7a58705bd00648589910cfa6c0edaa56.jpg  
-rw-r–r-- 1 root root 435K Sep 11 10:12 cf5be65375b140ff86ca2602de339356.jpg  
-rw-r–r-- 1 root root 41K Sep 11 10:12 e41564b0f1dc4aedbe82dd9f100fb034.jpg  
root@53c075a087fe:~/screenly\_assets# ffprobe 10c01200be384ec1bde5ad72403304c9.mp4  
ffprobe version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2007-2024 the FFmpeg developers  
built with gcc 12 (Raspbian 12.2.0-14+rpi1)  
configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm  
WARNING: library configuration mismatch  
avutil configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
avcodec configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
avformat configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
avdevice configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
avfilter configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
swscale configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
swresample configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
postproc configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs  
libavutil 57. 28.100 / 57. 28.100  
libavcodec 59. 37.100 / 59. 37.100  
libavformat 59. 27.100 / 59. 27.100  
libavdevice 59. 7.100 / 59. 7.100  
libavfilter 8. 44.100 / 8. 44.100  
libswscale 6. 7.100 / 6. 7.100  
libswresample 4. 7.100 / 4. 7.100  
libpostproc 56. 6.100 / 56. 6.100  
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘10c01200be384ec1bde5ad72403304c9.mp4’:  
Metadata:  
major\_brand : mp42  
minor\_version : 0  
compatible\_brands: mp42mp41  
creation\_time : 2024-09-09T22:03:46.000000Z  
Duration: 00:00:08.02, start: 0.000000, bitrate: 40720 kb/s  
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 40753 kb/s, 24 fps, 24 tbr, 24k tbn (default)  
Metadata:  
creation\_time : 2024-09-09T22:03:46.000000Z  
handler\_name : ?Mainconcept Video Media Handler  
vendor\_id : [0][0][0][0]  
encoder : AVC Coding  
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 61 kb/s (default)  
Metadata:  
creation\_time : 2024-09-09T22:03:46.000000Z  
handler\_name : #Mainconcept MP4 Sound Media Handler  
vendor\_id : [0][0][0][0]

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [September 12, 2024, 2:53pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/4 "2024-09-12T14:53:55Z")

</div>

Thanks, @anonpoet. I’ll take a look at this one. Does the issue happen for all videos?

---

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [September 12, 2024, 4:24pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/5 "2024-09-12T16:24:03Z")

</div>

Yes it happens with all videos. The screen is blank for a second or two and then starts that far into the video. So the videos start at like second 2 or so. Thank you!

---

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [September 15, 2024, 1:34am UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/6 "2024-09-15T01:34:42Z")

</div>

Thanks for your help. Let me know if you need additional info or logs and I can get those for you. Thank you so much!

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [September 16, 2024, 3:35pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/7 "2024-09-16T15:35:36Z")

</div>

@anonpoet, thanks. I’m still figuring out how to make the video appear on the first few seconds or so.

---

<div class="post-metadata">

**Author:** ![bellatho](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@bellatho](https://forums.screenly.io/u/bellatho)\
**Post date:** [September 17, 2024, 2:11am UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/8 "2024-09-17T02:11:02Z")

</div>

Same here. Also on Pi 4 with newly installed Anthias.

---

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [September 28, 2024, 8:04pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/9 "2024-09-28T20:04:21Z")

</div>

Okay. Thanks for you efforts on this. Let me know if you need any other logs or info.

Thanks again!

---

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [October 7, 2024, 6:26pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/10 "2024-10-07T18:26:32Z")

</div>

@nicomiguelino  
While we are waiting on the fix for the chopping off the first few seconds of video, is there a work-around that could be done to get it working on the short term?

Thank you!  
Troy

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [October 7, 2024, 6:43pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/11 "2024-10-07T18:43:30Z")

</div>

@anonpoet, apologies to for the wait. I’m still trying out viable long-term solutions, like switching to Qt as well. (Anthias currently uses VLC for Pi for video playback and Qt for image and web assets display).

I can’t seem to think of a quick and easy workaround yet, but you can try to add 1 to 3 seconds before videos before uploading them. [You can use ffmpeg, for instance.](https://video.stackexchange.com/questions/20717/ffmpeg-add-3-seconds-of-black-to-video-head-and-tail)

---

<div class="post-metadata">

**Author:** ![anonpoet](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/anonpoet/32/493_2.png) [@anonpoet](https://forums.screenly.io/u/anonpoet)\
**Post date:** [November 4, 2024, 9:47pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/12 "2024-11-04T21:47:46Z")

</div>

Hi @nicomiguelino - any update on this issue?

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [November 4, 2024, 11:29pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/13 "2024-11-04T23:29:38Z")

</div>

@anonpoet, still working on prerequisites and other housekeeping tasks like upgrading the codebase from Qt 5 to Qt 6. Based on my previous tests and proof of concepts, switching from VLC to Qt multimedia player solves the video chopping issue.

---

<div class="post-metadata">

**Author:** ![vpetersson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/vpetersson/32/8_2.png) [@vpetersson](https://forums.screenly.io/u/vpetersson)\
**Post date:** [June 9, 2026, 3:18pm UTC](https://forums.screenly.io/t/mp4-videos-chopping-the-first-second-or-so-of-video-pi-4/1574/14 "2026-06-09T15:18:49Z")

</div>

Good news, this was fixed. The choppy playback, including the rough first second, came from how the old player delivered video frames. The video path has since been rebuilt to use the modern media player drawing directly on the screen ([#2905](https://github.com/Screenly/Anthias/pull/2905), [#2975](https://github.com/Screenly/Anthias/pull/2975)), with frame pacing added in [#3006](https://github.com/Screenly/Anthias/pull/3006). Please update to the latest release and the chopping should be gone. Marking this as solved. If you still see it, share the video and we will take a look.
