#276 closed defect (fixed)
FFPlay when compiled for arm and executed on BeagleBoard Xm + Angstrom gives segmentation fault
Reported by: | LuckyNarang | Owned by: | Michael Niedermayer |
---|---|---|---|
Priority: | normal | Component: | ffplay |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Hi Everybody,
We have compiled angstrom on beagleboard xm rev B,and build the ffmpeg for it,the component ffplay doesn't get generated,please let us know the configure command for generating the ffplay for beagle board xm + angstrom
Change History (13)
comment:1 by , 14 years ago
Component: | FFplay → build system |
---|---|
Priority: | important → normal |
Status: | new → open |
follow-up: 13 comment:2 by , 14 years ago
This is the configure command we have used....
./configure --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --cc=arm-none-linux-gnueabi-gcc --prefix=/home/Lucky/Lucky_Data/ACP_project/SDL-1.2.14 --enable-gpl --enable-x11grab --enable-avfilter --enable-pthreads --enable-postproc --enable-avfilter-lavf --enable-filter=drawtext --enable-static --enable-runtime-cpudetect --enable-hwaccel=h264_vaapi --enable-swscale --enable-debug --disable-shared --extra-cflags="$(pkg-config sdl --cflags)" --extra-ldflags="$(pkg-config sdl --libs)"
We have found that ffplay has sdl dependancies....we have resolved those and any how generate the ffplay executable using codesourcery,but when executed on board it gives segfault,the reason we found is that SDL_SetVideoMode fails,it returns NULL screen,what could be reason for this call getting failed,please help ?
follow-up: 4 comment:3 by , 14 years ago
Component: | build system → FFplay |
---|---|
Type: | task → defect |
Does SDL_SetVideoMode() segfault, or does it return NULL?
comment:4 by , 14 years ago
Replying to cehoyos:
Does SDL_SetVideoMode() segfault, or does it return NULL?
It returns NULL,but whenever this NULL screen is referred it gives segmentation fault.
The usage is as follows:
w=640
h=480
flags=SDL_HWSURFACE | SDL_SYNCBLIT | SDL_HWACCEL
SDL_SetVideoMode(w,h,0,flags);
comment:5 by , 14 years ago
It returns NULL,whenever this NULL screen is referred it gives segmentation fault.
The usage is as follows:
w=640
h=480
flags=SDL_HWSURFACE | SDL_SYNCBLIT | SDL_HWACCEL
SDL_SetVideoMode(w,h,0,flags);
comment:7 by , 14 years ago
It is not referred in ffplay,but when it is NULL,then on comparison to NULL,the event loop thread returns -1,and eventually the decode_thread gives segmentation fault.
comment:8 by , 14 years ago
Did you already try to use 24 (or another value) as the third operand to SDL_SetVideoMode()?
comment:9 by , 14 years ago
yes i have tried 0 and 24 still it gives segmentation fault....
comment:10 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
I fixed the crash (thank you for the report and the analysis), I believe you should work with the program posted here - http://markmail.org/message/5mcalro2qcbouph5 - and try to get it to work, I don't think you will be able to use ffplay before it works.
comment:11 by , 13 years ago
Finally it works the only reason was i have to export DISPLAY=:0.0,after that it works fine.
comment:12 by , 13 years ago
Thank you for explaining this, I sent a patch giving users a hint to the developer mailing list!
comment:13 by , 13 years ago
Replying to luckynarang123:
We have found that ffplay has sdl dependancies....we have resolved those and any how generate the ffplay executable using codesourcery...
I am trying to do the same thing but I can't build ffplay.
After configuring as you said, I checked config.log and found nothing strange.
I checked make.log and I found "CC ffmpeg" but I couldn't found "CC ffplay".
I guess ffplay isn't compiled.
Do you know why? Could you tell me how you build SDL and ffplay?
For build problems, please attach config.log.