Skip to content

Instantly share code, notes, and snippets.

Axel Isouard aisouard

Block or report user

Report or block aisouard

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aisouard /
Last active Apr 26, 2017
Sample cefpython
# Hello world example. Doesn't depend on any third party GUI framework.
# Tested with CEF Python v55.3+.
from cefpython3 import cefpython as cef
import numpy as np
import cv2
import platform
import sys
VIEWPORT_SIZE = (359, 640)
mount 2017-03-02-raspbian-jessie-lite.img -o offset=$((137216 * 512)) /mnt/rpi/
emacs /mnt/rpi/etc/fstab # Comment the two lines under the first one
touch /mnt/rpi/etc/
umount /mnt/rpi
qemu-system-arm -M versatilepb -cpu arm1176 -kernel kernel-qemu -hda 2017-03-02-raspbian-jessie-lite.img -serial stdio -no-reboot -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw"
mount 2017-03-02-raspbian-jessie-lite.img -o offset=$((137216 * 512)) /mnt/rpi/
emacs /mnt/rpi/etc/ # Comment the first line
umount /mnt/rpi
aisouard / readVariableInt.js
Last active Aug 2, 2018
Reading an EBML variable-length integer
View readVariableInt.js
* Read an EBML tag header or length and return their respective values into
* single numbers.
* @example
* var tagHeader = new Uint8Array([0x1A, 0x45, 0xDF, 0xA3, 0x01, 0x00, 0x00,
* 0x00, 0x00, 0x00, 0x00, 0x1F]);
* var tagId = readVariableInt(tagHeader, 4, 0);
* console.log('The current tag ID is: ', tagId.value, ', skipping ', tagId.size, ' bytes.');
* // The current tag ID is: 172351395, skipping 4 bytes.
aisouard / peeracle-sample-1.cpp
Last active Nov 11, 2019
View peeracle-sample-1.cpp
using namespace peeracle;
// Ouvrir le fichier de métadonnées
DataStreamInit init;
init.path = "./ma_video.peeracle";
DataStreamInterface *dataStream = new FileDataStream(init);
// Charger le fichier de métadonnées
MetadataInterface *metadata = new Metadata();
View gist:043c67b63bbd3cf5f75c
cmake_minimum_required(VERSION 3.2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
aisouard / parse.c
Created Jun 8, 2015
Parseur de fichier de métadonnés
View parse.c
#include <stdio.h>
#include <stdlib.h>
unsigned int swap_uint32(unsigned int num) {
unsigned int swapped;
swapped = ((num >> 24) & 0xff) |
((num << 8) & 0xff0000) |
((num >> 8) & 0xff00) |
((num << 24) & 0xff000000);
return swapped;
aisouard / vlc-min-configure
Created Jun 5, 2015
vlc minimal configure
View vlc-min-configure
./configure --enable-static --disable-shared --disable-archive --disable-live555 --disable-dc1394 --disable-dv1394 --disable-linsys --disable-dvdread --disable-dvdnav --disable-bluray --disable-opencv --disable-smbclient --disable-dsm --disable-sftp --disable-v4l2 --disable-decklink --disable-gnomevfs --disable-vcdx --disable-vcd --disable-libcddb --disable-screen --disable-vnc --disable-freerdp --disable-realrtsp --disable-macosx-eyetv --disable-macosx-qtkit --disable-macosx-avfoundation --disable-asdcp --disable-dvbpsi --disable-gme --disable-sid --disable-ogg --disable-shout --disable-mkv --disable-mod --disable-mpc --disable-wma-fixed --disable-shine --disable-omxil --disable-omxil-vout --disable-rpi-omxil --disable-crystalhd --disable-mad --disable-mpg123 --disable-merge-ffmpeg --disable-gst-decode --disable-avcodec --disable-libva --disable-dxva2 --disable-vda --disable-avformat --disable-swscale --disable-postproc --disable-faad --disable-vpx --disable-twolame --disable-fdkaac --disable-quicktime --dis
View gist:feca4c78911a6107e4af
./configure --enable-static --disable-shared --with-pic --disable-gopher --disable-smtp --disable-smb --disable-imap --disable-pop3 --disable-tftp --disable-telnet --disable-dict --disable-rtsp --disable-ldaps --disable-ldap --disable-file --disable-ftp --without-libssh2 --without-librtmp
View dash-avc264 command lines
See my DASH-IF presentation from October, 2014:
1. encode multiple bitrates with keyframe alignment:
ffmpeg -i ~/Movies/5D2_Portrait.MOV -s 1280x720 -c:v libx264 -b:v 1450k -bf 2 \
-g 90 -sc_threshold 0 -c:a aac -strict experimental -b:a 96k -ar 32000 out.mp4
My input was 30 fps = 3000 ms. If it were 29.97, then a GOP size of 90 frames will yield a base segment
size of 3003 milliseconds. You can make the segment size some multiple of this, e.g.: 6006, 9009, 12012.
View node-webrtc_win32_test
>npm test
> wrtc@0.0.55 test C:\Users\vm\node-webrtc
> node test/all.js
TAP version 13
# create a peer connection
ok 1 created
# createOffer function implemented
ok 2 implemented
You can’t perform that action at this time.