Installing apt-cacher-ng on Synology Docker

Apt Package Caching using apt-cacher-ng on a Raspberry Pi: https://youtu.be/Vvw-IyiwXGE

Using apt-cacher-ng During an Ubuntu Graphical Install: https://youtu.be/iKfavpv70x4

Ubuntu apt-cacher-ng Package Cache Install and Setup: https://youtu.be/t8kI4YwdvRA

Synology Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPL8Yx7FxnY6xKxcMiVWkkJ

Docker Hub Page

https://registry.hub.docker.com/r/sameersbn/apt-cacher-ng/

Notes

Volume:
File/Folder: apt-cacher-ng
Mount path: /var/cache/apt-cacher-ng

Port Settings:
Local Port: 3142
Container Port: 3142
Type: tcp

apt-cacher-ng Web Interface
http://ip_address_of_nas:3142
Configure Client
sudo nano /etc/apt/apt.conf.d/00aptproxy
Acquire::http::Proxy "http://ip_address_of_nas:3142";

Type control-o to save, control-x to exit.

Extract every Nth line from a Text File using Command Line

In this video, I use the command line tool awk to extract every third line from a captions.sbv file. This should work on Mac, Linux and Windows Subsystem for Linux.

Move to Desktop Folder
cd ~/Desktop
View File (hit q to exit)
less captions.sbv
Extract Every Third Line from captions.sbv
awk 'NR % 3 == 2' captions.sbv

‘3’ is for every third line.
‘2’ means start with the 2nd line.

Save Every Third Line to a Text File
awk 'NR % 3 == 2' captions.sbv > captions.txt
Convert Linefeeds to Spaces
awk 'NR % 3 == 2' captions.sbv |tr '\n' ' ' > captions.txt

Ubiquiti NanoBeam AC Gen2 Bridge Config Quick Overview

Nanobeam AC Gen2 (Amazon Affiliate)
US: https://amzn.to/2REgOfS
CA: https://amzn.to/35Yjtax

NBE-WMK NanoBeam Wall Mount Kit (Amazon Affiliate)
US: https://amzn.to/2RFpYJo
CA: https://amzn.to/30ieDDG

Universal Antenna Mount UB-MA (Amazon Affiliate)
US: https://amzn.to/2Qzc6yS
CA: https://amzn.to/30mAWrC

Ubiquiti NanoBeam AC Gen2 Unboxing: https://youtu.be/W29C9acK2hM

Ubiquiti NanoBeam AC Gen2 Basic Wireless Bridge Setup: https://youtu.be/0PebrOXwOMs

Ubiquiti NanoBeam AC Gen2 Advanced Wireless Bridge Setup: https://youtu.be/13AjR-KGOKg

Ubiquiti Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZMvlAWtV85XcJ1O48vo6N1O

Composite Video Capture on a Mac

FFmpeg Notes (including install instructions): https://www.rickmakes.com/ffmpeg-notes/

HDMI to USB Video Capture Card 1080P: http://ebay.us/Mv0snK (eBay Affiliate)

HDMI to USB Video Capture Card 1080P (Amazon Affiliate)
US: https://amzn.to/3cwUqjv
UK: https://amzn.to/2DD2QZh
CA: https://amzn.to/2PwBNS0
ES: https://amzn.to/30w07tM
FR: https://amzn.to/31sG92a
IT: https://amzn.to/30yMOsz
DE: https://amzn.to/2XD83aO
AU: https://amzn.to/3a3ItQZ

Musoc Composite to HDMI Adapter (Amazon Affiliate)
US: https://amzn.to/2Yd6XkA

Composite Video Capture Options (Mac/Windows): https://youtu.be/tsgD3x1N2KI

Audio/Video Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZN4KVIf7ad7Y1CBlosKdZkd

Change aspect ratio without re-encoding
ffmpeg -i capture.mov -aspect 4:3 -vcodec copy capture43.mp4
Change aspect ratio and re-encode
ffmpeg -i capture.mov -aspect 4:3 -r 30 -vf "scale=640:480" -vcodec h264_videotoolbox -b:v 700k -s 640x480 -pix_fmt yuv420p capture43encode.mp4
Change aspect ratio, pad and re-encode
ffmpeg -i capture.mov -r 30 -aspect 16:9 -vf "scale=640:480,pad=854:480:107:0" -vcodec h264_videotoolbox -b:v 700k -s 854:480 -pix_fmt yuv420p capture43pad.mp4

Note: When I imported these .mp4 videos into Final Cut Pro, the audio wasn’t working on them. Audio would play fine in QuickTime Player. To fix the problem, when encoding, I used the “mov” extension instead of “mp4”.