A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
The full context of the code shown here can be viewed here
|-- package.json
|-- docker-compose.yml
|-- config.js
|-- table_tennis.sql
|-- zseeds.sql
app.filter('secondsToDateTime', [function() { | |
/** | |
* This code returns a date string formatted manually. | |
* Code "new Date(1970, 0, 1).setSeconds(seconds)" returns malformed output on days. | |
* Eg. 4 days, magically becomes 5, 15 becomes 16 and so on...; | |
* */ | |
return function(seconds) { | |
var days = Math.floor(seconds/86400); | |
var hours = Math.floor((seconds % 86400) / 3600); | |
var mins = Math.floor(((seconds % 86400) % 3600) / 60); |
<!DOCTYPE html> | |
<head> | |
<script type='text/javascript'> | |
window.onload = function () { | |
var video = document.getElementById('videoId'); | |
var canvas = document.getElementById('canvasId'); | |
var img = document.getElementById('imgId'); | |
video.addEventListener('play', function () { | |
canvas.style.display = 'none'; |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<div id="popup" style="background-color:green;position:absolute;top:0px;left:0px;width:250px;height:250px;z-index:9999;box-shadow: 6px 6px 5px #888888;border-radius:6px;border:1px solid #4f4f4f;"> | |
<div id="popup_bar" style="width:100%;background-color:#aaff66;position:relative;top:0;border-radius:6px 6px 0 0; text-align:center;height:24px;cursor:move">Title</div> | |
<p>Content of the popup</p> | |
</div> | |
</body> |
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
var http = require('http') | |
var fs = require('fs') | |
var argv = require('optimist').argv | |
var rxVideoID = /v=([\]\[!"#$%'()*+,.\/:;<=>?@\^_`{|}~-\w]*)/ | |
var link = argv._.toString() | |
var videoID = link.match(rxVideoID)[1] | |
http.get("http://www.youtube.com/get_video_info?video_id="+videoID, function(res) { | |
var chunks = [] |