I hereby claim:
- I am sunsetmkt on github.
- I am sunsetmkt (https://keybase.io/sunsetmkt) on keybase.
- I have a public key ASBr_SH5s2xcyPYzvdCt8TflHf8SSYePagfn5xaZbd9ycQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
1. Install ffmpeg: | |
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
2. Convert: | |
ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm |
{ | |
"PresetList": [ | |
{ | |
"AlignAVStart": true, | |
"AudioCopyMask": [], | |
"AudioEncoderFallback": "av_aac", | |
"AudioLanguageList": [ | |
"any" | |
], | |
"AudioList": [ |
export default { | |
async fetch(request, env, ctx) { | |
const maxSize = 1 * 1024 * 1024; // 1 MB | |
if (request.method !== 'POST' || !request.url.endsWith('/csp-reports')) { | |
return new Response('Endpoint not found. Please POST to /csp-reports', { | |
status: 404, | |
headers: { 'Content-Type': 'text/plain' } | |
}); | |
} |
// modified from | |
// https://developers.cloudflare.com/workers/examples/read-post/ | |
// https://developers.cloudflare.com/workers/examples/cors-header-proxy/ | |
async function readRequestBody(request, url) { | |
const { headers, method } = request; | |
const contentType = headers.get("content-type") || ""; | |
const headersObj = Object.fromEntries(headers); |
Detects if you have a common installation path to extract the Wuthering Waves Convene History API URL from your local game logs. Otherwise, it will ask for you to input your own game path.
This script does not edit your files, it simply reads them and copies a substring to your clipboard for visualization purposes.
Important
This script only works in Windows PowerShell and not in MacOS, Linux, or Android devices.