LINUX.ORG.RU

FFServer segmentation fault

 ,


0

1

Доброго дня!

Пытался настроить рестриминг MJPEG->RTSP. Конфиг ffserver

Port 12345
RTSPPort 554
BindAddress 0.0.0.0

<Feed webcam.ffm>
        File /tmp/webcam.ffm
        FileMaxSize 200K
        Launch ffmpeg -i http://tcp:port/cgi/mjpg/mjpg.cgi
</Feed>

<Stream webcam>
        Feed webcam.ffm
        Format rtp
        VideoCodec mpeg2video
        VideoFrameRate 30
        VideoBufferSize 80000
        VideoBitRate 300
        VideoSize 640x480
        PreRoll 1
        NoAudio
</Stream>

При подключении (ffprobe rtsp://localhost:554/webcam) сервер падает в Segmentation fault

Program received signal SIGSEGV, Segmentation fault. av_freep (arg=arg@entry=0x10) at libavutil/mem.c:247 247 memcpy(&val, arg, sizeof(val));

Ткните носом, может я чего в конфиге напутал ?! Собирал из исходников, по оффициальной инструкции, сервер под VMware.

root@rtsp:~/ffmpeg_sources/ffmpeg# ffserver -d -loglevel debug
ffserver version N-80539-g70d48ac Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --pkg-config-flags=--static --enable-gpl --enable-libass --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 46.100 / 57. 46.100
  libavformat    57. 39.100 / 57. 39.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.102 /  6. 46.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
/etc/ffserver.conf:1: Port option is deprecated. Use HTTPPort instead.
/etc/ffserver.conf:3: BindAddress option is deprecated. Use HTTPBindAddress instead.
/etc/ffserver.conf:21: Setting default value for video bit rate tolerance = 75000. Use NoDefaults to disable it.
/etc/ffserver.conf:21: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
/etc/ffserver.conf:21: Setting default value for video max rate = 600000. Use NoDefaults to disable it.
Mon Jun 27 04:17:54 2016 [file @ 0x40605c0]Setting default whitelist 'file,crypto'
Mon Jun 27 04:17:54 2016 [ffm @ 0x405db00]Format ffm probed with size=2048 and score=101
Mon Jun 27 04:17:54 2016 [NULL @ 0x405faa0]Setting entry with key 'time_base' to value '1/30'
Mon Jun 27 04:17:54 2016 [NULL @ 0x405faa0]Setting entry with key 'bufsize' to value '655360000'
Mon Jun 27 04:17:54 2016 [NULL @ 0x405faa0]Setting entry with key 'b' to value '300000'
Mon Jun 27 04:17:54 2016 [NULL @ 0x405faa0]Setting entry with key 'video_size' to value '640x480'
Mon Jun 27 04:17:54 2016 [NULL @ 0x405faa0]Setting entry with key 'bt' to value '75000'
Mon Jun 27 04:17:54 2016 [NULL @ 0x405faa0]Setting entry with key 'maxrate' to value '600000'
Mon Jun 27 04:17:54 2016 [AVIOContext @ 0x40606a0]Statistics: 32768 bytes read, 0 seeks
Mon Jun 27 04:17:54 2016 FFserver started.
Mon Jun 27 04:17:54 2016 Launch command line: ffmpeg -i http://tcp:port/cgi/mjpg/mjpg.cgi http://127.0.0.1:12345/webcam.ffm
ffmpeg version N-80539-g70d48ac Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --pkg-config-flags=--static --enable-gpl --enable-libass --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 46.100 / 57. 46.100
  libavformat    57. 39.100 / 57. 39.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.102 /  6. 46.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpjpeg, from 'http://admin:admin@172.23.80.30/cgi/mjpg/mjpg.cgi':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 25 tbn, 25 tbc
Mon Jun 27 04:17:55 2016 127.0.0.1 - - New connection: GET /webcam.ffm
Mon Jun 27 04:17:55 2016 [file @ 0x40605c0]Setting default whitelist 'file,crypto'
Mon Jun 27 04:17:55 2016 [ffm @ 0x405f3a0]Format ffm probed with size=2048 and score=101
Mon Jun 27 04:17:55 2016 [NULL @ 0x405db00]Setting entry with key 'time_base' to value '1/30'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405db00]Setting entry with key 'bufsize' to value '655360000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405db00]Setting entry with key 'b' to value '300000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405db00]Setting entry with key 'video_size' to value '640x480'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405db00]Setting entry with key 'bt' to value '75000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405db00]Setting entry with key 'maxrate' to value '600000'
Mon Jun 27 04:17:55 2016 [ffm @ 0x405eb30]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Mon Jun 27 04:17:55 2016 writing recommended configuration: time_base=1/30,bufsize=655360000,b=300000,video_size=640x480,bt=75000,rc_eq=tex^qComp,maxrate=600000
Mon Jun 27 04:17:55 2016 127.0.0.1 - - [GET] "/webcam.ffm HTTP/1.1" 200 4175
Mon Jun 27 04:17:55 2016 [AVIOContext @ 0x4060780]Statistics: 49152 bytes read, 4 seeks
Mon Jun 27 04:17:55 2016 127.0.0.1 - - New connection: POST /webcam.ffm
[swscaler @ 0x39d17a0] deprecated pixel format used, make sure you did set range correctly
[ffm @ 0x39bad60] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'b' to value '300000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'bt' to value '75000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'maxrate' to value '600000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'bufsize' to value '655360000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'rc_init_occupancy' to value '491520000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'profile' to value '4'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'level' to value '8'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'rc_max_vbv_use' to value '0.333333'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'chroma_sample_location' to value '2'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'time_base' to value '1/30'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'has_b_frames' to value '1'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'pkt_timebase' to value '1/1000000'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'pixel_format' to value 'yuv420p'
Mon Jun 27 04:17:55 2016 [NULL @ 0x405f9a0]Setting entry with key 'video_size' to value '640x480'
Output #0, ffm, to 'http://127.0.0.1:12345/webcam.ffm':
  Metadata:
    creation_time   : now
    encoder         : Lavf57.39.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 640x480, q=2-31, 300 kb/s, 25 fps, 1000k tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.46.100 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 600000/0/300000 buffer size: 655360000 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame=  762 fps= 32 q=27.3 size=     956kB time=00:00:25.30 bitrate= 309.5kbits/s dup=127 drop=0 speed=1.07x


Последнее исправление: bugzzilla (всего исправлений: 1)

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.