Opened 3 months ago

Last modified 2 months ago

#7815 new defect

Unable to seek after reaching end of RTSP Stream

Reported by: kealist Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: junli1026@gmail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

Once playback reaches the end of an RTSP stream, I am unable to seek anywhere in the video. I have experienced this on many different streams, but is easy to see with BigBuckBunny?

ffplay -v trace "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"

How to reproduce:

C:\Users\kealist\Downloads\ffmpeg-20190225-f948082-win64-shared\bin>ffplay "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
ffplay version N-93252-gf948082e5f Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.102 / 58. 47.102
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[udp @ 000001841e8188c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 000001841e80af00] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 000001841e83ee40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 000001841e80b1c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

Right-click near the end to seek. Once the video ends, right click anywhere to seek and the video will never seek whether playing or paused.

Change History (5)

comment:1 in reply to: ↑ description ; follow-up: Changed 2 months ago by Jun

  • Cc junli1026@gmail.com added

Replying to kealist:

I tried on my Mac, using keyboard seeking and it works.
Could you have a try with keyboard ?

comment:2 in reply to: ↑ 1 ; follow-up: Changed 2 months ago by kealist

Replying to Jun:

Replying to kealist:

I tried on my Mac, using keyboard seeking and it works.
Could you have a try with keyboard ?

I have experienced the same issue on both Windows and OSX, trying to seek after whether using mouse or keyboard arrow keys does not work after it reaches/downloads the end of the stream. To me, it seems like it gets into some kind of "extra info" at the end of the stream and cannot get back into the main video. The stream may be longer than originally reported and when it grows past the original duration it gets into some kind of corrupted state.

comment:3 in reply to: ↑ 2 Changed 2 months ago by Jun

Replying to kealist:

Do you have any logs when it reaches the end of the stream? When you seek, it suppose to have a PLAY request sent out with Range parameter. Did you see it ?

comment:4 Changed 2 months ago by kealist

This is the output with trace enabled from console history. I see a seek message, but no Play request. I assume it would show up with trace enabled?

[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=291
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=405
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=235
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=569
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=275
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=339
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=335
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=281
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=210
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=287
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=396
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=398
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=223
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=219
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=359
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=1070
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=324
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=185
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=248
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=390
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=414
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=1117
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=204
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=251
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=296
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=342
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=306
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=235
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=285
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=230
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=355
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=324
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=327
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=161
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=290
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=231
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=331
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=328
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=764
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=325
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=382
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=409
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=407
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=439
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=373
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=312
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=334
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=421
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=301
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=401
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=288
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=383
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=250
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=1 len=28
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=412
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=414
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=328
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=324
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=33
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=16
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=1372
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=1372
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=148
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=597
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=328
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=293
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=293
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=280
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.084 A-V=-0.108335
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 7(SPS), nal_ref_idc: 3/1
[h264 @ 000001946112f580] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 000001946112f580] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
video: delay=0.000 A-V=2.164682
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 00000194611071c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 00000194611071c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
video: delay=0.000 A-V=2.137332
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
video: delay=0.015 A-V=2.110335    0KB vq=    0KB sq=    0B f=1/1
video: delay=0.042 A-V=0.016018
video: delay=0.042 A-V=-0.009936   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=3 len=28
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=382
video: delay=0.042 A-V=-0.007272
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=336
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=309
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.041 A-V=-0.010335
    Last message repeated 2 times
video: delay=0.042 A-V=-0.015668   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
video: delay=0.042 A-V=-0.013018
[rtsp @ 00000194610e3880] ret=1 c=24 [$]q=    0KB sq=    0B f=1/1
[rtsp @ 00000194610e3880] id=2 len=296
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=325
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=325
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
video: delay=0.042 A-V=-0.009991
[rtsp @ 00000194610e3880] tcp_read_packet:
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=329
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.042 A-V=-0.009991
    Last message repeated 1 times
video: delay=0.041 A-V=-0.020351   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
video: delay=0.041 A-V=-0.017664   0KB vq=    0KB sq=    0B f=1/1
video: delay=0.042 A-V=-0.015664
    Last message repeated 1 times
[rtsp @ 00000194610e3880] ret=1 c=24 [$]q=    0KB sq=    0B f=1/1
[rtsp @ 00000194610e3880] id=2 len=252
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=460
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=291
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.042 A-V=-0.015664
    Last message repeated 1 times
video: delay=0.042 A-V=-0.022006
video: delay=0.042 A-V=-0.022006   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
video: delay=0.041 A-V=-0.018338
video: delay=0.041 A-V=-0.018338   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=311
[rtsp @ 00000194610e3880] tcp_read_packet:
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=450
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=736
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.042 A-V=-0.020345
video: delay=0.042 A-V=-0.026672   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
video: delay=0.042 A-V=-0.005001
video: delay=0.042 A-V=-0.006979   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 2 times
[rtsp @ 00000194610e3880] ret=1 c=24 [$]q=    0KB sq=    0B f=1/1
[rtsp @ 00000194610e3880] id=2 len=193
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=348
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
video: delay=0.041 A-V=-0.014335
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=435
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=284
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.041 A-V=-0.014335
video: delay=0.041 A-V=-0.014335   0KB vq=    0KB sq=    0B f=1/1
video: delay=0.042 A-V=-0.013669
    Last message repeated 2 times
video: delay=0.042 A-V=-0.013669   0KB vq=    0KB sq=    0B f=1/1
video: delay=0.042 A-V=-0.019005
    Last message repeated 1 times
[rtsp @ 00000194610e3880] ret=1 c=24 [$]q=    0KB sq=    0B f=1/1
video: delay=0.042 A-V=-0.019005
[rtsp @ 00000194610e3880] id=2 len=261
[rtsp @ 00000194610e3880] tcp_read_packet:
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=339
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=303
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.041 A-V=-0.018331
    Last message repeated 1 times
video: delay=0.041 A-V=-0.018331   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
video: delay=0.042 A-V=-0.015334
video: delay=0.042 A-V=-0.021667   0KB vq=    0KB sq=    0B f=1/1
    Last message repeated 1 times
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=241
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=240
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=331
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=290
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=196
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=347
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=322
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=204
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=235
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=319
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=253
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=278
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=407
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=535
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=375
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=332
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=283
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=310
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=268
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=289
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=252
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=281
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=305
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=378
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=271
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=2 len=195
[rtsp @ 00000194610e3880] tcp_read_packet:
[rtsp @ 00000194610e3880] ret=1 c=24 [$]
[rtsp @ 00000194610e3880] id=0 len=391
[rtsp @ 00000194610e3880] tcp_read_packet:
video: delay=0.084 A-V=-1.125992
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194611071c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 00000194682785c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946115fc80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468351900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160640] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019461160bc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001946112f580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468277cc0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0000019468278140] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
video: delay=0.000 A-V=1.145997
video: delay=0.000 A-V=1.068000
video: delay=0.000 A-V=1.042041    0KB vq=    0KB sq=    0B f=1/1
Seek to 33% ( 0:03:16) of total duration ( 0:09:56)       B f=1/1
Seek to 80% ( 0:07:59) of total duration ( 0:09:56)       B f=1/1
Seek to 18% ( 0:01:44) of total duration ( 0:09:56)       B f=1/1
 596.06 A-V:-38.078 fd= 652 aq=    0KB vq=    0KB sq=    0B f=1/1

comment:5 Changed 2 months ago by kealist

Jun, So with the above video if you seek to close to the end, then let the video finish and try seeking it works for you?

Myself and my coworkers have tried this on multiple machines, with multiple version of ffmpeg, and other movies players built on ffmpeg and all have the same issue with seeking. This also the case with playback streams from Amcrest cameras/NVR as well, so it is not only this particular RTSP stream.

Note: See TracTickets for help on using tickets.