Skip to content

Instantly share code, notes, and snippets.

View amatas's full-sized avatar

Alfredo Matas amatas

View GitHub Profile
@amatas
amatas / mobile.video.encoding.md
Created May 5, 2020 12:29 — forked from pinge/mobile.video.encoding.md
Video and audio encoding for playback in Android and iOS devices

Video and audio encoding for playback in Android and iOS devices

This document aims to provide an easy way encode video optimized for playback in mobile devices that use the Android or the iOS operating systems.

libx264 is used for (single or two-pass) video encoding and libfdk_aac for audio encoding.

ffmpeg, libx264 and libfdk_aac settings are optimized for playback quality and compatibility on Android and iOS. There is extensive documentation and references for each of the settings used and contributions are very welcome :)

Keybase proof

I hereby claim:

  • I am amatas on github.
  • I am amatas (https://keybase.io/amatas) on keybase.
  • I have a public key ASDVhM_YfrZ3e_aIJ-EnEvp8nEVPU4gndapqJSfJnLnNTwo

To claim this, I am signing this object:

@amatas
amatas / yaourt_install.sh
Created February 8, 2016 06:36
Yaourt install archlinux
mkdir /tmp/packages
cd /tmp/packages
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
tar zxvf package-query.tar.gz
cd package-query/
makepkg -si
cd ..
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
tar zxvf yaourt.tar.gz
cd yaourt/
@amatas
amatas / Vagrantfile_build_Couchdb.rb
Last active December 1, 2015 07:25
Vagrantfile used to build CouchDB on CentOS
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "inclusivedesign/centos7"
config.vm.network "forwarded_port", guest: 5984, host: 5984
config.vm.provider "virtualbox" do |vb|
/*
* Copyright 2014 OCAD University
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* The research leading to these results has received funding from the European Union's
* Seventh Framework Programme (FP7/2007-2013)
* under grant agreement no. 289016.
*
@amatas
amatas / build_GPIIWindows8.ps1
Last active August 29, 2015 14:27
Script to build GPIIWindows8
function EnsurePsbuildInstlled{
[cmdletbinding()]
param(
[string]$psbuildInstallUri = 'https://raw.githubusercontent.com/ligershark/psbuild/master/src/GetPSBuild.ps1'
)
process{
if(-not (Get-Command "Invoke-MsBuild" -errorAction SilentlyContinue)){
'Installing psbuild from [{0}]' -f $psbuildInstallUri | Write-Verbose
(new-object Net.WebClient).DownloadString($psbuildInstallUri) | iex