这是我的问题:
viroos@plecak-transmisyjny:~/videotesty$ sudo ffserver -d -loglevel debug FFserver version SVN-r20420, Copyright (c) 2000-2009 Fabrice Bellard, et al. built on Oct 30 2009 21:56:18 with gcc 4.4.1 configuration: --enable-gpl --enable-shared --enable-nonfree libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.37. 1 / 52.20. 0 libavformat 52.39. 2 / 52.31. 0 libavdevice 52. 2. 0 / 52. 1. 0 libswscale 0. 7. 1 / 0. 7. 1 Segmentation fault
这是我的/etc/ffserver.conf
Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000 CustomLog - NoDaemon <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 200K ACL allow 127.0.0.1 </Feed> <Stream output.flv> Feed feed1.ffm VideoBitRate 1024 VideoBufferSize 128 Format flv VideoSize 320x240 VideoFrameRate 24 VideoQMin 3 VideoQMax 3 </Stream> <Stream stat.html> Format status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 </Stream> <Redirect index.html> URL http://www.ffmpeg.org/ </Redirect>
你自己从源头上build立了这个吗? 如果是这样,我会再次构build它,并在构build过程中注意任何错误/警告。
如果没有,即使你在configuration中做错了事,segfault也不应该发生。 该程序不应该试图访问它不应该的内存。 如果您的部分出现错误,则应打印错误并自行退出。 所以如果你在构build过程中没有看到任何东西,你应该提交一个错误报告。
如果你有来源,并想看看你是否可以立即修复它。 用-ggdb3编译,然后使用gdb运行可执行文件,并查看它在哪里segfaults:
$ gdb myexec GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run ... (gdb) bt