Skip to content

Instantly share code, notes, and snippets.

@protrolium
protrolium / ffmpeg.md
Last active July 12, 2024 17:37
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@aiworld
aiworld / deep_drive_model.prototxt
Last active August 10, 2021 06:03
DeepDrive - Vision model that drives in GTAV
name: "GTANet"
# Can be used with pretrained Caffenet (AlexNet architecture).
# Layers with names containing 'gtanet' are not transferred from Caffenet.
layer {
name: "gta_frames_input_layer"
type: "HDF5Data"
top: "images"
top: "targets"
@agarwalparas
agarwalparas / gist:d355a950148702cc7ba82abc4d1943bf
Created November 3, 2017 04:06
Recover Force Push on Github
# First, you must get the previous commit sha, the one before the forced push:
## Hit through terminal
curl -u <username> https://api.github.com/repos/:owner/:repo/events
# Then you can create a branch from this sha:
## Hit through terminal
curl -u <github-username> -X POST -d '{"ref":"refs/heads/<new-branch-name>", "sha":"<sha-from-step-1>"}' https://api.github.com/repos/:owner/:repo/git/refs