Skip to content

Instantly share code, notes, and snippets.

View LeifAndersen's full-sized avatar

Leif Andersen LeifAndersen

View GitHub Profile
leif@FATT ~/v/native-pkgs/ffmpeg-src (master) $ git checkout n3.2.2
Note: checking out 'n3.2.2'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
FTB Launcher logs:
[20:34:51] [DEBUG] Main.main:171: Launcher arguments: []
[20:34:51] [DEBUG] Main.main:172: Launcher PID: 7560
[20:34:51] [DEBUG] Main.main:183: FTB Launcher CI Build #: 415, Git SHA: 09f577a10b83
[20:34:51] [INFO] JGoogleAnalyticsTracker$2.run:484: AnalyticsBackgroundThread started
[20:34:51] [INFO] MainHelpers.printInfo:39: FTBLaunch starting up (version 1.4.15 Build: 10415)
[20:34:51] [DEBUG] MainHelpers.printInfo:40: System's default JVM: (This is not always used to launch MC)
[20:34:51] [DEBUG] MainHelpers.printInfo:41: Java version: 1.8.0_144
[20:34:51] [DEBUG] MainHelpers.printInfo:42: Java vendor: Oracle Corporation
[20:34:51] [DEBUG] MainHelpers.printInfo:43: Java home: C:\Program Files\Java\jre1.8.0_144
$ ffprobe vid.mp4
ffprobe version 3.3.2 Copyright (c) 2007-2017 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
#lang at-exp racket/base
#|
Copyright 2016-2017 Leif Andersen
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
@LeifAndersen
LeifAndersen / chaptest.rkt
Created August 21, 2017 21:53
chaptest.rkt
#lang video
(values #;chapter (clip "demo.mp4" #:properties (hash "start" 10 "end" 30)))
(values #;chapter (clip "demo2.mp4" #:properties (hash "start" 5 "end" 15)))
int main() {
... declare vars ...
av_register_all();
avdevice_register_all();
fmt = av-find-input-format("avfoundation");
ctx = avformat-alloc-context());
ctx->iformat = fmt;
printf("%d\n", avdevice_list_devices(ctx, list));
return 0;
}
$ ./ffmpeg
ffmpeg version n3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --enable-shared --disable-sdl2 --disable-indev=jack --enable-libopenh264 --prefix=/Users/leif/v/native-pkgs/ffmpeg-src/
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
#lang racket/gui
(define f (new frame% [label "HI"]))
(define s (new slider%
[label "A Slider"]
[min-value 0]
[max-value 10000]
[parent f]
[callback (λ (b e)
(displayln (send b get-value)))]))
leif@FATT ~/video/video/private/ffmpeg (master) $ raco macro-profiler data.rkt
Initial code size: 7111
Final code size: 900059
----------------------------------------
Phase 1
parse:S (defined in syntax/parse/private/parse)
total: 12006, mean: 207
direct: 3342, mean: 58, count: 58, stddev: 75.22513968683398
parse:matrix (defined in syntax/parse/private/parse)
total: 11479, mean: 5740
#lang racket
(provide pie-beam)
(require racket/serialize)
(define pie-beam
(make-deserialize-info
(λ (type)
(pie type))
(λ ()