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:
import { | |
Object3D, | |
Cache, | |
Texture, | |
PlaneGeometry, | |
MeshLambertMaterial, | |
Mesh, | |
ClampToEdgeWrapping, | |
RepeatWrapping, | |
MirroredRepeatWrapping, |
var cameraZ = camera.position.z; | |
var planeZ = 5; | |
var distance = cameraZ - planeZ; | |
var aspect = viewWidth / viewHeight; | |
var vFov = camera.fov * Math.PI / 180; | |
var planeHeightAtDistance = 2 * Math.tan(vFov / 2) * distance; | |
var planeWidthAtDistance = planeHeightAtDistance * aspect; | |
// or |
Global : | |
- Dont use PIXI.Graphics | |
- render elements in the order of atlas/textures used : for 2 atlas or texture A & B, then render elements using AAAABBB instead of ABABABA | |
- On branch next from Pixi there is PIXI.mesh.Geometry & shaders very good for perf | |
http://dev.goodboydigital.com/client/goodboy/geometry/examples/index.html#/mesh/uniforms.js | |
- prefer generateSprite to cacheasbitmap to cache container/no animated element | |
Spritesheets: | |
- Use spritesheets whenever its possible | |
- Scales them down to 50% on mobile/tablet |
import { | |
EventDispatcher, | |
Vector2, | |
Vector3, | |
MOUSE, | |
Quaternion, | |
Spherical, | |
PerspectiveCamera, | |
OrthographicCamera, | |
} from 'three'; |
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |
/*! | |
* Copyright 2015 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<path id="svg" fill="#5DD7FC" d="M0.5,262.094c0,0,52.172,79.049,158.323,77.241c68.433-2.031,165.549-32.296,191.523-132.123 | |
c0,0,27.893,4.742,47.654-16.939c-26.99,3.727-44.944-4.743-44.944-4.743s35.346-1.017,43.137-21.908 | |
c-20.89,9.035-46.751,1.355-46.751,1.355S337.245,90.22,262.939,87.51c0,0,39.713-8.093,33.502-17.24 | |
c-4.968-6.663-32.597,5.722-32.597,5.722s15.396-6.776,15.057-14.003c-15.584,1.806-29.888,13.325-29.888,13.325 | |
s4.365-7.001,4.44-9.937c-37.114,20.628-62.334,97.455-62.334,97.455s-9.411-10.427-25.07-21.72 | |
C128.257,118.829,58.544,92.479,58.544,92.479s-4.668,28.759,32.522,49.838c-15.207,1.205-22.886,3.162-22.886,3.162 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Building a router</title> | |
<script> | |
// Put John's template engine code here... | |
(function () { | |
// A hash to store our routes: |