Optimize Command Line Batch Processing Using the Find Command

Find All Jpegs
find ./ -iname '*.jpg'
Find and Optimize all Jpegs
find ./ -iname '*.jpg' -exec jpegoptim -p {} \;
Create Hidden File to Track Date
touch .jpeg_crush
Create Optimization Script
nano jpeg_crush.sh
#!/bin/bash
find ./ -newer .jpeg_crush -iname '*.jpg' -exec jpegoptim -p {} \;
touch .jpeg_crush

Type control-o, control-x to exit.

Make Script Executable
chmod +x jpeg_crush.sh
Run Jpeg Crush
./jpeg_crush.sh

Stream a Mac Screen to a Raspberry Pi using FFmpeg

In this video I stream a Mac screen to a Raspberry Pi using FFmpeg. This could be used for remotely displaying a presentation. This does not transmit audio from the Mac.

Raspberry Pi (Amazon Affiliate)
➡️ Purchase here: https://amzlink.to/az0g1mNVmPoHn
UK: https://amzlink.to/az0PomlnEt5SC
CA: https://amzlink.to/az0DiN8Nn3a0q
ES: https://amzlink.to/az0EJBn77Kx6U
FR: https://amzlink.to/az0D9vAO9c6oj
IT: https://amzlink.to/az0IacDlkzUlJ
DE: https://amzlink.to/az0gJZ0joeiV5
IN: https://amzlink.to/az0EvJYL9uC71

List Devices
ffmpeg -f avfoundation -list_devices true -i ""
FFmpeg Command on Mac
ffmpeg -f avfoundation -i "1" -vcodec h264_videotoolbox -realtime 1 -pix_fmt nv12 -b:v 5000k -f mpegts udp://ip_address_of_pi:1234
Command on Raspberry Pi
omxplayer --timeout 60 ip_address_of_mac:1234