View content
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 |
View username.py
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 | |
''' |
View overlay.py
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) |
View rgb.py
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() |
View parse_h265.py
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) |
View Makefile
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 |
View vqm.py
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 |
View gist:d3cff69be815491eff1ac9338aa78add
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]); | |