On one of my pogoplugs, I have ffmpeg running all the time. It's acting as a baby monitor, and it's running the baby unit command. The service file looks like this:
"baby.service"
$this->bbcode_second_pass_code('', '
[root@alarm system]# cat baby.service
[Unit]
Description=baby monitor
After=network.target
[Service]
ExecStartPre=/bin/sleep 30
ExecStart=/usr/bin/ffmpeg -re -f alsa -i plughw:0 -acodec mp2 -ab 192000 -ar 48000 -ac 1 -filter 'bandpass=f=1000:csg=0:width_type=q:w=.806' -f rtp rtp://192.168.2.41:1234
[Install]
WantedBy=multi-user.target
')
When I view the status of the process, I see there's some alarms. I'm not sure what they are, but I'm worried that it's logging a bunch extraneous errors on the flash drive. The program seems to work as it should, but this runs 24/7, so it might kill the flash drive prematurely if it's writing to flash drive all the time. I tried looking at the LED on the flash drive to determine if it's writing frequently, and it seems to be once in a while, but I'm not sure if it's the alarms doing that.
$this->bbcode_second_pass_code('', '
[root@alarm ~]# systemctl status baby.service
baby.service - baby monitor
Loaded: loaded (/etc/systemd/system/baby.service; enabled)
Active: active (running) since Mon 2013-11-11 02:16:53 CST; 31s ago
Process: 298 ExecStartPre=/bin/sleep 30 (code=exited, status=0/SUCCESS)
Main PID: 317 (ffmpeg)
CGroup: /system.slice/baby.service
ââ317 /usr/bin/ffmpeg -re -f alsa -i plughw:0 -acodec mp2 -ab 1920...
Nov 11 02:16:55 alarm ffmpeg[317]: m=audio 1234 RTP/AVP 14
Nov 11 02:16:55 alarm ffmpeg[317]: b=AS:192
Nov 11 02:16:55 alarm ffmpeg[317]: Press [q] to stop, [?] for help
Nov 11 02:17:03 alarm ffmpeg[317]: [293B blob data]
Nov 11 02:17:03 alarm ffmpeg[317]: Last message repeated 11 times
Nov 11 02:17:05 alarm ffmpeg[317]: [303B blob data]
Nov 11 02:17:06 alarm ffmpeg[317]: Last message repeated 9 times
Nov 11 02:17:06 alarm ffmpeg[317]: [67B blob data]
Nov 11 02:17:06 alarm ffmpeg[317]: Last message repeated 11 times
Nov 11 02:17:23 alarm ffmpeg[317]: [293B blob data]
')
Can I prevent error logging for ffmpeg? Is there a way to tell if these alarms are actually being written to the flash drive?