Skip to content

Instantly share code, notes, and snippets.

@tigefabot
tigefabot / gen-ubuntu-sources-list.py
Last active March 20, 2021 13:25 — forked from JonasGroeger/gen-ubuntu-sources-list.py
Generates '/etc/apt/sources.list' compatible lists for Ubuntu releases
#!/usr/bin/env python3
import argparse
import getpass
import os
import time
import sys
KNOWN_CODENAMES = ['trusty', 'xenial', 'bionic', 'focal', 'utopic', 'vivid', 'wily', 'disco']
@tigefabot
tigefabot / ffmpeg-10bit.md
Last active October 4, 2022 11:33
ffmpeg 10bit

If you have an appropriately configured modern version of FFmpeg and x265, (the repository FFmpeg under Zesty Zapus 17.04 falls into this category), you should find encoding with 8, 10 and 12bit fairly straightforward.

I illustrate a sample command line for each below:

1. 8bit HEVC encoding with FFmpeg...

Check the capability of your installed version of x265 for 8bit encoding as follows:

andrew@illium~$ x265 -V

x265 [info]: HEVC encoder version 2.4

@tigefabot
tigefabot / ffmpeg_command_snippets.txt
Created February 20, 2021 15:58 — forked from gilson27/ffmpeg_command_snippets.txt
My quick command snippets (ffmpeg)
///////////////////////////////////////////// FFMPEG snippets ////////////////////////////////////////////////////
ffmpeg -f rawvideo -vcodec rawvideo -s 1920x1080 -r 30 -pix_fmt yuv420p -i crowdRun_D.yuv -codec:v v210 output.mov
ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a libfaac -b:a 192k -ac 2 out.mp4
==================================================================================================================
Decode 10 bit mov capture as yuv v210
------------------------------------------------------------------------------------------------------------------
@tigefabot
tigefabot / git.sh
Last active November 26, 2020 14:49
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt update
sudo apt install -y git
@tigefabot
tigefabot / 00-electerm.md
Last active October 11, 2020 18:01
sync electerm data

Hello World

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

@tigefabot
tigefabot / phpbrew-dep.sh
Last active July 23, 2016 06:06
The requirements Ubuntu
sudo apt-get build-dep php5 -y
sudo apt-get install -y php5 php5-dev php-pear autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev re2c libxml2 libxml2-dev php5-cli bison libbz2-dev libreadline-dev
sudo apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libxpm4 libltdl7 libltdl-dev
sudo apt-get install -y libssl-dev openssl
sudo apt-get install -y gettext libgettextpo-dev libgettextpo0
sudo apt-get install -y libicu-dev
sudo apt-get install -y libmhash-dev libmhash2
sudo apt-get install -y libmcrypt-dev libmcrypt4
sudo apt-get install -y php5 php5-dev php-pear autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev re2c libxml2 libxml2-dev php5-cli bison libbz2-dev libreadline-dev libicu-dev
sudo apt-get install -y autoconf automake binutils-dev build-essential cmake g++ gawk git \
libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
libboost-system-dev libboost-thread-dev libboost-context-dev libbz2-dev libc-client-dev libldap2-dev \
libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \
libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \
libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev \
libevent-dev libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev \
libiberty-dev libxslt1-dev ocaml-native-compilers libsqlite3-dev libyaml-dev libgmp3-dev \
gperf libkrb5-dev libnotify-dev