Channel: GeekTips
For Mac when you right click on a folder and choose 'Open in Terminal' it always opens VSCode for me. It used to just open the terminal. To rectify create a workflow in Automator. Now it'll give you 'open in terminal' at the bottom and it actually does what it says. Not sure if this was a VSCode problem or an apple problem.
disable tooltips for apps in Mac OS Dock
if I open up mpv the hover text showing mpv stays there forever until I move the mouse which I don't usually do. This free PrefsEditor app allows modifying file-label for the persistent-apps to blank and problem solved. Modify com.apple.dock file. After making changes in terminal do killall Dock to restart Dock. Last release 2022 but still works just fine on Sonoma 14.5
if I open up mpv the hover text showing mpv stays there forever until I move the mouse which I don't usually do. This free PrefsEditor app allows modifying file-label for the persistent-apps to blank and problem solved. Modify com.apple.dock file. After making changes in terminal do killall Dock to restart Dock. Last release 2022 but still works just fine on Sonoma 14.5
my mouse if over the mpv icon although mouse pointer isn't shown in screenshot
Now no hover text is over the app icons that are kept in the dock. Only for recent apps there is name of the app text.
edit: ok as soon as you quit an app and re-open it then the label is back if you put nothing..have to fill it with a space for instance but then there's a black buble text box.... so insane......hmmm
tried PListBuddy but cuz it has an array guess it can't be done...think I give up
Set: Cannot Perform Set On Containers
Now no hover text is over the app icons that are kept in the dock. Only for recent apps there is name of the app text.
edit: ok as soon as you quit an app and re-open it then the label is back if you put nothing..have to fill it with a space for instance but then there's a black buble text box.... so insane......hmmm
tried PListBuddy but cuz it has an array guess it can't be done...think I give up
/usr/libexec/PlistBuddy -c "set :persistent-apps:0 dict:5 dict ." ~/Library/Preferences/com.apple.dock.plist
Set: Cannot Perform Set On Containers
Almost gave up on slideshow movie stuff. AV1 was using libaom-av1 encoder but it can't glob *.jpg just avif. It was 4 times slower than libx265 or libx264 but 3x smaller though. Then decided use list to concat and most problems solved but half the images whether jpg, webp, avif wouldn't make it into the avif video. Well avif Preview opens it and can flip around images...better than a PDF I suppose. Browsers can open it but not mpv. So just using the container mp4 (or mkv of course) worked.
Just did 11,200+ images was 6h 13m mp4 video 720p and final file size only 415MiB (435MB) which is amazing considering the jpg images were 1024x768 (for the most part and their collective size was 1.35GB. So it's like 3x smaller. Using preset -2 would even be a tad smaller in file size but it's like 5x slower to encode though. So generally not worth it.
The key to all this was putting the duration in the file which is 2 seconds...you could change to 3 seconds and instead of 1/2 put 1/3 or for 4 secs put 1/4.
You could magick convert or mogrify but just using a video filter to scale proptionally saves time
mogrify -resize -1x720 -background black -gravity center -extent -1x720 -format avif *.jpg
mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif *.jpg
seems like limit for mv * somedir is around 10,000 or 15,000 ...anything over that you gotta use for in loop
Just did 11,200+ images was 6h 13m mp4 video 720p and final file size only 415MiB (435MB) which is amazing considering the jpg images were 1024x768 (for the most part and their collective size was 1.35GB. So it's like 3x smaller. Using preset -2 would even be a tad smaller in file size but it's like 5x slower to encode though. So generally not worth it.
The key to all this was putting the duration in the file which is 2 seconds...you could change to 3 seconds and instead of 1/2 put 1/3 or for 4 secs put 1/4.
You could magick convert or mogrify but just using a video filter to scale proptionally saves time
mogrify -resize -1x720 -background black -gravity center -extent -1x720 -format avif *.jpg
mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif *.jpg
seems like limit for mv * somedir is around 10,000 or 15,000 ...anything over that you gotta use for in loop
cd ~/datampv/images; dt=$( date +%Y_%m_%d_%H_%M_%S); printf "file '%s'\nduration 2\n" *.jpg > list ; ffmpeg -y -f concat -i list -r 1/2 -vf "scale=w=1280:h=720:force_original_aspect_ratio=1,pad=1280:720:(ow-iw)/2:(oh-ih)/2" -c:v libsvtav1 -preset 4 -pix_fmt yuv420p10le -crf 28 output/slideshow720p_jpg_$dt.mp4; rm list; [ ! -d jpg_images ] && mkdir jpg_images; mkdir jpg_images/$dt; mv *.jpg jpg_images/$dt
These are better just drop jpg, png, webp, avif images into a directory. One for 720p and one for 1080 mp4 av1 slideshow
cd ~/datampv/images; dt=$( date +%Y_%m_%d_%H_%M_%S); [ ! -d output ] && mkdir output; [ ! -d output/org_images ] && mkdir output/org_images; mkdir output/org_images/$dt; cp *.avif output/org_images/$dt; mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif output/org_images/$dt/*.avif; mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif *.jpg; mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif *.JPG; mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif *.png; mogrify -resize 1280x720 -background black -gravity center -extent 1280x720 -format avif *.webp; mv *.jpg output/org_images/$dt; mv *.png output/org_images/$dt; mv *.webp output/org_images/$dt; printf "file '%s'\nduration 2\n" *.avif > list; ffmpeg -y -f concat -i list -r 1/2 -c:v libsvtav1 -preset 4 -pix_fmt yuv420p10le -crf 28 output/slideshow720p_$dt.mp4; rm list; rm *.avif
cd ~/datampv/images; dt=$( date +%Y_%m_%d_%H_%M_%S); [ ! -d output ] && mkdir output; [ ! -d output/org_images ] && mkdir output/org_images; mkdir output/org_images/$dt; cp *.avif output/org_images/$dt; mogrify -resize 1920x1080 -background black -gravity center -extent 1920x1080 -format avif output/org_images/$dt/*.avif; mogrify -resize 1920x1080 -background black -gravity center -extent 1920x1080 -format avif *.jpg; mogrify -resize 1920x1080 -background black -gravity center -extent 1920x1080 -format avif *.JPG; mogrify -resize 1920x1080 -background black -gravity center -extent 1920x1080 -format avif *.png; mogrify -resize 1920x1080 -background black -gravity center -extent 1920x1080 -format avif *.webp; mv *.jpg output/org_images/$dt; mv *.png output/org_images/$dt; mv *.webp output/org_images/$dt; printf "file '%s'\nduration 2\n" *.avif > list; ffmpeg -y -f concat -i list -r 1/2 -c:v libsvtav1 -preset 4 -pix_fmt yuv420p10le -crf 28 output/slideshow1080p_$dt.mp4; rm list; rm *.avif
# remove extension with no path
78502223518663-00044850
# remove path from $f
78502223518663-00044850.svg
# remove extension but not path
output/78502223518663-00044850
# remove path & extension
78502223518663-00044850
cd output; for f in *.svg; do echo ${f%.*} ; done
78502223518663-00044850
# remove path from $f
for f in output/*.svg; do echo ${f##*/} ; done
78502223518663-00044850.svg
# remove extension but not path
for f in output/*.svg; do echo ${f%.*} ; done
output/78502223518663-00044850
# remove path & extension
for f in output/*.svg; do x=${f##*/}; echo ${x%.*} ; done
78502223518663-00044850
Windows technically should work although quite a few scripts might not. Mainly just change screenshot dir in mpv.conf and in input.conf anytime you see ~ which corresponds to /Users/username (Mac) or /home/username (Linux) change it to %homedrive%%homepath% on Windows. Can't really test out Windows especially the network stuff.
More stuff can convert youtube auto-generated subs to demofont (removes diacritics), demofont uppercase, fixed yt (so doesn't repeat lines), lowercase. Also same conversion for subs locally and can save them if you wish.
Edit chapters and bake (embedding chapter metadata) them in mp4, mp3, mkv, opus. Output ogm, youtube timestamps, chapter list.
Save yt playlists, add titles and duration to playlists in order or reverse order.
Burn in hardsubs in WebM...encode from among the 550+ LUTs (lookup tables) into video.
Reverse video (easy to do but just 5 min video can use up to 10GB RAM) so it splits it into manageable chunks.
Video editing should be way easier than Shotcut and even easier than LosslessCut (which can only do slicing).
Can view recorded live yt streams and automatically downloads live-chat replay.
More stuff can convert youtube auto-generated subs to demofont (removes diacritics), demofont uppercase, fixed yt (so doesn't repeat lines), lowercase. Also same conversion for subs locally and can save them if you wish.
Edit chapters and bake (embedding chapter metadata) them in mp4, mp3, mkv, opus. Output ogm, youtube timestamps, chapter list.
Save yt playlists, add titles and duration to playlists in order or reverse order.
Burn in hardsubs in WebM...encode from among the 550+ LUTs (lookup tables) into video.
Reverse video (easy to do but just 5 min video can use up to 10GB RAM) so it splits it into manageable chunks.
Video editing should be way easier than Shotcut and even easier than LosslessCut (which can only do slicing).
Can view recorded live yt streams and automatically downloads live-chat replay.
Windows in mpv.conf
just change screenshot directory like so
#Windows
screenshot-directory=%HOMEDRIVE%%HOMEPATH%\\datampv\\screenshots
yt-chatreplay.lua
opts['live-chat-directory'] = "C:\\Users\\username\\datampv\\livechat"
youtube-download.conf
# Windows
# download_path=C:\\Users\\geektips\\datampv\download
sure there are others but that's some basic ones if you wish to test out mpvconfig on Windows
just change screenshot directory like so
#Windows
screenshot-directory=%HOMEDRIVE%%HOMEPATH%\\datampv\\screenshots
yt-chatreplay.lua
opts['live-chat-directory'] = "C:\\Users\\username\\datampv\\livechat"
youtube-download.conf
# Windows
# download_path=C:\\Users\\geektips\\datampv\download
sure there are others but that's some basic ones if you wish to test out mpvconfig on Windows
screenshot of mpvconfig with uosc...the video editing menu
most ligature fonts from these two studios
https://www.fontspace.com/177studio
https://www.fontspace.com/putracetol-studio
mpv manual
https://mpv.io/manual/stable/
uosc - UI (user interface/ menu)
https://github.com/tomasklaen/uosc
550+ LUTs included
https://gmic.eu/color_presets/
included a 22MB LutSamples.pdf to quickly browse all LUTs. Or on Mac/Windows use free app Lutme https://fractale.itch.io/lutme
most ligature fonts from these two studios
https://www.fontspace.com/177studio
https://www.fontspace.com/putracetol-studio
mpv manual
https://mpv.io/manual/stable/
uosc - UI (user interface/ menu)
https://github.com/tomasklaen/uosc
550+ LUTs included
https://gmic.eu/color_presets/
included a 22MB LutSamples.pdf to quickly browse all LUTs. Or on Mac/Windows use free app Lutme https://fractale.itch.io/lutme
now includes substitcher (transcribing subs and merging up to 200 subs into one)
edit: forgot to delete a lua script which is a work in progress
mpv configuration geektips
Works on Mac and Linux. Windows not quite yet. Use PotPlayer in meantime. Revamped Make opus chaptered audiobooks (titlecase)
110+ fonts, 560 color presets, 550+ LUTs, editing of videos either by slicing or encoding and combining them, Easily create opus chaptered audiobooks with black png cover. Search subs, audio visualizers, Create Mason Gallery up to 999k images on one html page with avif images 1/2 size compared to jpg. Create mp4 av1 video slideshow 1/3 size to x264. Unlimited Bookmarks adds filename & chapter. Search playlist, iptv lists, chapters, history.
Install mpv
Mac install brew first (the pkg from homepage)
brew install --cask mpv
Linux
sudo apt install mpv
Easy setup..unzip this file to ~/.config/mpv
Mac in Finder, Go | Go to Folder | ~/.config/mpv
Open mpv | Utilities | Copy to Terminal | One Time Setup (1 of 2) either for Mac or Linux (paste command in Terminal)
Utilities | Advanced | One time setup (2 of 2) create directories.
@Geektips
edit: forgot to delete a lua script which is a work in progress
mpv configuration geektips
Works on Mac and Linux. Windows not quite yet. Use PotPlayer in meantime. Revamped Make opus chaptered audiobooks (titlecase)
110+ fonts, 560 color presets, 550+ LUTs, editing of videos either by slicing or encoding and combining them, Easily create opus chaptered audiobooks with black png cover. Search subs, audio visualizers, Create Mason Gallery up to 999k images on one html page with avif images 1/2 size compared to jpg. Create mp4 av1 video slideshow 1/3 size to x264. Unlimited Bookmarks adds filename & chapter. Search playlist, iptv lists, chapters, history.
Install mpv
Mac install brew first (the pkg from homepage)
brew install --cask mpv
Linux
sudo apt install mpv
Easy setup..unzip this file to ~/.config/mpv
Mac in Finder, Go | Go to Folder | ~/.config/mpv
Open mpv | Utilities | Copy to Terminal | One Time Setup (1 of 2) either for Mac or Linux (paste command in Terminal)
Utilities | Advanced | One time setup (2 of 2) create directories.
@Geektips
HTML Embed Code: