#5844 closed defect (fixed)

FFMPEG HEAD+3.1.3 : Crash when using RTSP mux (ie RECORD method)

Reported by: LeRatier Owned by:
Priority: important Component: avformat
Version: git-master Keywords: rtsp crash regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When using ffmpeg as a RTSP muxer to a RTSP proxy, FFMPEG HEAD and 3.1.3 are crashing (SEGFAULT). This does not happen in 2.8.7 version (not tested with 3.0 branch).

How to reproduce:

Use the RTSP poxy server from here : https://github.com/revmischa/rtsp-server

Once compiled, launch it with the following command :

./rtsp-server.pl -l 10 -c 8554 --source_listen_address 127.0.0.1 -s 8001

In another shell, launch the ffmpeg command, with a video file of your choice :

gdb --args ./ffmpeg_g -loglevel 99 -re -i VIDEO_FILE -r 12 -vcodec libx264 -preset superfast -an -tune zerolatency -b:v 1000k -protocol_whitelist pipe,file,udp,rtp,rtsp,tcp -f rtsp rtsp://127.0.0.1:8001/live0

Then ffmpeg segfaults with the following trace :

#0  0x00007ffff747e421 in do_packet_auto_bsf () from ./libavformat/libavformat.so.57
#1  0x00007ffff74800df in av_write_frame () from ./libavformat/libavformat.so.57
#2  0x00007ffff7481f74 in ff_write_chained () from ./libavformat/libavformat.so.57
#3  0x00007ffff74d92d8 in rtsp_write_packet () from ./libavformat/libavformat.so.57
#4  0x00007ffff7481455 in av_interleaved_write_frame () from ./libavformat/libavformat.so.57
#5  0x000000000041f20c in write_frame ()
#6  0x00000000004214d8 in do_video_out ()
#7  0x00000000004234bb in reap_filters ()
#8  0x0000000000408eda in main (

Disass output :

Dump of assembler code from 0x7ffff747e401 to 0x7ffff747e441:
   0x00007ffff747e401 <do_packet_auto_bsf+1>:   push   %rdi
   0x00007ffff747e402 <do_packet_auto_bsf+2>:   push   %r14
   0x00007ffff747e404 <do_packet_auto_bsf+4>:   push   %r13
   0x00007ffff747e406 <do_packet_auto_bsf+6>:   mov    %rsi,%r13
   0x00007ffff747e409 <do_packet_auto_bsf+9>:   push   %r12
   0x00007ffff747e40b <do_packet_auto_bsf+11>:  push   %rbp
   0x00007ffff747e40c <do_packet_auto_bsf+12>:  push   %rbx
   0x00007ffff747e40d <do_packet_auto_bsf+13>:  sub    $0x8,%rsp
   0x00007ffff747e411 <do_packet_auto_bsf+17>:  movslq 0x24(%rsi),%rdx
   0x00007ffff747e415 <do_packet_auto_bsf+21>:  mov    0x30(%rdi),%rax
   0x00007ffff747e419 <do_packet_auto_bsf+25>:  mov    (%rax,%rdx,8),%r14
   0x00007ffff747e41d <do_packet_auto_bsf+29>:  mov    0x10(%rdi),%rax
=> 0x00007ffff747e421 <do_packet_auto_bsf+33>:  mov    0xc0(%rax),%rdx
   0x00007ffff747e428 <do_packet_auto_bsf+40>:  mov    0x308(%r14),%rax
   0x00007ffff747e42f <do_packet_auto_bsf+47>:  test   %rdx,%rdx
   0x00007ffff747e432 <do_packet_auto_bsf+50>:  je     0x7ffff747e43f <do_packet_auto_bsf+63>
   0x00007ffff747e434 <do_packet_auto_bsf+52>:  mov    0x14(%rax),%ecx
   0x00007ffff747e437 <do_packet_auto_bsf+55>:  test   %ecx,%ecx
   0x00007ffff747e439 <do_packet_auto_bsf+57>:  je     0x7ffff747e570 <do_packet_auto_bsf+368>
   0x00007ffff747e43f <do_packet_auto_bsf+63>:  mov    0x10(%rax),%edx
End of assembler dump.

And registers :

rax            0xf77a06a0       4151969440
rbx            0xd9c1a0 14270880
rcx            0x0      0
rdx            0x0      0
rsi            0x7fffffffae50   140737488334416
rdi            0xd9c1a0 14270880
rbp            0x7fffffffae50   0x7fffffffae50
rsp            0x7fffffffad70   0x7fffffffad70
r8             0x15f90  90000
r9             0x1      1
r10            0xafc8   45000
r11            0x15f90  90000
r12            0x0      0
r13            0x7fffffffae50   140737488334416
r14            0xd9c8c0 14272704
r15            0x0      0
rip            0x7ffff747e421   0x7ffff747e421 <do_packet_auto_bsf+33>
eflags         0x10202  [ IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
st0            -nan(0x4a4c4e4e52565b5a) (raw 0xffff4a4c4e4e52565b5a)
st1            -nan(0x4f4e4a4743434547) (raw 0xffff4f4e4a4743434547)
st2            -nan(0x4746474b5153504f) (raw 0xffff4746474b5153504f)
st3            -nan(0x4a4a484a4b4b4544) (raw 0xffff4a4a484a4b4b4544)
st4            -nan(0x545353524d4a4647) (raw 0xffff545353524d4a4647)
st5            -nan(0x5455545455555454) (raw 0xffff5455545455555454)
st6            -nan(0x4f4d4a4a4c505353) (raw 0xffff4f4d4a4a4c505353)
st7            -nan(0x71727576716a6058) (raw 0xffff71727576716a6058)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
mxcsr          0x1fa8   [ OE PE IM DM ZM OM UM PM ]
ymm0           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 
    0x0 <repeats 19 times>}, v16_int16 = {0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x0, 0xff, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {
    0xff00000000, 0xff00000000, 0x0, 0x0}, v2_int128 = {0x000000ff00000000000000ff00000000, 0x00000000000000000000000000000000}}
ymm1           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x25 <repeats 16 times>, 0x0 <repeats 16 times>}, v16_int16 = {0x2525, 0x2525, 0x2525, 
    0x2525, 0x2525, 0x2525, 0x2525, 0x2525, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x25252525, 0x25252525, 0x25252525, 0x25252525, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x2525252525252525, 
    0x2525252525252525, 0x0, 0x0}, v2_int128 = {0x25252525252525252525252525252525, 0x00000000000000000000000000000000}}
ymm2           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x38, 0x20, 0x62, 0x79, 0x74, 0x65, 0x73, 0xa, 0x0 <repeats 24 times>}, v16_int16 = {
    0x2038, 0x7962, 0x6574, 0xa73, 0x0 <repeats 12 times>}, v8_int32 = {0x79622038, 0xa736574, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xa73657479622038, 0x0, 0x0, 0x0}, v2_int128 = {
    0x00000000000000000a73657479622038, 0x00000000000000000000000000000000}}
ymm3           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm4           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x0, 0xff, 0x0 <repeats 27 times>}, v16_int16 = {0x0, 0x0, 0xff, 
    0x0 <repeats 13 times>}, v8_int32 = {0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xff00000000, 0x0, 0x0, 0x0}, v2_int128 = {0x0000000000000000000000ff00000000, 
    0x00000000000000000000000000000000}}
ymm5           {v8_float = {0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x40, 0x0 <repeats 28 times>}, v16_int16 = {0x0, 0x4000, 
    0x0 <repeats 14 times>}, v8_int32 = {0x40000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x40000000, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000040000000, 
---Type <return> to continue, or q <return> to quit--- 
    0x00000000000000000000000000000000}}
ymm6           {v8_float = {0x2, 0x1, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x1, 0x1, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x40, 0x22, 0xe8, 0xfa, 0x3f, 0x0, 0x0, 0x0, 0x40, 0x22, 0xe8, 0xfa, 
    0x3f, 0x0 <repeats 16 times>}, v16_int16 = {0x0, 0x4000, 0xe822, 0x3ffa, 0x0, 0x4000, 0xe822, 0x3ffa, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x40000000, 0x3ffae822, 0x40000000, 
    0x3ffae822, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x3ffae82240000000, 0x3ffae82240000000, 0x0, 0x0}, v2_int128 = {0x3ffae822400000003ffae82240000000, 0x00000000000000000000000000000000}}
ymm7           {v8_float = {0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x17, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x37, 0x40, 0x0 <repeats 24 times>}, v16_int16 = {0x0, 
    0x0, 0x0, 0x4037, 0x0 <repeats 12 times>}, v8_int32 = {0x0, 0x40370000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x4037000000000000, 0x0, 0x0, 0x0}, v2_int128 = {
    0x00000000000000004037000000000000, 0x00000000000000000000000000000000}}
ymm8           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm9           {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm10          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm11          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm12          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0xff, 
    0x0 <repeats 17 times>}, v16_int16 = {0xff00, 0x0, 0x0, 0x0, 0x0, 0xff, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xff00, 0x0, 0xff0000, 0xff0000, 0x0, 0x0, 0x0, 0x0}, 
  v4_int64 = {0xff00, 0xff000000ff0000, 0x0, 0x0}, v2_int128 = {0x00ff000000ff0000000000000000ff00, 0x00000000000000000000000000000000}}
ymm13          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm14          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000}}
ymm15          {v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x1 <repeats 16 times>, 0x0 <repeats 16 times>}, v16_int16 = {0x101, 0x101, 0x101, 
    0x101, 0x101, 0x101, 0x101, 0x101, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x1010101, 0x1010101, 0x1010101, 0x1010101, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x101010101010101, 
    0x101010101010101, 0x0, 0x0}, v2_int128 = {0x01010101010101010101010101010101, 0x00000000000000000000000000000000}}

Note that in 3.1.3, the crash occurs in compute_muxer_pkt_fields().

Change History (11)

comment:1 Changed 16 months ago by cehoyos

  • Keywords crash regression added; RECORD removed
  • Priority changed from normal to important

Please also provide the complete, uncut console output (as shown by gdb when running above commands).
Which change introduced the regression?

comment:2 Changed 16 months ago by LeRatier

I am not able to fin which change introduced the issue - sorry. It is working perfectly in 2.8.7, not anymore in 3.1.3/HEAD.

Complete output log :

Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-22.1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
ffmpeg version N-81636-g025f75c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (SUSE Linux)
  configuration: --enable-runtime-cpudetect --shlibdir=/usr/local/lib64 --enable-libx264 --enable-libvpx --enable-hwaccels --enable-vaapi --enable-avresample --enable-pthreads --enable-pic --enable-shared --enable-libmfx --enable-debug=1 --enable-debug --disable-stripping --enable-gpl
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 48.103 / 57. 48.103
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 61.100 /  6. 61.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ... matched as input file with argument '/home/sigmar/Videos/stanley_out_01.mkv'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '12'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'superfast'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1000k'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'pipe,file,udp,rtp,rtsp,tcp'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtsp'.
Reading option 'rtsp://127.0.0.1:8001/live0' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument 99.
Successfully parsed a group of options.
Parsing a group of options: input file /home/sigmar/Videos/stanley_out_01.mkv.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: /home/sigmar/Videos/stanley_out_01.mkv.
[file @ 0x64d100] Setting default whitelist 'file,crypto'
Probing matroska,webm score:100 size:2048
[matroska,webm @ 0x64c840] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x64c840] Before avformat_find_stream_info() pos: 655 bytes read:32768 seeks:0 nb_streams:1
[matroska,webm @ 0x64c840] All info found
[matroska,webm @ 0x64c840] stream 0: start_time: 0.000 duration: -9223372036854776.000
[matroska,webm @ 0x64c840] format: start_time: 0.000 duration: 47.080 bitrate=749 kb/s
[matroska,webm @ 0x64c840] After avformat_find_stream_info() pos: 25662 bytes read:32768 seeks:0 frames:2
Input #0, matroska,webm, from '/home/sigmar/Videos/stanley_out_01.mkv':
  Metadata:
    ENCODER         : Lavf56.40.101
  Duration: 00:00:47.08, start: 0.000000, bitrate: 749 kb/s
    Stream #0:0, 2, 1/1000: Video: mpeg4 (Main Profile), 1 reference frame, yuv420p(left), 720x576 [SAR 1:1 DAR 5:4], 0/1, 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Metadata:
      DURATION        : 00:00:47,080000000
Successfully opened the file.
Parsing a group of options: output file rtsp://127.0.0.1:8001/live0.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 12.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
Applying option an (disable audio) with argument 1.
Applying option b:v (video bitrate (please use -b:v)) with argument 1000k.
Applying option f (force format) with argument rtsp.
Successfully parsed a group of options.
Opening an output file: rtsp://127.0.0.1:8001/live0.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0x6687a0] Setting 'video_size' to value '720x576'
[graph 0 input from stream 0:0 @ 0x6687a0] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x6687a0] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x6687a0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x6687a0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x6687a0] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x6687a0] w:720 h:576 pixfmt:yuv420p tb:1/1000 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 0x65e400] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16]
[format @ 0x65e400] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16'
[AVFilterGraph @ 0x669620] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[libx264 @ 0x65d9a0] using SAR=1/1
[libx264 @ 0x65d9a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x65d9a0] profile High, level 2.2
[libx264 @ 0x65d9a0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc=abr mbtree=0 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[rtsp @ 0x6fad00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[rtsp @ 0x6fad00] Sending:
OPTIONS rtsp://127.0.0.1:8001/live0 RTSP/1.0
CSeq: 1
User-Agent: Lavf57.48.103

--
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2f [/]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
[rtsp @ 0x6fad00] ret=1 c=2e [.]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=4b [K]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='RTSP/1.0 200 OK'
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=75 [u]
[rtsp @ 0x6fad00] ret=1 c=62 [b]
[rtsp @ 0x6fad00] ret=1 c=6c [l]
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=63 [c]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=49 [I]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=4e [N]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=2c [,]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=44 [D]
[rtsp @ 0x6fad00] ret=1 c=45 [E]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=49 [I]
[rtsp @ 0x6fad00] ret=1 c=42 [B]
[rtsp @ 0x6fad00] ret=1 c=45 [E]
[rtsp @ 0x6fad00] ret=1 c=2c [,]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=45 [E]
[rtsp @ 0x6fad00] ret=1 c=41 [A]
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=44 [D]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=57 [W]
[rtsp @ 0x6fad00] ret=1 c=4e [N]
[rtsp @ 0x6fad00] ret=1 c=2c [,]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=45 [E]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=55 [U]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2c [,]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=41 [A]
[rtsp @ 0x6fad00] ret=1 c=4e [N]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=55 [U]
[rtsp @ 0x6fad00] ret=1 c=4e [N]
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=45 [E]
[rtsp @ 0x6fad00] ret=1 c=2c [,]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=45 [E]
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=44 [D]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='Public: OPTIONS, DESCRIBE, TEARDOWN, SETUP, ANNOUNCE, RECORD'
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=71 [q]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='CSeq: 1'
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='Session: 1'
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line=''
[rtsp @ 0x6fad00] SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 57.48.103
m=video 0 RTP/AVP 96
b=AS:1000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z2QAFqy0BaCTYCIAAAMAAgAAAwAxHixdQA==,aO88sA==; profile-level-id=640016
a=control:streamid=0

[rtsp @ 0x6fad00] Sending:
ANNOUNCE rtsp://127.0.0.1:8001/live0 RTSP/1.0
Content-Type: application/sdp
CSeq: 2
User-Agent: Lavf57.48.103
Session: 1
Content-Length: 303

--
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2f [/]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
[rtsp @ 0x6fad00] ret=1 c=2e [.]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=4b [K]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='RTSP/1.0 200 OK'
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=71 [q]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='CSeq: 2'
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='Session: 1'
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line=''
[udp @ 0x65eb00] end receive buffer size reported is 131072
[udp @ 0x65e7a0] end receive buffer size reported is 131072
[rtsp @ 0x6fad00] Sending:
SETUP rtsp://127.0.0.1:8001/live0/streamid=0 RTSP/1.0
Transport: RTP/AVP/UDP;unicast;client_port=12866-12867;mode=record
CSeq: 3
User-Agent: Lavf57.48.103
Session: 1

--
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2f [/]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
[rtsp @ 0x6fad00] ret=1 c=2e [.]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=4b [K]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='RTSP/1.0 200 OK'
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=61 [a]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
[rtsp @ 0x6fad00] ret=1 c=70 [p]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=74 [t]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2f [/]
[rtsp @ 0x6fad00] ret=1 c=41 [A]
[rtsp @ 0x6fad00] ret=1 c=56 [V]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2f [/]
[rtsp @ 0x6fad00] ret=1 c=55 [U]
[rtsp @ 0x6fad00] ret=1 c=44 [D]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=3b [;]
[rtsp @ 0x6fad00] ret=1 c=75 [u]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=63 [c]
[rtsp @ 0x6fad00] ret=1 c=61 [a]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
[rtsp @ 0x6fad00] ret=1 c=74 [t]
[rtsp @ 0x6fad00] ret=1 c=3b [;]
[rtsp @ 0x6fad00] ret=1 c=63 [c]
[rtsp @ 0x6fad00] ret=1 c=6c [l]
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=74 [t]
[rtsp @ 0x6fad00] ret=1 c=5f [_]
[rtsp @ 0x6fad00] ret=1 c=70 [p]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=74 [t]
[rtsp @ 0x6fad00] ret=1 c=3d [=]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=38 [8]
[rtsp @ 0x6fad00] ret=1 c=36 [6]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=2d [-]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=38 [8]
[rtsp @ 0x6fad00] ret=1 c=36 [6]
[rtsp @ 0x6fad00] ret=1 c=37 [7]
[rtsp @ 0x6fad00] ret=1 c=3b [;]
[rtsp @ 0x6fad00] ret=1 c=6d [m]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=64 [d]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=3d [=]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=63 [c]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=64 [d]
[rtsp @ 0x6fad00] ret=1 c=3b [;]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=76 [v]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=5f [_]
[rtsp @ 0x6fad00] ret=1 c=70 [p]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=72 [r]
[rtsp @ 0x6fad00] ret=1 c=74 [t]
[rtsp @ 0x6fad00] ret=1 c=3d [=]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
    Last message repeated 3 times
[rtsp @ 0x6fad00] ret=1 c=2d [-]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
    Last message repeated 2 times
[rtsp @ 0x6fad00] ret=1 c=31 [1]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='Transport: RTP/AVP/UDP;unicast;client_port=12866-12867;mode=record;server_port=20000-20001'
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=71 [q]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=33 [3]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='CSeq: 3'
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='Session: 1'
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line=''
[rtsp @ 0x6fad00] Sending:
RECORD rtsp://127.0.0.1:8001/live0 RTSP/1.0
Range: npt=0.000-
CSeq: 4
User-Agent: Lavf57.48.103
Session: 1

--
[rtsp @ 0x6fad00] ret=1 c=52 [R]
[rtsp @ 0x6fad00] ret=1 c=54 [T]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=50 [P]
[rtsp @ 0x6fad00] ret=1 c=2f [/]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
[rtsp @ 0x6fad00] ret=1 c=2e [.]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=32 [2]
[rtsp @ 0x6fad00] ret=1 c=30 [0]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=4f [O]
[rtsp @ 0x6fad00] ret=1 c=4b [K]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='RTSP/1.0 200 OK'
[rtsp @ 0x6fad00] ret=1 c=43 [C]
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=71 [q]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=34 [4]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='CSeq: 4'
[rtsp @ 0x6fad00] ret=1 c=53 [S]
[rtsp @ 0x6fad00] ret=1 c=65 [e]
[rtsp @ 0x6fad00] ret=1 c=73 [s]
    Last message repeated 1 times
[rtsp @ 0x6fad00] ret=1 c=69 [i]
[rtsp @ 0x6fad00] ret=1 c=6f [o]
[rtsp @ 0x6fad00] ret=1 c=6e [n]
[rtsp @ 0x6fad00] ret=1 c=3a [:]
[rtsp @ 0x6fad00] ret=1 c=20 [ ]
[rtsp @ 0x6fad00] ret=1 c=31 [1]
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line='Session: 1'
]rtsp @ 0x6fad00] ret=1 c=0d [
[rtsp @ 0x6fad00] ret=1 c=0a [
]
[rtsp @ 0x6fad00] line=''
Output #0, rtsp, to 'rtsp://127.0.0.1:8001/live0':
  Metadata:
    encoder         : Lavf57.48.103
    Stream #0:0, 0, 1/90000: Video: h264 (libx264), 1 reference frame, yuv420p(left), 720x576 [SAR 1:1 DAR 5:4], 0/1, q=-1--1, 1000 kb/s, 12 fps, 90k tbn, 12 tbc (default)
    Metadata:
      DURATION        : 00:00:47,080000000
      encoder         : Lavc57.55.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 64 times
Clipping frame in rate conversion by 0.000008
[libx264 @ 0x65d9a0] frame=   0 QP=17.19 NAL=3 Slice:I Poc:0   I:1620 P:0    SKIP:0    size=27898 bytes

Thread 1 "ffmpeg_g" received signal SIGSEGV, Segmentation fault.
0x00007ffff747e421 in do_packet_auto_bsf () from ./libavformat/libavformat.so.57
Missing separate debuginfos, use: zypper install libFLAC8-debuginfo-1.3.0-9.2.x86_64 libSDL-1_2-0-debuginfo-1.2.15-17.1.x86_64 libX11-6-debuginfo-1.6.3-3.1.x86_64 libXau6-debuginfo-1.0.8-6.1.x86_64 libXext6-debuginfo-1.3.3-3.1.x86_64 libXfixes3-debuginfo-5.0.1-5.1.x86_64 libXrandr2-debuginfo-1.5.0-1.1.x86_64 libXrender1-debuginfo-0.9.9-1.1.x86_64 libasound2-debuginfo-1.0.29-10.1.x86_64 libaudiofile1-debuginfo-0.3.6-9.1.x86_64 libbz2-1-debuginfo-1.0.6-32.1.x86_64 libdbus-1-3-debuginfo-1.8.16-7.1.x86_64 libdrm2-debuginfo-2.4.65-1.1.x86_64 libesd0-debuginfo-0.2.41-29.1.x86_64 libgcc_s1-debuginfo-5.3.1+r233831-6.1.x86_64 libgcrypt20-debuginfo-1.6.1-29.1.x86_64 libgpg-error0-debuginfo-1.15-1.2.x86_64 libjson-c2-debuginfo-0.12-4.2.x86_64 liblzma5-debuginfo-5.0.7-1.1.x86_64 libogg0-debuginfo-1.3.1-2.1.2.x86_64 libopenssl1_0_0-debuginfo-1.0.1i-15.1.x86_64 libpulse0-debuginfo-7.0-5.1.x86_64 libsndfile1-debuginfo-1.0.25-24.1.x86_64 libspeex1-debuginfo-1.2~rc2-1.1.x86_64 libstdc++6-debuginfo-5.3.1+r233831-6.1.x86_64 libva-drm1-debuginfo-1.6.0-3.2.x86_64 libva-x11-1-debuginfo-1.6.0-3.2.x86_64 libva1-debuginfo-1.6.0-3.2.x86_64 libvorbis0-debuginfo-1.3.4-3.1.4.x86_64 libvorbisenc2-debuginfo-1.3.4-3.1.4.x86_64 libvpx1-debuginfo-1.3.0-3.2.x86_64 libx264-142-debuginfo-0.142svn20141218-1.5.x86_64 libxcb-shape0-debuginfo-1.11.1-1.1.x86_64 libxcb-shm0-debuginfo-1.11.1-1.1.x86_64 libxcb-xfixes0-debuginfo-1.11.1-1.1.x86_64 libxcb1-debuginfo-1.11.1-1.1.x86_64 libz1-debuginfo-1.2.8-6.4.x86_64 systemd-debuginfo-210-95.1.x86_64

comment:3 follow-up: Changed 16 months ago by LeRatier

I am testing with 3.0 branch right now, i will post the results here.

comment:4 Changed 16 months ago by LeRatier

Working with 3.0.3 version, compiled with exactly same options.

comment:5 in reply to: ↑ 3 Changed 16 months ago by cehoyos

Replying to LeRatier:

I am testing with 3.0 branch right now, i will post the results here.

I don't think this is very useful: If you want to help run git bisect to find the change introducing the issue. Testing releases does not really help.

comment:6 Changed 16 months ago by LeRatier

After a bisect session, here are the results :

There are only 'skip'ped commits left to test.
The first bad commit could be any of:
bc2a32969eb4db17677971def5ad5b936d9d1648
00e122bc0f2a4d867797f593770f9902f275b864
We cannot bisect more!

comment:7 Changed 16 months ago by LeRatier

And next step performed ! The regression appears in bc2a32969eb4db17677971def5ad5b936d9d1648, with this 2 lines added in rtsp.c :

@@ -824,6 +828,8 @@ int ff_rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
     if (!rtsp_st->transport_priv) {
          return AVERROR(ENOMEM);
     } else if (CONFIG_RTPDEC && rt->transport == RTSP_TRANSPORT_RTP) {
+        RTPDemuxContext *rtpctx = rtsp_st->transport_priv;
+        rtpctx->ssrc = rtsp_st->ssrc;
         if (rtsp_st->dynamic_handler) {
             ff_rtp_parse_set_dynamic_protocol(rtsp_st->transport_priv,
                                               rtsp_st->dynamic_protocol_context,

At this point, i can not help further, i do not know why this modification involves a crash in the lower function layer.

comment:8 Changed 16 months ago by cehoyos

  • Status changed from new to open

comment:9 Changed 16 months ago by cehoyos

You are testing on Linux, right?
Do you know why this user claims he can only reproduce the crash on Windows?
http://ffmpeg.org/pipermail/ffmpeg-user/2016-September/033610.html

comment:10 Changed 16 months ago by LeRatier

Yes, only Linux.
No idea on Windows, but i do not understand why the OS matters in this case.

comment:11 Changed 16 months ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Hopefully fixed in f8a13c72 - thank you for the report!

Note: See TracTickets for help on using tickets.