Streaming

ffserver 分段錯誤

  • November 6, 2009

這是我的問題:

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>

您是自己從原始碼建構的嗎?如果是這種情況,我會再次建構它並註意建構過程中的任何錯誤/警告。

如果沒有,即使您在配置中做錯了,也不應該發生段錯誤。該程序不應該嘗試訪問它不應該訪問的記憶體。如果您有錯誤,它應該列印錯誤並自行退出。因此,如果您在建構過程中沒有看到任何內容,則應該送出錯誤報告。

如果您有來源,並且想看看是否可以立即修復它。使用 -ggdb3 編譯,然後使用 gdb 執行執行檔並查看它的段錯誤:

$ 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

引用自:https://serverfault.com/questions/82021