Could not initialize SDL - No available video device
我的sdl测试可以使用,mplayer正常,并且测试代码也正常;
就是尼玛ffplay的时候出现错误:
ffplay version 0.11 Copyright (c) 2003-2012 the FFmpeg developers
built on Jun 25 2012 16:14:52 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
configuration:
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
Could not initialize SDL - No available video device
(Did you set the DISPLAY variable?
这个网页的测试ok;
http://hi.baidu.com/leoxeon/blog/item/63bda22777b08004908f9d73.html
原因是 ffmpeg下的config.mak有点问题
SDL_LIBS=-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread
SDL_CFLAGS=-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
EXTRALIBS=-ldl -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lm -pthread -lz -lrt
改成:
SDL_LIBS=-L/usr/local/lib -lSDL -lpthread
SDL_CFLAGS=-I/usr/local/include/SDL
EXTRALIBS=-ldl -L/usr/local/lib -lSDL -lpthread -lm -pthread -lz -lrt
============
更多推荐
所有评论(0)