ffmpeg -i *.mp4 -vf subtitles=*.srt output.mp4
ffmpeg -i audio.aac -i ch2.h264 -acodec copy -vcodec copy -f mpegts out.ts
ffmpeg -rtsp_transport tcp -i rtsp://fuck.com/fuck/fuck -c copy -f flv rtmp://shit.com/shit/shit
| #include <iostream> | |
| #include <sstream> | |
| #include <functional> | |
| #include <vector> | |
| template <typename T, typename U> | |
| U foldLeft(const std::vector<T>& data, | |
| const U& initialValue, | |
| const std::function<U(U,T)>& foldFn) { | |
| typedef typename std::vector<T>::const_iterator Iterator; |
| // @credit: http://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer | |
| // From Buffer to ArrayBuffer: | |
| function toArrayBuffer(buffer) { | |
| var ab = new ArrayBuffer(buffer.length); | |
| var view = new Uint8Array(ab); | |
| for (var i = 0; i < buffer.length; ++i) { | |
| view[i] = buffer[i]; | |
| } |
| """ | |
| Displays WoW health and mana status on a Razer Chroma keyboard. | |
| Installation (Windows): | |
| $ virtualenv venv | |
| $ pip install requests | |
| $ easy_install pillow | |
| Usage: | |
| - Run WoW client fullscreen on main monitor |
| // own.rim.db.gundb-graphdb-api-notes.js | |
| // JavaScript based graph-DB module developer user guide wishes | |
| // created by Leonard Pauli, 28 aug 2019 | |
| // | |
| /* includes: | |
| install/access module | |
| (add, remove, change, traverse) values | |
| get current value | |
| simple data structures (set) | |
| (subscribe, unsubscribe) to changes |
| //CLIENT | |
| Gun.on('opt', function (ctx) { | |
| if (ctx.once) { | |
| return | |
| } | |
| this.to.next(ctx) | |
| ctx.on('auth', function(msg){ | |
| let to = this.to | |
| clientAuth(ctx) | |
| function clientAuth(ctx){ |
| /* | |
| remote-data ported to ReasonML | |
| See also https://github.com/krisajenkins/remotedata | |
| Tools for fetching data from remote sources (incl. HTTP). | |
| */ | |
| type remoteData 'e 'a | |
| = NotAsked | |
| | Loading |
| /* Graph */ | |
| exception Not_found; | |
| type nodes = list(int); | |
| type edges = list((int, int)); | |
| type graph = | |
| | Empty | |
| | Graph(nodes, edges); |
| /* AVL Tree */ | |
| /* A balanced Binary Search Tree */ | |
| exception Undefined; | |
| module type AvlTree = { | |
| type t = int; | |
| type height = int; | |
| type tree('t) = | |
| | Leaf | |
| | Node(height, tree('t), 't, tree('t)); |