Greetings, gentlemen! A mystery to spice up your life? It certainly spiced up mine.
I am running FreeBSD 13.4 on a Dell Wyse 3040 thin client. It's used as a camera controller, and it runs this simple shell script:
The problem? It resets the computer. There is no shutdown warning, no error message, no kernel panic. Just BAM, it's down. I tried it several times, and it always happened. Sometimes immediately, sometimes after several minutes.
According to htop, CPU usage is around 30-35%. RAM usage is around 50%.
There is 1.5 GB free storage, so it's far from full. Even if it was full, it wouldn't just abruptly reset.
The CPU is not overheating at all. I can touch the CPU cooler, and it's barely as warm as my hand. (It has no active cooling.)
There is nothing in `/var/logs/messages`. Only this:
I tried to change the output directory, and also the location of the text file which contains a text overlay. It didn't help, this damn thing still resets.
I found some examples of the same thing happening on some Linux systems. There aren't any answers, just vague suggestions that the CPU might be overheating. I would bet these guys witnessed the same thing as I just did.
askubuntu.com
superuser.com
Anybody with a clue?
I am running FreeBSD 13.4 on a Dell Wyse 3040 thin client. It's used as a camera controller, and it runs this simple shell script:
Code:
touch "/tmp/ffmpeg_overlay.txt"
# Front camera
echo Starting front camera...
nice -n 10 \
ffmpeg \
-hide_banner \
-loglevel error \
-thread_queue_size 2048 \
-fflags nobuffer \
-avoid_negative_ts "make_zero" \
-use_wallclock_as_timestamps 1 \
-f "v4l2" \
-input_format "h264" \
-framerate 25 \
-video_size "1280x720" \
-i "/dev/camera-front" \
-filter_complex "[0:v]drawtext=fontfile=/home/tomcatmwi/python_dashcam/overlay.ttf:textfile=/tmp/ffmpeg_overlay.txt:reload=1:x=10:y=10:fontsize=24:fontcolor=white:borderw=2:bordercolor=black[v0]" \
-map "[v0]" \
-f "segment" \
-segment_time 180 \
-strftime 1 \
-c:v "libx264" \
-preset "veryfast" \
-crf 18 \
"/tmp/camera-storage/front/%Y-%m-%d_%H:%M:%S_front.mp4"
The problem? It resets the computer. There is no shutdown warning, no error message, no kernel panic. Just BAM, it's down. I tried it several times, and it always happened. Sometimes immediately, sometimes after several minutes.
According to htop, CPU usage is around 30-35%. RAM usage is around 50%.
There is 1.5 GB free storage, so it's far from full. Even if it was full, it wouldn't just abruptly reset.
The CPU is not overheating at all. I can touch the CPU cooler, and it's barely as warm as my hand. (It has no active cooling.)
There is nothing in `/var/logs/messages`. Only this:
Code:
Nov 17 01:25:53 corolla-chan-cameras login[2359]: ROOT LOGIN (root) ON ttyv0
Nov 17 01:43:42 corolla-chan-cameras syslogd: kernel boot file is /boot/kernel/kernel
Nov 17 01:43:42 corolla-chan-cameras kernel: ---<<BOOT>>---
...etc
I tried to change the output directory, and also the location of the text file which contains a text overlay. It didn't help, this damn thing still resets.
I found some examples of the same thing happening on some Linux systems. There aren't any answers, just vague suggestions that the CPU might be overheating. I would bet these guys witnessed the same thing as I just did.
Why does my system shut down when running ffmpeg?
I am converting mp4 to ogg for many videos with ffmpeg but at some point during this process, my computer is shutting down. Any idea why or how I can prevent this?
Why can ffmpeg cause a reboot?
Four times in a row, when I started a short simple ffmpeg command on my Ubuntu host, after about ten seconds it rebooted cleanly. Nothing appeared in /var/log/syslog. The fourth time, I ran it in...
Anybody with a clue?