Skip to content

Instantly share code, notes, and snippets.

View brainwo's full-sized avatar
💭

Brian Wo brainwo

💭
View GitHub Profile
@brainwo
brainwo / .inputrc
Created August 16, 2023 20:27 — forked from erikmchut/.inputrc
My .inputrc with both emacs + vim goodness
# Use Unicode & do NOT use the "8bit hack" to input/output non-ASCII characters
set input-meta on
set output-meta on
set convert-meta off
# Ignore completion case
set completion-ignore-case On
set match-hidden-files Off
set bell-style visible
@brainwo
brainwo / telegram_video_sticker_ffmpeg.md
Last active December 19, 2024 22:27 — forked from xacnio/telegram_video_sticker_ffmpeg.md
Telegram - Create Video Sticker (.WEBM) with FFMPEG

Command

ffmpeg -y -i animated_sticker.mov -r 30 -t 2.99 -an -c:v libvpx-vp9 -pix_fmt yuva420p -s 512x512 -b:v 400K output.webm
  • If .webm file size greater than 256 KB, you should reduce "-b:v 400K"
  • .mov video file may has alpha channel but not required.
  • My video sticker pack for example: https://t.me/addstickers/msn_animations

Telegram Sticker Command

# This is a blocklist to block samsung smart tv's sending meta data at home.
# Please help to collect domains!
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident.
device-metrics-us.amazon.com
samsungacr.com
samsungcloudsolution.com
samsungcloudsolution.net
pavv.co.kr
samsungotn.net