TomWhitwell / SlowMovie

MIT License
351 stars 69 forks source link

Stops working in Random File Random Movie Mode #111

Closed ElDuderino79 closed 2 years ago

ElDuderino79 commented 2 years ago

Describe the problem Random File & Random Movie = True, Update Interval 60, several movies, slow movie service stops.

Hi there, a fantastic project! Love it! And would like to use it with several movies and random file random frame to have an always changing picture frame. Unfortunately, it seems to stop working shortly after reboot.

My config file looks like this:

random-file = True random-frames = True delay = 120 increment = 8 contrast = 2.0 epd = waveshare_epd.epd7in5_V2

Unfortunately, after some frames, it seems to stop working. Log files looks as follows:

[2022-01-16 13:26:08,546] INFO : slowmovie : Update interval: 120 [2022-01-16 13:26:12,000] INFO : slowmovie : Playing 'Movie_A.mp4' [2022-01-16 13:26:12,000] INFO : slowmovie : Video info: 196940 frames, 23.976fps, duration: 02:16:54

Display the status of the SlowMovie service:

● slowmovie.service - Slow Movie Player Service Loaded: loaded (/etc/systemd/system/slowmovie.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2022-01-16 13:26:30 CET; 6min ago Process: 440 ExecStart=/usr/bin/python3 /home/pi/SlowMovie/slowmovie.py (code=exited, status=1/FAILURE) Main PID: 440 (code=exited, status=1/FAILURE) CPU: 9.086s

Jan 16 13:26:29 SlowMovieFrame python3[440]: File "/home/pi/SlowMovie/slowmovie.py", line 404, in Jan 16 13:26:30 SlowMovieFrame python3[440]: videoInfo = video_info(currentVideo) Jan 16 13:26:30 SlowMovieFrame python3[440]: File "/home/pi/SlowMovie/slowmovie.py", line 108, in video_info Jan 16 13:26:30 SlowMovieFrame python3[440]: probeInfo = ffmpeg.probe(file, select_streams="v") Jan 16 13:26:30 SlowMovieFrame python3[440]: File "/home/pi/.local/lib/python3.9/site-packages/ffmpeg/_probe.py", line 23, in probe Jan 16 13:26:30 SlowMovieFrame python3[440]: raise Error('ffprobe', out, err) Jan 16 13:26:30 SlowMovieFrame python3[440]: ffmpeg._run.Error: ffprobe error (see stderr output for detail) Jan 16 13:26:30 SlowMovieFrame systemd[1]: slowmovie.service: Main process exited, code=exited, status=1/FAILURE Jan 16 13:26:30 SlowMovieFrame systemd[1]: slowmovie.service: Failed with result 'exit-code'. Jan 16 13:26:30 SlowMovieFrame systemd[1]: slowmovie.service: Consumed 9.086s CPU time.

Steps to Reproduce Pack several movies (avi, mp4) in the video folder and use the config as above, maybe with a delay of 60. I am using two movie files, one is 534,6MB of size, the other one 641,4 MB of size, scaled down with Handbake.

Platform Information

Any ideas how to solve this? Many thanks!

robweber commented 2 years ago

Here is a link to the line in the log file where ffmpeg.probe is being called. This is where the error is coming from. Seems like an issue getting info out of the video file but the actual error isn't be displayed. @missionfloyd - any ideas here?

Wonder if wrapping this in a try/except block to log the error would help get a more specific message?

https://github.com/TomWhitwell/SlowMovie/blob/main/slowmovie.py#L108

ElDuderino79 commented 2 years ago

I thought the file size could be a reason, and partially that is correct. I sliced the several movies via LosslessCut into pieces of 3min only and moved the files onto the SD. Once rebooted, the SlowMovie Service ran longer, but not forever. I even switched the log file level to debug mode, yet it does not tell me too much.

[2022-01-17 13:31:36,149] INFO : slowmovie : Video info: 4392 frames, 23.976fps, duration: 00:03:03 [2022-01-17 13:31:36,294] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:31:36,339] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-17 13:31:37,164] DEBUG : slowmovie : Displaying frame 2082 of MOVIE_001-00.12.00.000-00.15.00.000-seg5.mp4 (47.4%) [2022-01-17 13:31:37,427] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:31:39,951] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-17 13:31:40,477] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:31:40,537] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-17 13:31:42,540] DEBUG : epdconfig : spi end [2022-01-17 13:31:42,541] DEBUG : epdconfig : close 5V, Module enters 0 power consumption ... [2022-01-17 13:32:36,204] INFO : slowmovie : Playing 'MOVIE_002-01.12.00.000-01.15.00.000-seg25.avi' [2022-01-17 13:32:36,205] INFO : slowmovie : Video info: 4574 frames, 25.000fps, duration: 00:03:02 [2022-01-17 13:32:36,349] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:32:36,395] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-17 13:32:37,555] DEBUG : slowmovie : Displaying frame 2460 of MOVIE_002-01.12.00.000-01.15.00.000-seg25.avi (53.8%) [2022-01-17 13:32:37,818] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:32:40,341] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-17 13:32:40,849] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:32:40,909] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-17 13:32:42,912] DEBUG : epdconfig : spi end [2022-01-17 13:32:42,913] DEBUG : epdconfig : close 5V, Module enters 0 power consumption ... [2022-01-17 13:33:36,259] INFO : slowmovie : Playing 'Movie_003-00.06.00.000-00.09.00.000-seg3.avi' [2022-01-17 13:33:36,260] INFO : slowmovie : Video info: 4551 frames, 25.000fps, duration: 00:03:02 [2022-01-17 13:33:36,404] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-17 13:33:36,450] DEBUG : epd7in5_V2 : e-Paper busy release SERVICE STOPPED AGAIN

Wonder if wrapping this in a try/except block to log the error would help get a more specific message?

If you can let me know how, happy to give it a try.

robweber commented 2 years ago

The size of the movie shouldn't matter too much. I don't take the time to scale mine down and I've used files that are several GBs and they've always run through fine (I'm sure at the expense of CPU time).

I did add some exception handling to try and get a better message from ffmpeg. In testing this worked when I tried to load an intentionally bad video file (just blank text file). This threw the error and gave the ffmpeg info. All you should need to do is replace the slowmovie.py file with the one from this branch to try it out.

https://github.com/robweber/SlowMovie/tree/ffmpeg_errors

ElDuderino79 commented 2 years ago

The size of the movie shouldn't matter too much. I don't take the time to scale mine down and I've used files that are several GBs and they've always run through fine (I'm sure at the expense of CPU time).

I did add some exception handling to try and get a better message from ffmpeg. In testing this worked when I tried to load an intentionally bad video file (just blank text file). This threw the error and gave the ffmpeg info. All you should need to do is replace the slowmovie.py file with the one from this branch to try it out.

https://github.com/robweber/SlowMovie/tree/ffmpeg_errors

Thanks Rob, I tried this: I took the slowmovie.py from your branch, replaced it on the SD card after doing a complete fresh clean install with all updates etc, moved several movies in the folder, and it still does not seem to work.

● slowmovie.service - Slow Movie Player Service Loaded: loaded (/etc/systemd/system/slowmovie.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2022-01-19 11:23:55 CET; 40min ago Process: 443 ExecStart=/usr/bin/python3 /home/pi/SlowMovie/slowmovie.py (code=exited, status=1/FAILURE) Main PID: 443 (code=exited, status=1/FAILURE) CPU: 2.296s

Jan 19 11:23:55 SlowMovieFrame python3[443]: File "/home/pi/SlowMovie/slowmovie.py", line 342, in Jan 19 11:23:55 SlowMovieFrame python3[443]: videoInfo = video_info(currentVideo) Jan 19 11:23:55 SlowMovieFrame python3[443]: File "/home/pi/SlowMovie/slowmovie.py", line 108, in video_info Jan 19 11:23:55 SlowMovieFrame python3[443]: probeInfo = ffmpeg.probe(file, select_streams="v") Jan 19 11:23:55 SlowMovieFrame python3[443]: File "/home/pi/.local/lib/python3.9/site-packages/ffmpeg/_probe.py", line 23, in probe Jan 19 11:23:55 SlowMovieFrame python3[443]: raise Error('ffprobe', out, err) Jan 19 11:23:55 SlowMovieFrame python3[443]: ffmpeg._run.Error: ffprobe error (see stderr output for detail) Jan 19 11:23:55 SlowMovieFrame systemd[1]: slowmovie.service: Main process exited, code=exited, status=1/FAILURE Jan 19 11:23:55 SlowMovieFrame systemd[1]: slowmovie.service: Failed with result 'exit-code'. Jan 19 11:23:55 SlowMovieFrame systemd[1]: slowmovie.service: Consumed 2.296s CPU time.

robweber commented 2 years ago

I would have expected a different error - I had wrapped the ffmpeg stuff in a try/except block to get the actual ffmpeg.probe error instead of just "see stderr output for more detail" message. Are you sure you grabbed the right file from the right branch? The line that says:

Jan 19 11:23:55 SlowMovieFrame python3[443]: File "/home/pi/SlowMovie/slowmovie.py", line 108, in video_info

Line 108 is no longer the line where that call is made in my updated file, that's the old file line number. Another thing you could try, as missionfloyd suggested is running the following command on each of your video files. One of them should error out and that will let you know where the problem is.

ffprobe -show_format -show_streams -of json -select_streams v [filename]
ElDuderino79 commented 2 years ago

I guess I found out what was wrong. While installing freshly, I activated the movie service. This might have caused the trouble in overwriting the slomovie.py - hence I started over again, did not activate the movie service straight away, did replace the file via cyberduck sftp using the pi user, rebooting, starting movie service, and for the moment, with two files and since 3hrs, it is working. I'll be adding files over the next couple of days and I'll let you know how it turns out.

ElDuderino79 commented 2 years ago

● slowmovie.service - Slow Movie Player Service Loaded: loaded (/etc/systemd/system/slowmovie.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2022-01-20 10:34:39 CET; 7min ago Process: 455 ExecStart=/usr/bin/python3 /home/pi/SlowMovie/slowmovie.py (code=exited, status=2) Main PID: 455 (code=exited, status=2) CPU: 15.628s Jan 20 10:33:15 SlowMovieFrame systemd[1]: Started Slow Movie Player Service. Jan 20 10:34:39 SlowMovieFrame systemd[1]: slowmovie.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jan 20 10:34:39 SlowMovieFrame systemd[1]: slowmovie.service: Failed with result 'exit-code'. Jan 20 10:34:39 SlowMovieFrame systemd[1]: slowmovie.service: Consumed 15.628s CPU time.

Currently 4 videos in the folder. All converted down without audio without subtitles and low wes matching the e-ink screen.

Log file:

[2022-01-20 10:33:18,417] INFO : slowmovie : Update interval: 60 [2022-01-20 10:33:21,851] INFO : slowmovie : Playing '2001 A Space Odyssey (1968).mp4' [2022-01-20 10:33:21,851] INFO : slowmovie : Video info: 195718 frames, 23.976fps, duration: 02:16:03 [2022-01-20 10:34:34,417] INFO : slowmovie : Playing 'Star Wars (1977).mp4' [2022-01-20 10:34:34,419] INFO : slowmovie : Video info: 168713 frames, 25.000fps, duration: 01:52:28 [2022-01-20 10:34:39,160] ERROR : slowmovie : b'ffprobe version 4.3.3-0+rpt2+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers\n built with gcc 10 (Raspbian 10.2.1-6+rpi1)\n configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm\n WARNING: library configuration mismatch\n avutil configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avcodec configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avformat configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avdevice configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avfilter configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avresample configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n swscale configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n swresample configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n postproc configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n libavutil 56. 51.100 / 56. 51.100\n libavcodec 58. 91.100 / 58. 91.100\n libavformat 58. 45.100 / 58. 45.100\n libavdevice 58. 10.100 / 58. 10.100\n libavfilter 7. 85.100 / 7. 85.100\n libavresample 4. 0. 0 / 4. 0. 0\n libswscale 5. 7.100 / 5. 7.100\n libswresample 3. 7.100 / 3. 7.100\n libpostproc 55. 7.100 / 55. 7.100\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe6f510] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe6f510] moov atom not found\nVideos/._Star Wars (1977).mp4: Invalid data found when processing input\n'

This time, fresh install, deactivated SMVP service, rebooted, replaced the slowmovie.py from the fresh install with a pi user logged in SFTP connection in order to maintain correct rights on the file, etc. Not sure why it still goes wrong. Any ideas? Thanks for all your help so far!

robweber commented 2 years ago

Well I went down a rabbit hole and learned way more about how mp4s work than I ever wanted to know. I think the relevant lines from the log dump are these:

Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
moov atom not found
Videos/._Star Wars (1977).mp4: Invalid data found when processing input

Looks like it's detecting the mp4 file correctly but cannot find the moov atom information within the file; resulting in the invalid data issue. Apparently the moov atom reference is a data unit, specific to mp4 files, that contains the meta information about the video file. If this can't be found then it would make sense that the probe would fail. Just doing some basic web searching I found that this is a pretty common problem with transcoded videos and is very dependent on the software doing the transcoding. I thought this reddit thread had some decent information. A fix I'd try is just convert them to something other than an mp4 and see if that helps.

robweber commented 2 years ago

We can continue to troubleshoot this but I moved this from a bug to "invalid" as it's really a problem with the video file and now SlowMovie specifically.

ElDuderino79 commented 2 years ago

convert them to something other than an mp4 and see if that helps.

I chose mp4 because of the file test.mp4 in the video folder. Any recommended formats?

robweber commented 2 years ago

Ironically enough the entire folder of videos I have going right now are all mp4s :(

You could try avi or mkv and see how that goes? It really shouldn't matter but for some reason the files you're creating are missing the attributes ffmpeg needs so it's more than likely unique to your situation in some way.

ElDuderino79 commented 2 years ago

Weird. Any idea if I could use a special setting in Handbrake? Or an alternative?

Did do a quick test with 4 MKV files. No success here.

● slowmovie.service - Slow Movie Player Service Loaded: loaded (/etc/systemd/system/slowmovie.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2022-01-20 19:36:02 CET; 1min 3s ago Process: 453 ExecStart=/usr/bin/python3 /home/pi/SlowMovie/slowmovie.py (code=exited, status=2) Main PID: 453 (code=exited, status=2) CPU: 8.390s Jan 20 19:35:38 SlowMovieFrame systemd[1]: Started Slow Movie Player Service. Jan 20 19:36:02 SlowMovieFrame systemd[1]: slowmovie.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jan 20 19:36:02 SlowMovieFrame systemd[1]: slowmovie.service: Failed with result 'exit-code'. Jan 20 19:36:02 SlowMovieFrame systemd[1]: slowmovie.service: Consumed 8.390s CPU time. ~

And the log file:

[2022-01-20 19:35:41,673] DEBUG : slowmovie : Picking which video to play... [2022-01-20 19:35:41,674] DEBUG : slowmovie : ...trying the --file argument... [2022-01-20 19:35:41,674] DEBUG : slowmovie : ...random-file mode: trying to pick a random video... [2022-01-20 19:35:41,676] DEBUG : slowmovie : ...picked 'Videos/Movie C.mkv'! [2022-01-20 19:35:41,676] INFO : slowmovie : Update interval: 60 [2022-01-20 19:35:44,663] INFO : slowmovie : Playing 'Movie C.mkv' [2022-01-20 19:35:44,664] INFO : slowmovie : Video info: 189105 frames, 25.000fps, duration: 02:06:04 [2022-01-20 19:35:44,808] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-20 19:35:44,853] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-20 19:35:46,632] DEBUG : slowmovie : Displaying frame 10537 of Movie C.mkv (5.6%) [2022-01-20 19:35:59,190] DEBUG : epd7in5_V2 : e-Paper busy [2022-01-20 19:36:01,713] DEBUG : epd7in5_V2 : e-Paper busy release [2022-01-20 19:36:02,292] ERROR : slowmovie : b'ffprobe version 4.3.3-0+rpt2+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers\n built with gcc 10 (Raspbian 10.2.1-6+rpi1)\n configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm\n WARNING: library configuration mismatch\n avutil configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avcodec configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avformat configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avdevice configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avfilter configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n avresample configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n swscale configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n swresample configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n postproc configuration: --prefix=/usr --extra-version=0+rpt2+deb11u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-mmal --enable-neon --enable-rpi --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs\n libavutil 56. 51.100 / 56. 51.100\n libavcodec 58. 91.100 / 58. 91.100\n libavformat 58. 45.100 / 58. 45.100\n libavdevice 58. 10.100 / 58. 10.100\n libavfilter 7. 85.100 / 7. 85.100\n libavresample 4. 0. 0 / 4. 0. 0\n libswscale 5. 7.100 / 5. 7.100\n libswresample 3. 7.100 / 3. 7.100\n libpostproc 55. 7.100 / 55. 7.100\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe02510] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xe02510] moov atom not found\nVideos/._test.mp4: Invalid data found when processing input\n'

robweber commented 2 years ago

We have this guide on the wiki that I know a lot of people have used. It might yield a different result, hard to say.

In that last log you have (above) the last lines are:

moov atom not found
Videos/._test.mp4: Invalid data found when processing input

Looks like you must still have an mp4 file in that directory somewhere.

ElDuderino79 commented 2 years ago

I found the error while accessing the sd via FileZilla via Linux running in a VM, just to try something else out. I found out that there were 4 MKV files (the big ones), and 4 files beginning with ._ followed by the filename and file ending of the correspondent file. File size 4kb. I deleted them all, shutdown the slowmovie service, rebooted, crosschecked that those tiny files did not return, and restarted it all. And it worked for long period. Replaced the 4 MKV files with mp4 collection, checked again via Linux that there are no ._ files. and there were again, so I deleted them again, restarted it all, systems update is 10h 42m and screen is changing randomly.

https://itectec.com/askdifferent/macos-are-dot-underscore-_-files-created-and-how-can-i-avoid-them/

I am using a Mac to copy the files to the SD card. And Mac OS seems to create those files, which you cannot see from the Mac's Finder view.

Could a workaround be amending the code to ignore ._ files, if any? Or even more radical, once started, if movie folder includes those files, delete, reboot, restart service?

Thanks for your patience and your help! Highly appreciated! As the tech part now is working, I'll figurer out what kind of frame I´ll be putting it in.

robweber commented 2 years ago

Glad you tracked it down. That makes sense that the hidden files would cause issues since they're not really videos but still have the .mp4 extension.

Modifying the video filter to ignore this would be pretty easy I'd think. Just ignore anything that starts with . as that would cover a lot of different hidden system files. You could write a script to delete them but I don't think we want to have this project messing around with files on the system we didn't create. I'll flag this issue as an enhancement since that's a "todo" on our end.