Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| import ddf.minim.*; | |
| Minim minim; | |
| AudioInput in; | |
| void setup() | |
| { | |
| minim = new Minim(this); | |
| in = minim.getLineIn(); | |
| } |
| #include <PubSubClient.h> | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "................."; | |
| const char* password = "................"; | |
| char* topic = "esp8266_arduino_out"; | |
| char* server = "iot.eclipse.org"; | |
| #include <gst/gst.h> | |
| static void | |
| fakesink_handoff (GstElement* object, GstBuffer* arg0, GstPad* arg1, gpointer data) | |
| { | |
| static gint cnt=0; | |
| GstElement *pipeline = GST_ELEMENT(data); | |
| (void)object; | |
| (void)arg0; | |
| (void)arg1; |
| /* | |
| * tiny_IRremote | |
| * Version 0.2 July, 2016 | |
| * Christian D'Abrera | |
| * Fixed what was originally rather broken code from http://www.gammon.com.au/Arduino/ | |
| * ...itself based on work by Ken Shirriff. | |
| * | |
| * This code was tested for both sending and receiving IR on an ATtiny85 DIP-8 chip. | |
| * IMPORTANT: IRsend only works from PB4 ("pin 4" according to Arduino). You will need to | |
| * determine which physical pin this corresponds to for your chip, and connect your transmitter |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>A simple clock</title> | |
| </head> | |
| <body translate="no" > |