This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It's actually quite simple to extract unregistered sei data using ffmpeg, but I couln't find any documentation about how it's done | |
AVFrameSideData *sd; | |
sd = av_frame_get_side_data(frame, AV_FRAME_DATA_SEI_UNREGISTERED); | |
if (sd) { | |
// First 15 bytes is the uuid, unregistered payload start at index 16 and the | |
// total size is given by sd->size | |
printf("side-data size %ld first-byte %u\n", sd->size, sd->data[16]); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# vqm Run and parse the output of mitsuLinuxMultithread. | |
# Generate a xlsx-file with all the data as well as a summary sheet. | |
# Tested on Linux only. | |
# | |
# USAGE: vqm path | |
# | |
# NOTE: YCbcr files needs to be adhere to the following naming convention: | |
# NAME_WIDTHxHEIGHT_FPS_...yuv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
- ae(v): context-adaptive arithmetic entropy-coded syntax element. The parsing process for this descriptor is | |
specified in clause 9.3. | |
- b(8): byte having any pattern of bit string (8 bits). The parsing process | |
for this descriptor is specified by the return value of the function | |
read_bits( 8 ). | |
- f(n): fixed-pattern bit string using n bits written (from left to right) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use pkg-config for getting CFLAGS and LDLIBS | |
FFMPEG_LIBS= libavdevice \ | |
libavformat \ | |
libavfilter \ | |
libavcodec \ | |
libswresample \ | |
libswscale \ | |
libavutil \ | |
CFLAGS += -Wall -g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pygame | |
import Image | |
import sys | |
W = 352 | |
H = 288 | |
WH = (W, H) | |
pygame.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pygame | |
W = 352 | |
H = 288 | |
WH = (W, H) | |
pygame.init() | |
screen = pygame.display.set_mode(WH) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import string | |
def check_length(s): | |
'''return length | |
>>> check_length('this is a string') | |
16 | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decoding foreman_qcif_030kbps_15fps.264 | |
*** Decoding NAL number 0 *** | |
NAL decoded | |
*** Decoding NAL number 1 *** | |
NAL decoded | |
*** Decoding NAL number 2 *** | |
Bytes picture (VCL only): 851 |