Skip to content

Instantly share code, notes, and snippets.

Dave Rice dericed

Block or report user

Report or block dericed

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
@dericed
dericed / muh-huh.txt
Created Jul 30, 2019
play a video in 10 columns to represent the bitplane each of the 10 bit positions (if the video is <10 bit then some columns will be empty)
View muh-huh.txt
ffplay bens_first_day_at_nypl.mkv -vf "format=yuv420p10le|yuv422p10le|yuv444p10le|yuv440p10le,split=10[b0][b1][b2][b3][b4][b5][b6][b7][b8][b9];[b0]crop=iw/10:ih:(iw/10)*0:0,lutyuv=y=bitand(val\,pow(2\,10-1))*pow(2\,1):u=512:v=512[b0c];[b1]crop=iw/10:ih:(iw/10)*1:0,lutyuv=y=bitand(val\,pow(2\,10-2))*pow(2\,2):u=512:v=512[b1c];[b2]crop=iw/10:ih:(iw/10)*2:0,lutyuv=y=bitand(val\,pow(2\,10-3))*pow(2\,3):u=512:v=512[b2c];[b3]crop=iw/10:ih:(iw/10)*3:0,lutyuv=y=bitand(val\,pow(2\,10-4))*pow(2\,4):u=512:v=512[b3c];[b4]crop=iw/10:ih:(iw/10)*4:0,lutyuv=y=bitand(val\,pow(2\,10-5))*pow(2\,5):u=512:v=512[b4c];[b5]crop=iw/10:ih:(iw/10)*5:0,lutyuv=y=bitand(val\,pow(2\,10-6))*pow(2\,6):u=512:v=512[b5c];[b6]crop=iw/10:ih:(iw/10)*6:0,lutyuv=y=bitand(val\,pow(2\,10-7))*pow(2\,7):u=512:v=512[b6c];[b7]crop=iw/10:ih:(iw/10)*7:0,lutyuv=y=bitand(val\,pow(2\,10-8))*pow(2\,8):u=512:v=512[b7c];[b8]crop=iw/10:ih:(iw/10)*8:0,lutyuv=y=bitand(val\,pow(2\,10-9))*pow(2\,9):u=512:v=512[b8c];[b9]crop=iw/10:ih:(iw/10)*9:0,lutyuv=y=bitand(val\,po
@dericed
dericed / tc2vtt
Created Apr 10, 2019
broken attempt to convert timecode data into a vtt file
View tc2vtt
#!/bin/bash
# these two functions cross-convert between frame number and timecode value
# borrowed from https://github.com/yamaq/timecode/blob/master/timecode
function convToFN() {
# Convert to frame number(1800) from timecode(00:01:00:00)
# $1 --> tc
# $2 --> fpsHz
# $3 --> fpsCalc
local tc frames frameBase
View pbcore2ffmetadata
#!/bin/bash
# label the first script argument as a variable called PBCORE_IN
PBCORE_IN="${1}"
# set a variable to say that the output will be written next to the input pbcore.xml but with a .ffmetadata extension
FFMETADATA_OUT="${PBCORE_IN}.ffmetadata"
# check that a file is provided as an input
if [[ ! -f "${PBCORE_IN}" ]] ; then
echo "Error: Please supply a pbcore xml to use such as"
View draft-ietf-cellar-ffv1-06.html
<!DOCTYPE html>
<html lang="en" class="Internet-Draft">
<head>
<meta charset="utf-8">
<title>FFV1 Video Coding Format Version 0, 1, and 3</title>
<meta content="Michael Niedermayer" name="author">
<meta content="Dave Rice" name="author">
<meta content="Jerome Martinez" name="author">
<meta content="This document defines FFV1, a lossless intra-frame video encoding format. FFV1 is designed to efficiently compress video data in a variety of pixel formats. Compared to uncompressed video, FFV1 offers storage compression, frame fixity, and self-description, which makes FFV1 useful as a preservation or intermediate video format." name="description">
<meta content="xml2rfc 2.12.3" name="generator">
View nested elements and deeper toc
cellar S. Lhomme
Internet-Draft
Intended status: Standards Track M. Bunkus
Expires: January 26, 2019
D. Rice
July 25, 2018
View ffmpegdecklink.rb
View timecode.patch
Subject: [PATCH] Limited timecode support for lavd/decklink
---
libavdevice/decklink_common.cpp | 30 -----------------------
libavdevice/decklink_common.h | 42 +++++++++++++++++++++++++++++++++
libavdevice/decklink_common_c.h | 1 +
libavdevice/decklink_dec.cpp | 19 +++++++++++++++
libavdevice/decklink_dec_c.c | 9 +++++++
5 files changed, 71 insertions(+), 30 deletions(-)
View vrecord.log
ffmpeg started on 2018-04-19 at 09:43:22
Report written to "/Users/cnicols/Desktop/TEST/1_ffmpeg_20180419-094322.log"
Command line:
/usr/local/opt/ffmpegdecklink/bin/ffmpeg-dl -v info -nostdin -hide_banner -nostats -f decklink -draw_bars 0 -audio_input analog -video_input composite -format_code ntsc -channels 8 -raw_format yuv422p10 -i "Intensity Shuttle Thunderbolt" -metadata:s:v:0 "encoder=Uncompressed 10-bit 4:2:2" -color_primaries smpte170m -color_trc bt709 -colorspace smpte170m -color_range mpeg -metadata "creation_time=now" -movflags write_colr -c:v v210 -c:a pcm_s24le -filter_complex "[0:v:0]setfield=bff,setsar=40/27,setdar=4/3; [0:a:0]pan=stereo| c0=c0 | c1=c1[stereo1];[0:a:0]pan=stereo| c0=c2 | c1=c3[stereo2]" -map "[stereo1]" -map "[stereo2]" -f mov /Users/cnicols/Desktop/TEST/1.mov -map 0 -c copy -f nut -
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'info'.
Reading option '-nostdin' ... matched as option 'stdin' (enable or disable intera
View vrecord.sh
#!/usr/bin/env bash
# vrecord
# Open-source software for capturing a video signal and turning it into a digital file.
SCRIPTDIR=$(dirname "${0}")
CONFIG_FILE="${HOME}/.$(basename "${0}").conf"
unset VERSION
if [[ $(dirname "$(command -v "${0}")") = "/usr/local/bin" ]] ; then
VERSION=$(TMP=$(brew info vrecord | grep ".*\*$" | grep -Eo "/vrecord/.* \(") ; echo "${TMP:9:(${#TMP}-11)}")
View cowsay_error.txt
_________________________________________
/ WARNING: There were pts \
| discontinuities for these frame ranges: |
| 2980-2981 2983-2983 2985-2986 2988-2988 |
| 2990-2991 2993-2993 2995-2995 2997-2997 |
| 2999-2999 3002-3002 3004-3004 3006-3006 |
| 3008-3009 3011-3011 3013-3013 3015-3016 |
| 3018-3018 3020-3021 3023-3023 3025-3026 |
| 3028-3028 3030-3030 3032-3032 3034-3034 |
| 3036-3037 3039-3039 3041-3041 3043-3044 |
You can’t perform that action at this time.