Here's the code:
main.go
package main
import (
"context"
"encoding/base64"
Here's the code:
main.go
package main
import (
"context"
"encoding/base64"
/* | |
* | |
Go-astiav Image to H264 Encoder | |
This is a simple example of how to convert an image to H264 video using go-astiav. | |
*/ | |
package main | |
import ( | |
"errors" | |
"fmt" |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Person struct { | |
Name string | |
Age int |
# usage: cd ffmpeg && patch -p1 --verbose < ../diff_reverse.patch | |
# | |
# created using: | |
# | |
# using normal diff (generate a patch from b, for a) | |
# $ diff -Naru a b > diff.patch | |
# $ cd ffmpeg && patch -p1 --dry-run --verbose < ../diff.patch | |
# | |
# using reverse patching (when you want to reverse a patch) | |
# a is patched. b is original source 7.0 |
# Build ffmpeg and go-astiav using msys2 on windows | |
# code was created from workflow file (https://github.com/asticode/go-astiav/blob/bc148523bc707cb628df76f2811c579d8b69ce9b/.github/workflows/test.yml) | |
# and patch (https://github.com/asticode/go-astiav/blob/bc148523bc707cb628df76f2811c579d8b69ce9b/.github/workflows/windows.patch) | |
# and makefile (https://github.com/asticode/go-astiav/blob/bc148523bc707cb628df76f2811c579d8b69ce9b/Makefile) | |
# Variables | |
$InstallPath = "$PWD\compile" | |
$Msys2Path = "$InstallPath\msys64" |
#!/bin/bash | |
set -e | |
if [[ -z "${FFRUST_VC_PATH}" ]]; then | |
if [[ -n "${FFRUST_RECURSING}" ]]; then | |
echo "Something went terribly wrong with our MVSC/msys2 magic" | |
exit 1 | |
fi |
1. Install MSYS2 from https://msys2.github.io/ | |
2. Install Mingw-W64 `pacman -S mingw-w64-i686-gcc` | |
3. Install git autoconf automake libtool make pkg-config | |
`pacman -S git` | |
`pacman -S autoconf` | |
`pacman -S automake` | |
`pacman -S libtool` | |
`pacman -S make` | |
`pacman -S pkg-config` | |
4. yasm:http://yasm.tortall.net/,change to yasm.exe,move to C:\msys32\usr\bin |
As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874
items)
Note: This script only tested in the latest version of Chrome.
run.js
)func useGamepad(gamepad VigemGamepad) { | |
gamepad.Connect() | |
gamepad.UpdateState() | |
// Use other methods as needed | |
gamepad.Disconnect() | |
} | |
// Usage | |
x360 := &X360Gamepad{BaseGamepad: BaseGamepad{Model: "X360", ModelID: 1}} | |
ds4 := &DS4Gamepad{BaseGamepad: BaseGamepad{Model: "DS4", ModelID: 2}} |
package main | |
import "fmt" | |
// Animal interface | |
type Animal interface { | |
Speak() string | |
} | |
// Bird struct |