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 / draft-ietf-cellar-ffv1-08.xml
Created Sep 1, 2019
The RFC XML of the FFV1 cellar working group draft based upon work within
View draft-ietf-cellar-ffv1-08.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content=" Mmark Markdown Processor -" -->
<rfc xmlns:xi="" version="3" ipr="trust200902" docName="draft-ietf-cellar-ffv1-08" submissionType="IETF" category="info" xml:lang="en" consensus="true">
<title abbrev="FFV1">FFV1 Video Coding Format Version 0, 1, and 3</title>
<seriesInfo value="draft-ietf-cellar-ffv1-08" stream="IETF" status="informational" name="Internet-Draft"/>
<author initials="M." surname="Niedermayer" fullname="Michael Niedermayer">
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 / tc2vtt
Created Apr 10, 2019
broken attempt to convert timecode data into a vtt file
View tc2vtt
# these two functions cross-convert between frame number and timecode value
# borrowed from
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
# label the first script argument as a variable called PBCORE_IN
# set a variable to say that the output will be written next to the input pbcore.xml but with a .ffmetadata extension
# 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">
<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
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/ -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
#!/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"
if [[ $(dirname "$(command -v "${0}")") = "/usr/local/bin" ]] ; then
VERSION=$(TMP=$(brew info vrecord | grep ".*\*$" | grep -Eo "/vrecord/.* \(") ; echo "${TMP:9:(${#TMP}-11)}")
You can’t perform that action at this time.