Comments (14)
I agree. I was irritated and thought the piping was broken, because I expect an
app
not to show a window if I pipe the visual output somewhere else :)
Original comment by qubodup
on 30 May 2010 at 10:29
from gource.
Hi. I'm not sure if this is possible with OpenGL/SDL. I know you can create a
framebuffer object in OpenGL, but normally you have already initialized a
display
context with a window before hand.
If someone pointed me to something that does this (hardware accelerated opengl
without creating a window) I will have a look.
Original comment by [email protected]
on 30 May 2010 at 11:08
from gource.
And hence, would the lack of OpenGL hardware produce this kind of abort?
(gdb) where
#0 0x0000003f1c832bf8 in SDL_GL_SetAttribute ()
from /usr/lib64/libSDL-1.2.so.0
#1 0x000000000040bfdb in SDLAppDisplay::init (this=0x64d1a0,
window_title=..., width=1024, height=768, fullscreen=<value optimized out>)
at src/core/display.cpp:86
#2 0x0000000000431e48 in main (argc=<value optimized out>,
argv=<value optimized out>) at src/main.cpp:640
Original comment by [email protected]
on 16 Jul 2010 at 12:05
from gource.
Did it segfault? What version on what platform?
If possible could edit src/core/display.cpp to check the return code from
SDL_Init. eg:
if(SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO) != 0) {
throw SDLInitException(SDL_GetError());
}
I should really be checking that so it can die gracefully.
Cheers
Andrew
Original comment by [email protected]
on 16 Jul 2010 at 3:13
from gource.
[deleted comment]
from gource.
I'm pretty sure that's the problem. I will change it to do the check above.
Original comment by [email protected]
on 16 Jul 2010 at 3:18
from gource.
$ gource --help | head
Gource v0.26b
Usage: gource [OPTIONS] [PATH]
$ uname -a
Linux chris 2.6.18-164.6.1.el5xen #1 SMP Tue Nov 3 16:48:13 EST 2009 x86_64
x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
CentOS release 5.5 (Final)
Hope the above answers your questions on version and platform. If not, let me
know what else you'd like to see. I'll give the patch a try and report back.
Original comment by [email protected]
on 16 Jul 2010 at 6:02
from gource.
Hmm, that generates a compile error. I'm not a C++ programmer, so it's not
immediately obvious to me what's wrong, but I'm thinking maybe the thrown error
function argument is of the wrong type:
src/core/display.cpp: In member function ‘void
SDLAppDisplay::init(std::string, int, int, bool)’:
src/core/display.cpp:85: error: no matching function for call to
‘SDLInitException::SDLInitException(char*)’
src/core/display.h:51: note: candidates are:
SDLInitException::SDLInitException(std::string&)
src/core/display.h:47: note:
SDLInitException::SDLInitException(const SDLInitException&)
make: *** [src/core/display.o] Error 1
Original comment by [email protected]
on 16 Jul 2010 at 6:08
from gource.
If you edit display.h and change:
SDLInitException(std::string& error) : error(error) {
to:
SDLInitException(const std::string& error) : error(error) {
It should compile. I changed that since 0.26b.
I confirmed it was crashing due to not checking the return value of SDL_Init(),
so thanks for your report. Your still going to need a video card to use Gource,
however.
Original comment by [email protected]
on 16 Jul 2010 at 11:59
from gource.
Yup, understand that. Moved my efforts down to my laptop from the server. :-)
Original comment by [email protected]
on 23 Jul 2010 at 8:31
from gource.
I'm not sure if this is still an issue or not, but I have figured out how to
run it headless. I am using a fresh install of Ubuntu Server 11.04 x64 in a
virtual machine. This worked for me, but your mileage may vary.
$ gource --help | head -n 1
Gource v0.28
$ uname -a
Linux ubuntu 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011 i686
i686 i386 GNU/Linux
The first step is to install all the necessary packages:
$ apt-get install git xvfb xfonts-base xfonts-75dpi xfonts-100dpi
xfonts-cyrillic gource ffmpeg libavcodec-extra-52
After that, simply run something along the lines of:
$ xvfb-run -a -s "-screen 0 1280x720x24" gource -1280x720 -r 30 -o ../test.ppm
A full-blown gource -> ffmpeg example:
$ xvfb-run -a -s "-screen 0 1280x720x24" gource -1280x720 -r 30 -o - | ffmpeg
-y -b 10000K -r 30 -f image2pipe -vcodec ppm -i - ../test.mov
I hope this helps!
Original comment by [email protected]
on 30 Sep 2011 at 4:54
from gource.
Thanks for the tip.
Original comment by [email protected]
on 2 Oct 2011 at 9:06
from gource.
Perhaps adding this to the documentation as how to run headless would be
adequate to close this bug?
Original comment by [email protected]
on 2 Nov 2011 at 3:33
from gource.
The proposed solution currently targets linux only.
Is there a solution for windows?
Original comment by [email protected]
on 10 Dec 2014 at 10:25
from gource.
Related Issues (20)
- Rendering single frames instead of a video HOT 5
- Error in `gource': free(): invalid next size (normal) HOT 1
- download setup for windows HOT 3
- Start paused
- compile error ubuntu 14.04 x64 HOT 3
- Gource fails on OS X 10.9 HOT 3
- Unable to find git.exe? HOT 3
- Creating a custom version of gource HOT 4
- Allow localized display of date/time HOT 1
- ffmpeg gets IO errors about 3/4 way through gource PPM file HOT 8
- Question about Gource Output HOT 1
- Gource will not accept my .log HOT 8
- Version of freetype2 less than 9.0.3 error HOT 2
- Gource displays underscore as +af8- HOT 1
- It's not an issue HOT 1
- Move old captions up, display new ones at bottom HOT 1
- Git Rebase
- configure fails on systems w/o explicit /usr/lib64 (i.e. ubuntu & possibly others w/ /usr/lib/x86_64-linux-gnu/)
- what is this command line you speak of HOT 2
- Can't find git.exe. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gource.