#!/bin/sh ''''exec python3 -O -- "$0" ${1+"$@"} # ''' #!/usr/bin/env python3 # -*- coding: iso-8859-15 -*- # Decompression of the motin vector fields using J2K. # {{{ Imports from shell import Shell as shell from arguments_parser import arguments_parser from colorlog import ColorLog import logging log = ColorLog(logging.getLogger("subband_motion_expand__j2k")) log.setLevel('ERROR') shell.setLogger(log) # }}} # {{{ Defs COMPONENTS = 4 BYTES_PER_COMPONENT = 2 BITS_PER_COMPONENT = BYTES_PER_COMPONENT * 8 spatial_dwt_levels = 0 # 1 # SRLs - 1 # }}} # {{{ Arguments parsing
from colorlog import ColorLog import logging from shell import Shell as shell log = ColorLog(logging.getLogger( "texture_compress__automatic")) # remove __automatic (some day) log.setLevel('INFO') shell.setLogger(log) for i in range(352 // 2): shell.run("convert -size 352x288 xc:skyblue " + "-fill white -stroke black -draw \"circle " + str(42 + i) + ",42 " + str(74 + i) + ",42\" /tmp/circle" + str('%03d' % i) + ".png") shell.run("ffmpeg -i /tmp/circle%3d.png /tmp/out.avi")
from GOP import GOP from arguments_parser import arguments_parser import io import operator from shell import Shell as shell from colorlog import ColorLog import logging import os import math import subprocess as sub from subprocess import check_call from subprocess import CalledProcessError log = ColorLog(logging.getLogger("transcode_quality")) log.setLevel('DEBUG') shell.setLogger(log) # }}} # {{{ Arguments parsing parser = arguments_parser( description="Transcodes in quality a MCJ2K sequence.") parser.GOPs() parser.add_argument("--keep_layers", help="Number of quality layers to output", default=16) parser.TRLs() parser.layers() parser.add_argument("--destination",