Author: frank

Backbone Collection Flexible Value Sorting Solution 0

Backbone Collection Flexible Value Sorting Solution

Model/Collection Declaration Inputs.Collection = Backbone.Collection.extend({ model: Inputs.Model, url: "/apis/v2/inputs", sortAttribute: "name", // supported attributes are model's element names + any custom strategies below comparator: function(model) { return Utils.genericComparator.call(this, model); }, strategies: {}, changeSort: function...

Convert a TS file to MP4 using ffmpeg Looselessly 0

Convert a TS file to MP4 using ffmpeg Looselessly

$> ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i ~/assets/input.ts -c:v copy -c:a copy ~/assets/output.mp4 analyzeduration and probesize are just a safety in case the GOP size is very high in TS stream. You might not need...

HEVC Decoding in the Browser 0

HEVC Decoding in the Browser

On Windows 10, in Edge, it is already available. I however needed to install manually this extension from Microsoft https://www.microsoft.com/en-ca/store/p/hevc-video-extension/9n4wgh0z6vhq     In terms of Javascript video player, Bitmovin supports HLS HEVC.  

Create USB from ISO in Mac 0

Create USB from ISO in Mac

List all disks diskutil list Output: % diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage Macintosh HD 250.1 GB...

Docker Quickstart Guide 0

Docker Quickstart Guide

Glossary host => the real machine container => inside host Start Docker Docker won't run by default after reboot. sudo systemctl start docker Verify that docker is installed correctly by running the hello-world image. sudo docker run hello-world...