This amazing script by Noah Veltman allows to create videos from d3.
npm install canvas topojson d3 rw
node draw.js | ffmpeg -y -c:v png -f image2pipe -r 20 -i - -an -c:v libx264 -pix_fmt yuv420p -movflags +faststart myvideo.mp4
| license: gpl-3.0 | |
| height: 960 |
This amazing script by Noah Veltman allows to create videos from d3.
npm install canvas topojson d3 rw
node draw.js | ffmpeg -y -c:v png -f image2pipe -r 20 -i - -an -c:v libx264 -pix_fmt yuv420p -movflags +faststart myvideo.mp4
| license: gpl-3.0 |
| <!DOCTYPE html> | |
| <html> | |
| <!-- | |
| Copyright 2011 Google Inc. | |
| 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 |
| #! /usr/bin/php -q | |
| <?php | |
| define ('MYSQL_ROOT', 'root'); | |
| define ('MYSQL_PASS', 'passwd'); | |
| # connexion a la base | |
| $conn = mysql_connect('localhost', 'root', 'tapioca'); | |
| if (!$conn) die ('erreur connexion DB '.mysql_error()); |