Skip to content

Instantly share code, notes, and snippets.

2017-09-27T11:14:18.685Z 9062 TID-osxfkiays EncodeVideoJob JID-a891744cd4a6bc7655c87290 INFO: start
2017-09-27T11:14:18.686Z 9062 TID-osxfkiays EncodeVideoJob JID-a891744cd4a6bc7655c87290 DEBUG: UNIQUE: ServerMiddleware#call with #<EncodeVideoJob:0x007f47fb4e90e0 @temporaries=#<ViewFarm::Utils::Temporaries:0x007f47fb4e90b8 @temporary_files=[], @temporary_directories=[], @temporary_processes=[]>, @image_extensions={"thumbnail"=>"jpg", "preview"=>"jpg", "animation"=>"mp4"}, @settings={}, @jid="a891744cd4a6bc7655c87290"> {"class"=>"EncodeVideoJob", "queue"=>"remote_encode", "args"=>[{"asset_id"=>741314, "destination"=>"proxies/media_1/predexporttest/A005_C001_01016E_006.R3D", "bitrate"=>"700k", "resolution"=>"640:360", "thumbnail_width"=>146, "thumbnail_height"=>82, "preview_width"=>640, "preview_height"=>360, "animation_width"=>146, "animation_height"=>82, "label_position"=>"bottom", "aspect_ratio"=>"1.78", "duration"=>"44085.75241908576", "labels"=>nil, "timecode_burnin"=>false, "watermarking"=>true, "watermar
r3d-decoder -a encode_v -f london.r3d | ffmpeg -t 0.417 -f rawvideo -pix_fmt gbrp16le -s 2048x1152 -i - -r 23.976 -pix_fmt yuv420p -aspect 640/360 -vf "scale='ceil(iw*sar/2)*2':'ceil(ih/2)*2',pad='max(iw,ceil(ih*(640/360)))':'ceil(ow/(640/360))':'(ow-iw)/2':'(oh-ih)/2':black,scale=640:360,shuffleplanes=1:2:0:3" -c:v libx264 -b:v 700k -c:a libfdk_aac -b:a 128k -g 50 -keyint_min 50 -movflags faststart -y out.mp4
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/opt/sb4/stage --extra-cflags=-I/opt/sb4/stage/include --extra-ldflags=-L/opt/sb4/stage/lib --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-version3 --enable-libfdk-aac --enable-libx264 --enable-libfreetype
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 12.100 / 5. 12.100
libswscale 3. 1.101 / 3. 1.
@bigzed
bigzed / Arduino to PN532
Last active August 29, 2015 14:21
Logic analyzer
Time [s], Analyzer Name, Decoded Protocol Result
0.000000000000000,SPI,The initial (idle) state of the CLK line does not match the settings.
0.099606625000000,SPI,The initial (idle) state of the CLK line does not match the settings.
0.119624625000000,SPI,The initial (idle) state of the CLK line does not match the settings.
0.139623625000000,SPI,The initial (idle) state of the CLK line does not match the settings.
0.219638000000000,SPI,The initial (idle) state of the CLK line does not match the settings.
0.239645500000000,SPI,The initial (idle) state of the CLK line does not match the settings.
0.259652250000000,SPI,The initial (idle) state of the CLK line does not match the settings.
1.440208625000000,SPI,The initial (idle) state of the CLK line does not match the settings.
1.460210250000000,SPI,The initial (idle) state of the CLK line does not match the settings.
@bigzed
bigzed / board.h
Created February 25, 2015 18:36
Board.h for STM32F429I-DISCO
/*
ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
#!/usr/bin/env puma
# Working directory
directory '/opt/sb4/app/fsbase'
# Application config.ru
rackup '/opt/sb4/app/fsbase/config.ru'
# Rails.env
environment 'production'
# Socket
bind 'unix:///opt/sb4/app/fsbase/tmp/puma.sock'
#!/bin/bash
LOCKFILE="8RpV2ZcPqgJa"
# Update repository
/usr/bin/flock -w 60 "/var/lock/$LOCKFILE" /usr/bin/rsync -avrt --delete \
--exclude "local*" --exclude "isos" rsync://mirrors.rit.edu/centos/5.9/ \
/srv/share/mirrors/CentOS/5.9/
# Change permissions
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main (int argc, char* args[]) {
int i = 10;
char str1[60];
sprintf(str1, "New%d.txt",i);
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main (int argc, char* args[]) {
char str1[50] = "Ey haller,";
char str2[20] = "was geht?";
strcat(str1, str2);
printf("%s", str1);
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main (int argc, char* args[]) {
char beispiel[100];
int i;
for(i = 0; i<99; ++i) {
beispiel[i] = 'a';
}
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int dateiOeffnen(char dateiname[],FILE* in) {
in = fopen(dateiname, "r"); // r steht für lesen
if (in == NULL) {
printf("Datei \"%s\" konnte nicht geoeffnet werden.\n",dateiname);
return 0;
}