Skip to content

Instantly share code, notes, and snippets.

View 47ronin's full-sized avatar
👨‍🚀
🖌

Glenn Batuyong 47ronin

👨‍🚀
🖌
View GitHub Profile
@47ronin
47ronin / fixhevc.sh
Last active May 29, 2023 00:05
Batch fix HEVC MP4 screen captures from OBS so they are usable on macOS (QuickTime and Final Cut Pro). Preserves modification date.
#!/bin/bash
for i in *.mp4
do \
ffmpeg -i "$i" -map_metadata 0 -c:v copy -c:a copy -tag:v hvc1 "$HOME/PATH/${i%.*}.mp4"
touch -r "$i" "$HOME/PATH/${i%.*}.mp4"
done
@47ronin
47ronin / gist:09fa72900835dfbf54e0061a3f93e44b
Created June 1, 2023 07:45
Use a Samba share from within Linux or WSL environment
sudo mount -t cifs -o rw,vers=3.0,user=USER,uid=USER //URL/SHARENAME /mnt/MOUNTNAME
cd /mnt/MOUNTNAME/PATH/TO/WHATEVER
[do stuff]
sudo umount /mnt/MOUNTNAME