$ uname -r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Problem happens regardless of duration, but unless using | |
| // the `.velocity-animating` CSS hack it is easier to see with longer durations. | |
| const options = {duration: 1000, easing: 'easeInOutQuad'}; | |
| export default function(){ | |
| this.transition( | |
| // this works | |
| //this.use('fade') | |
| // this has a glitch; can see second copy/ghost of modal in top left when closing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Draw an arrowhead on a line on an HTML5 canvas. | |
| * | |
| * Based almost entirely off of http://stackoverflow.com/a/36805543/281460 with some modifications | |
| * for readability and ease of use. | |
| * | |
| * @param context The drawing context on which to put the arrowhead. | |
| * @param from A point, specified as an object with 'x' and 'y' properties, where the arrow starts | |
| * (not the arrowhead, the arrow itself). | |
| * @param to A point, specified as an object with 'x' and 'y' properties, where the arrow ends |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -re \ | |
| # -re (input) | |
| # Read input at native frame rate. Mainly used to simulate a grab device, or live input stream (e.g. when reading from a file). Should not be used with actual grab devices or live input streams (where it can cause packet loss). By default ffmpeg attempts to read the input(s) as fast as possible. This option will slow down the reading of the input(s) to the native frame rate of the input(s). It is useful for real-time output (e.g. live streaming). | |
| # (!) Turns out this will interrupt the stream by the audio input, making the output stream fps looks extremely low | |
| -pix_fmt uyuv442 \ | |
| -framerate 30 \ | |
| -f avfoundation \ | |
| # Pixel format & Framerate for FFMPEG-device: https://www.ffmpeg.org/ffmpeg-devices.html#avfoundation | |
| -i "0" \ | |
| # Use input "0" from avfoundation |
OlderNewer