Skip to content

Instantly share code, notes, and snippets.


Rajendra bkrajendra

View GitHub Profile
bkrajendra /
Created July 6, 2020 06:42 — forked from protrolium/
ffmpeg guide


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

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

bkrajendra /
Last active September 1, 2019 10:02 — forked from elktros/
LED Blink with Python RPI
#!/usr/bin/env python
import RPi.GPIO as GPIO # RPi.GPIO can be referred as GPIO from now
import time
ledPin = 22 # pin22
def setup():
GPIO.setmode(GPIO.BOARD) # GPIO Numbering of Pins
GPIO.setup(ledPin, GPIO.OUT) # Set ledPin as output
GPIO.output(ledPin, GPIO.LOW) # Set ledPin to LOW to turn Off the LED
bkrajendra / video_details.php
Created September 22, 2018 03:09 — forked from djekl/video_details.php
Get Video Details from YouTube or Vimeo
View video_details.php
$urls = array();
$videos = array();
// vimeo test
$urls[] = '';
$urls[] = '';
// youtube test