Skip to content

Instantly share code, notes, and snippets.

Urs Hofer urshofer

Block or report user

Report or block urshofer

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
@urshofer
urshofer / gist:ce0d2ead239f5b5b26d85ad412ae7f54
Created Mar 19, 2018
AppleTV 1/Osmc xorg.conf to start up without HDMI/Composite
View gist:ce0d2ead239f5b5b26d85ad412ae7f54
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
EndSection
Section "Module"
Load "glx"
EndSection
Section "Monitor"
View main.cpp
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
View gist:e898b2fd6cc4740cdc49
ffprobe version 2.5.3 Copyright (c) 2007-2015 the FFmpeg developers
built on Jan 19 2015 13:08:24 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --arch=x86_64 --enable-runtime-cpudetect
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
View gist:16ebd05fbc37773d0e5a
videoTestDebug: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/QXPScriptingAdditions.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
Append 1.mp4
[ error ] 3.40: [1] 1.mp4 appended
Trigger
[ error ] 4.58: [1] 1.mp4 Force triggered
Append 2.mp4
Trigger
[ error ] 5.67: [1] 2.mp4 Force triggered
2015-10-28 17:29:37.172 videoTestDebug[48559:3164685] video loaded at 640 x 360 @ 23.649729 fps
2015-10-28 17:29:37.244 videoTestDebug[48559:3164830] video loaded at 640 x 360 @ 23.649729 fps
View gist:0f48ff9a0a57006263e8
Process: AC PlayerDebug [9810]
Path: /Users/USER/Desktop/AC PlayerDebug_ofAVFoundationPlayer_GC_and_memory_fixes.app/Contents/MacOS/./AC PlayerDebug
Identifier: cc.openFrameworks.ofapp
Version: 1.0
Code Type: X86 (Native)
Parent Process: bash [634]
Responsible: Terminal [597]
User ID: 501
Date/Time: 2015-03-30 13:06:37.885 +0200
View gist:a8e36889dcf55c558bbc
- (id)init {
if (![NSThread isMainThread]) {
pool = [[NSAutoreleasePool alloc] init];
}
self = [super init];
if(self) {
self.playerView = [[[ofAVFoundationVideoPlayerView alloc] initVideoPlayerView] autorelease];
self.player = [[[AVPlayer alloc] init] autorelease];
[(ofAVFoundationVideoPlayerView *)self.playerView setPlayer:_player];
You can’t perform that action at this time.