Skip to content

Instantly share code, notes, and snippets.

@maximebories
maximebories / convert.md
Last active May 6, 2025 15:49
FFmpeg command to convert webm to mp4 video files

WebM to MP4 using FFmpeg

This FFmpeg command converts a .webm video file to a standard .mp4 file using the libx264 codec for video, aac codec for audio, and a CRF value of 22. The preset is set to 'slow' for higher quality encoding, and the audio bitrate is set to 128 kbps.

If the input and output filenames don't contain spaces, quotation marks or other special characters:

ffmpeg -i input.webm -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 128k output.mp4
@maximebories
maximebories / homebrew.mxcl.minidlnad.plist
Last active March 30, 2023 20:17
miniDLNA Homebrew Service
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.minidlnad</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
@maximebories
maximebories / chatgpt-larger-sidebar.js
Last active April 12, 2023 21:34
ChatGPT Larger Sidebar UserStyle
/* ==UserStyle==
@name ChatGPT
@description ChatGPT Larger Sidebar
@match https://chat.openai.com/*
==/UserStyle== */
/* Division */
#__next .overflow-hidden .md\:flex {
width: 420px;
}
@maximebories
maximebories / yt-no-comments.js
Last active April 12, 2023 21:35
Hides YouTube Comments UserStyle
/* ==UserStyle==
@name YT-comments
@description Hides youtube comments
@match https://www.youtube.com/watch?v=*
@run-at document-idle
==/UserStyle== */
ytd-comments {
display: none !important;
}