mediamtx icon indicating copy to clipboard operation
mediamtx copied to clipboard

The hevc_nvenc video that used to be fine in aller9/rtsp-simple-server:v0.21.1 is no longer working

Open BonhyeonGu opened this issue 1 year ago • 2 comments

Which version are you using?

v1.1.0

Which operating system are you using?

  • [ ] Linux amd64 standard
  • [x] Linux amd64 Docker
  • [ ] Linux arm64 standard
  • [ ] Linux arm64 Docker
  • [ ] Linux arm7 standard
  • [ ] Linux arm7 Docker
  • [ ] Linux arm6 standard
  • [ ] Linux arm6 Docker
  • [ ] Windows amd64 standard
  • [ ] Windows amd64 Docker (WSL backend)
  • [ ] macOS amd64 standard
  • [ ] macOS amd64 Docker
  • [ ] Other (please describe)

Describe the issue

I wanted to turn over the hevc_nvenc video to that server. Therefore, I used the command below.

ffmpeg -loglevel debug -hwaccel cuda -correct_ts_overflow 0 -r 15 -i rtsp://<s>:8554/H.265/media.smp -max_muxing_queue_size 9999 -c:v hevc_nvenc -f rtsp -r 15 rtsp://rtsp_srv9:8554/stream0

Interestingly, the command worked well in version aller9/rtsp-simple-server:v0.21.1. bluenviron/mediamtx:latest does not work and changes encoder to hevc works well.

Do I misunderstand how to use it? Please let me know.

Describe how to replicate the issue

  1. start the server
  2. Start the FFMPEG container ready for hardware acceleration.
  3. Run command

Did you attach the server logs?

yes

root@df3e3e470308:~/ffmpeg# ffmpeg -loglevel debug -hwaccel cuda -correct_ts_overflow 0 -r 15 -i rtsp://[S-IP]:8554/H.265/media.smp -max_muxing_queue_size 9999 -c:v hevc_nvenc -f rtsp -r 15 rtsp://rtsp_srv9:8554/stream0
ffmpeg version N-109899-gd80f3debe2 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --enable-nonfree --enable-nvenc --enable-libx264 --enable-libx265 --enable-gpl --enable-cuda --enable-cuvid --enable-cuda-nvcc
  libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'cuda'.
Reading option '-correct_ts_overflow' ... matched as AVOption 'correct_ts_overflow' with argument '0'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '15'.
Reading option '-i' ... matched as input url with argument 'rtsp://[S-IP]:8554/H.265/media.smp'.
Reading option '-max_muxing_queue_size' ... matched as option 'max_muxing_queue_size' (maximum number of packets that can be buffered while waiting for all streams to initialize) with argument '9999'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'hevc_nvenc'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtsp'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '15'.
Reading option 'rtsp://rtsp_srv9:8554/stream0' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://[S-IP]:8554/H.265/media.smp.
Applying option hwaccel (use HW accelerated decoding) with argument cuda.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 15.
Successfully parsed a group of options.
Opening an input file: rtsp://[S-IP]:8554/H.265/media.smp.
[tcp @ 0x563d03bcdec0] No default whitelist set
[tcp @ 0x563d03bcdec0] Original list of addresses:
[tcp @ 0x563d03bcdec0] Address [S-IP] port 8554
[tcp @ 0x563d03bcdec0] Interleaved list of addresses:
[tcp @ 0x563d03bcdec0] Address [S-IP] port 8554
[tcp @ 0x563d03bcdec0] Starting connection attempt to [S-IP] port 8554
[tcp @ 0x563d03bcdec0] Successfully connected to [S-IP] port 8554
[rtsp @ 0x563d03bcb1c0] SDP:
v=0
o=- 0 0 IN IP4 10.3.128.35
s=Media Presentation
i=samsung
c=IN IP4 0.0.0.0
b=AS:2120
t=0 0
a=control:rtsp://[S-IP]:8554/H.265/media.smp
a=range:npt=now-
m=video 40780 RTP/AVP 106
b=AS:2048
a=rtpmap:106 H265/90000
a=control:rtsp://[S-IP]:8554/H.265/media.smp/trackID=v
a=cliprect:0,0,960,1280
a=framesize:106 1280-960
a=framerate:15.0
a=fmtp:106 sprop-vps=QAEMAf//AWAAAAMAgAAAAwAAAwB4rAk=;sprop-sps=QgEBAWAAAAMAgAAAAwAAAwB4oAKAgDwf42u7U3dyXWAtwEBAQQAAAwPoAAA6mHId7lEANmAAPS4AGzAAHpcI;sprop-pps=RAHBcrCcOHYk
m=application 40784 RTP/AVP 107
b=AS:8
a=rtpmap:107 vnd.onvif.metadata/90000
a=control:rtsp://[S-IP]:8554/H.265/media.smp/trackID=m
a=recvonly

[rtsp @ 0x563d03bcb1c0] video codec set to: hevc
[rtp @ 0x563d03bd2440] No default whitelist set
[udp @ 0x563d03bd2f40] No default whitelist set
[udp @ 0x563d03bd2f40] end receive buffer size reported is 425984
[udp @ 0x563d03be3280] No default whitelist set
[udp @ 0x563d03be3280] end receive buffer size reported is 425984
[rtsp @ 0x563d03bcb1c0] setting jitter buffer size to 500
[rtp @ 0x563d03bf3ac0] No default whitelist set
[udp @ 0x563d03bf4680] No default whitelist set
[udp @ 0x563d03bf4680] end receive buffer size reported is 425984
[udp @ 0x563d03bd2c40] No default whitelist set
[udp @ 0x563d03bd2c40] end receive buffer size reported is 425984
[rtsp @ 0x563d03bcb1c0] setting jitter buffer size to 500
[rtsp @ 0x563d03bcb1c0] hello state=0
[hevc @ 0x563d03bcfe80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] Decoding VPS
[hevc @ 0x563d03bcfe80] Main profile bitstream
[hevc @ 0x563d03bcfe80] Decoding SPS
[hevc @ 0x563d03bcfe80] Main profile bitstream
[hevc @ 0x563d03bcfe80] Decoding VUI
[hevc @ 0x563d03bcfe80] Decoding PPS
[hevc @ 0x563d03bcfe80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] Decoding VPS
[hevc @ 0x563d03bcfe80] Main profile bitstream
[hevc @ 0x563d03bcfe80] Decoding SPS
[hevc @ 0x563d03bcfe80] Main profile bitstream
[hevc @ 0x563d03bcfe80] Decoding VUI
[hevc @ 0x563d03bcfe80] Decoding PPS
[rtsp @ 0x563d03bcb1c0] Non-increasing DTS in stream 1: packet 2 with DTS 730150536, packet 3 with DTS 730150536
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding VPS
[hevc @ 0x563d03bcfe80] Main profile bitstream
[hevc @ 0x563d03bcfe80] Decoding SPS
[hevc @ 0x563d03bcfe80] Main profile bitstream
[hevc @ 0x563d03bcfe80] Decoding VUI
[hevc @ 0x563d03bcfe80] Decoding PPS
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] Skipped PREFIX SEI 0
[hevc @ 0x563d03bcfe80] Decoding SEI
    Last message repeated 1 times
[hevc @ 0x563d03bcfe80] Skipped PREFIX SEI 6
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[rtsp @ 0x563d03bcb1c0] first_dts 730219802 not matching first dts NOPTS (pts NOPTS, duration 6000) in the queue
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d03bcfe80] Decoding SEI
[rtsp @ 0x563d03bcb1c0] All info found
[rtsp @ 0x563d03bcb1c0] rfps: 14.666667 0.016397
[rtsp @ 0x563d03bcb1c0] rfps: 14.750000 0.009223
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 14.833333 0.004102
[rtsp @ 0x563d03bcb1c0] rfps: 14.916667 0.001033
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 15.000000 0.000016
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 15.083333 0.001052
[rtsp @ 0x563d03bcb1c0] rfps: 15.166667 0.004141
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 15.250000 0.009282
[rtsp @ 0x563d03bcb1c0] rfps: 15.333333 0.016476
[rtsp @ 0x563d03bcb1c0] rfps: 29.666667 0.016406
[rtsp @ 0x563d03bcb1c0] rfps: 29.750000 0.009242
[rtsp @ 0x563d03bcb1c0] rfps: 29.833333 0.004130
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 29.916667 0.001071
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 30.000000 0.000065
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 45.000000 0.000146
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 60.000000 0.000259
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 120.000000 0.001036
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 240.000000 0.004144
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 29.970030 0.000190
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 59.940060 0.000761
    Last message repeated 1 times
[rtsp @ 0x563d03bcb1c0] rfps: 14.985015 0.000048
    Last message repeated 1 times
Selecting decoder 'hevc' because of requested hwaccel method cuda
Input #0, rtsp, from 'rtsp://[S-IP]:8554/H.265/media.smp':
  Metadata:
    title           : Media Presentation
    comment         : samsung
  Duration: N/A, start: 8112.783733, bitrate: N/A
  Stream #0:0, 22, 1/90000: Video: hevc (Main), 1 reference frame, yuvj420p(pc, bt709, left), 1280x960 [SAR 1:1 DAR 4:3], 0/1, 15 fps, 15 tbr, 90k tbn
  Stream #0:1, 4, 1/90000: Data: none, 0/1
Successfully opened the file.
Parsing a group of options: output url rtsp://rtsp_srv9:8554/stream0.
Applying option max_muxing_queue_size (maximum number of packets that can be buffered while waiting for all streams to initialize) with argument 9999.
Applying option c:v (codec name) with argument hevc_nvenc.
Applying option f (force format) with argument rtsp.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 15.
Successfully parsed a group of options.
Opening an output file: rtsp://rtsp_srv9:8554/stream0.
Successfully opened the file.
[AVHWDeviceContext @ 0x563d03c292c0] Loaded lib: libcuda.so.1
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuInit
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDeviceGetCount
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDeviceGet
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDeviceGetAttribute
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDeviceGetName
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDeviceComputeCapability
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuCtxCreate_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuCtxSetLimit
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuCtxPushCurrent_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuCtxPopCurrent_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuCtxDestroy_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemAlloc_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemAllocPitch_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemAllocManaged
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemsetD8Async
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemFree_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpy
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyAsync
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpy2D_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpy2DAsync_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyHtoD_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyHtoDAsync_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyDtoH_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyDtoHAsync_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyDtoD_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMemcpyDtoDAsync_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGetErrorName
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGetErrorString
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuCtxGetDevice
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDevicePrimaryCtxRetain
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDevicePrimaryCtxRelease
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDevicePrimaryCtxSetFlags
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDevicePrimaryCtxGetState
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDevicePrimaryCtxReset
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuStreamCreate
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuStreamQuery
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuStreamSynchronize
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuStreamDestroy_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuStreamAddCallback
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEventCreate
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEventDestroy_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEventSynchronize
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEventQuery
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEventRecord
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuLaunchKernel
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuLinkCreate
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuLinkAddData
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuLinkComplete
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuLinkDestroy
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuModuleLoadData
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuModuleUnload
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuModuleGetFunction
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuModuleGetGlobal
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuTexObjectCreate
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuTexObjectDestroy
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGLGetDevices_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGraphicsGLRegisterImage
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGraphicsUnregisterResource
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGraphicsMapResources
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGraphicsUnmapResources
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGraphicsSubResourceGetMappedArray
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuGraphicsResourceGetMappedPointer_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDeviceGetUuid
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuImportExternalMemory
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDestroyExternalMemory
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuExternalMemoryGetMappedBuffer
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuExternalMemoryGetMappedMipmappedArray
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMipmappedArrayGetLevel
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuMipmappedArrayDestroy
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuImportExternalSemaphore
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuDestroyExternalSemaphore
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuSignalExternalSemaphoresAsync
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuWaitExternalSemaphoresAsync
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuArrayCreate_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuArray3DCreate_v2
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuArrayDestroy
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEGLStreamProducerConnect
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEGLStreamProducerDisconnect
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEGLStreamConsumerDisconnect
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEGLStreamProducerPresentFrame
[AVHWDeviceContext @ 0x563d03c292c0] Loaded sym: cuEGLStreamProducerReturnFrame
detected 48 logical cores
[hevc @ 0x563d0467a6c0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] Decoding VPS
[hevc @ 0x563d0467a6c0] Main profile bitstream
[hevc @ 0x563d0467a6c0] Decoding SPS
[hevc @ 0x563d0467a6c0] Main profile bitstream
[hevc @ 0x563d0467a6c0] Decoding VUI
[hevc @ 0x563d0467a6c0] Decoding PPS
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> hevc (hevc_nvenc))
Press [q] to stop, [?] for help
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 5 times
[hevc @ 0x563d0467a6c0] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0467a6c0] Decoding VPS
[hevc @ 0x563d0467a6c0] Main profile bitstream
[hevc @ 0x563d0467a6c0] Decoding SPS
[hevc @ 0x563d0467a6c0] Main profile bitstream
[hevc @ 0x563d0467a6c0] Decoding VUI
[hevc @ 0x563d0467a6c0] Decoding PPS
[hevc @ 0x563d0467a6c0] Decoding SEI
[hevc @ 0x563d0467a6c0] Skipped PREFIX SEI 0
[hevc @ 0x563d0467a6c0] Decoding SEI
    Last message repeated 1 times
[hevc @ 0x563d0467a6c0] Skipped PREFIX SEI 6
[hevc @ 0x563d0467a6c0] Format cuda chosen by get_format().
[hevc @ 0x563d0467a6c0] Format cuda requires hwaccel initialisation.
[AVHWFramesContext @ 0x7f6824030840] CUDA texture alignment: 512
[AVHWFramesContext @ 0x7f682412f540] CUDA texture alignment: 512
[hevc @ 0x563d0467a6c0] Loaded lib: libnvcuvid.so.1
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidGetDecoderCaps
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCreateDecoder
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidDestroyDecoder
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidDecodePicture
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidGetDecodeStatus
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidReconfigureDecoder
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidMapVideoFrame64
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidUnmapVideoFrame64
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCtxLockCreate
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCtxLockDestroy
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCtxLock
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCtxUnlock
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCreateVideoSource
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCreateVideoSourceW
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidDestroyVideoSource
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidSetVideoSourceState
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidGetVideoSourceState
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidGetSourceVideoFormat
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidGetSourceAudioFormat
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidCreateVideoParser
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidParseVideoData
[hevc @ 0x563d0467a6c0] Loaded sym: cuvidDestroyVideoParser
[hevc @ 0x563d0467a6c0] NVDEC capabilities:
[hevc @ 0x563d0467a6c0] format supported: yes, max_mb_count: 262144
[hevc @ 0x563d0467a6c0] min_width: 144, max_width: 8192
[hevc @ 0x563d0467a6c0] min_height: 144, max_height: 8192
[hevc @ 0x563d0467a6c0] Output frame with POC 0.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d047484c0] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d047484c0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d047484c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d047484c0] Decoding SEI
[hevc @ 0x563d047484c0] Output frame with POC 1.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d0480b040] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0480b040] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0480b040] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0480b040] Decoding SEI
[hevc @ 0x563d0480b040] Output frame with POC 2.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d048cdd40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d048cdd40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d048cdd40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d048cdd40] Decoding SEI
[hevc @ 0x563d048cdd40] Output frame with POC 3.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04990a40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04990a40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04990a40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04990a40] Decoding SEI
[hevc @ 0x563d04990a40] Output frame with POC 4.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04a53740] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04a53740] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04a53740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04a53740] Decoding SEI
[hevc @ 0x563d04a53740] Output frame with POC 5.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04b16440] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04b16440] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04b16440] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04b16440] Decoding SEI
[hevc @ 0x563d04b16440] Output frame with POC 6.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04bd9140] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04bd9140] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04bd9140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04bd9140] Decoding SEI
[hevc @ 0x563d04bd9140] Output frame with POC 7.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04c9be40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04c9be40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04c9be40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04c9be40] Decoding SEI
[hevc @ 0x563d04c9be40] Output frame with POC 8.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04d5eb40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04d5eb40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04d5eb40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04d5eb40] Decoding SEI
[hevc @ 0x563d04d5eb40] Output frame with POC 9.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04e21840] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04e21840] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04e21840] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04e21840] Decoding SEI
[hevc @ 0x563d04e21840] Output frame with POC 10.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04ee4540] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04ee4540] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04ee4540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04ee4540] Decoding SEI
[hevc @ 0x563d04ee4540] Output frame with POC 11.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d04fa7240] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04fa7240] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04fa7240] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04fa7240] Decoding SEI
[hevc @ 0x563d04fa7240] Output frame with POC 12.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d05069f40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d05069f40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d05069f40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d05069f40] Decoding SEI
[hevc @ 0x563d05069f40] Output frame with POC 13.
[vost#0:0/hevc_nvenc @ 0x563d03c26840] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[hevc @ 0x563d0512cc40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0512cc40] Decoding SEI
[hevc @ 0x563d0512cc40] Output frame with POC 14.
[hevc @ 0x563d051ef940] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d051ef940] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d051ef940] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d051ef940] Decoding SEI
[hevc @ 0x563d051ef940] Output frame with POC 15.
[graph 0 input from stream 0:0 @ 0x563d06304b80] Setting 'video_size' to value '1280x960'
[graph 0 input from stream 0:0 @ 0x563d06304b80] Setting 'pix_fmt' to value '23'
[graph 0 input from stream 0:0 @ 0x563d06304b80] Setting 'time_base' to value '1/15'
[graph 0 input from stream 0:0 @ 0x563d06304b80] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x563d06304b80] Setting 'frame_rate' to value '15/1'
[graph 0 input from stream 0:0 @ 0x563d06304b80] w:1280 h:960 pixfmt:nv12 tb:1/15 fr:15/1 sar:1/1
[format @ 0x563d06305300] Setting 'pix_fmts' to value 'yuv420p|nv12|p010le|yuv444p|p016le|yuv444p16le|bgr0|bgra|rgb0|rgba|x2rgb10le|x2bgr10le|gbrp|gbrp16le|cuda'
[AVFilterGraph @ 0x563d06140980] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[hevc_nvenc @ 0x563d03c27580] Using device cuda0 (type cuda) with hevc_nvenc encoder.
[hevc_nvenc @ 0x563d03c27580] Loaded lib: libcuda.so.1
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuInit
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDeviceGetCount
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDeviceGet
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDeviceGetAttribute
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDeviceGetName
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDeviceComputeCapability
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuCtxCreate_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuCtxSetLimit
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuCtxPushCurrent_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuCtxPopCurrent_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuCtxDestroy_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemAlloc_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemAllocPitch_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemAllocManaged
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemsetD8Async
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemFree_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpy
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyAsync
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpy2D_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpy2DAsync_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyHtoD_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyHtoDAsync_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyDtoH_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyDtoHAsync_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyDtoD_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMemcpyDtoDAsync_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGetErrorName
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGetErrorString
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuCtxGetDevice
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDevicePrimaryCtxRetain
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDevicePrimaryCtxRelease
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDevicePrimaryCtxSetFlags
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDevicePrimaryCtxGetState
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDevicePrimaryCtxReset
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuStreamCreate
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuStreamQuery
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuStreamSynchronize
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuStreamDestroy_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuStreamAddCallback
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEventCreate
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEventDestroy_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEventSynchronize
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEventQuery
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEventRecord
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuLaunchKernel
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuLinkCreate
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuLinkAddData
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuLinkComplete
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuLinkDestroy
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuModuleLoadData
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuModuleUnload
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuModuleGetFunction
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuModuleGetGlobal
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuTexObjectCreate
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuTexObjectDestroy
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGLGetDevices_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGraphicsGLRegisterImage
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGraphicsUnregisterResource
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGraphicsMapResources
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGraphicsUnmapResources
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGraphicsSubResourceGetMappedArray
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuGraphicsResourceGetMappedPointer_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDeviceGetUuid
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuImportExternalMemory
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDestroyExternalMemory
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuExternalMemoryGetMappedBuffer
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuExternalMemoryGetMappedMipmappedArray
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMipmappedArrayGetLevel
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuMipmappedArrayDestroy
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuImportExternalSemaphore
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuDestroyExternalSemaphore
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuSignalExternalSemaphoresAsync
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuWaitExternalSemaphoresAsync
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuArrayCreate_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuArray3DCreate_v2
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuArrayDestroy
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEGLStreamProducerConnect
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEGLStreamProducerDisconnect
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEGLStreamConsumerDisconnect
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEGLStreamProducerPresentFrame
[hevc_nvenc @ 0x563d03c27580] Loaded sym: cuEGLStreamProducerReturnFrame
[hevc_nvenc @ 0x563d03c27580] Loaded lib: libnvidia-encode.so.1
[hevc_nvenc @ 0x563d03c27580] Loaded sym: NvEncodeAPICreateInstance
[hevc_nvenc @ 0x563d03c27580] Loaded sym: NvEncodeAPIGetMaxSupportedVersion
[hevc_nvenc @ 0x563d03c27580] Loaded Nvenc version 12.0
[hevc_nvenc @ 0x563d03c27580] Nvenc initialized successfully
[tcp @ 0x563d065e6b80] No default whitelist set
[tcp @ 0x563d065e6b80] Original list of addresses:
[tcp @ 0x563d065e6b80] Address 192.168.64.5 port 8554
[tcp @ 0x563d065e6b80] Interleaved list of addresses:
[tcp @ 0x563d065e6b80] Address 192.168.64.5 port 8554
[tcp @ 0x563d065e6b80] Starting connection attempt to 192.168.64.5 port 8554
[tcp @ 0x563d065e6b80] Successfully connected to 192.168.64.5 port 8554
[rtsp @ 0x563d03c25dc0] SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=Media Presentation
c=IN IP4 192.168.64.5
t=0 0
a=tool:libavformat 60.4.100
m=video 0 RTP/AVP 96
b=AS:2000
a=rtpmap:96 H265/90000
a=fmtp:96 sprop-vps=QAEMAf//AUAAAAMAkAAAAwAAAwB4mcCQ; sprop-sps=QgEBAUAAAAMAkAAAAwAAAwB4oAKAgDwWWZ0pCEZG/UMBbgICAggAAAMACAAAAwB7AC7yiAAFuNgAAehICA==; sprop-pps=RAHApXwMyQ==
a=control:streamid=0

[rtp @ 0x563d065ec4c0] No default whitelist set
[udp @ 0x563d065e9940] No default whitelist set
[udp @ 0x563d065e9940] end receive buffer size reported is 425984
[udp @ 0x563d065e9640] No default whitelist set
[udp @ 0x563d065e9640] end receive buffer size reported is 425984
Output #0, rtsp, to 'rtsp://rtsp_srv9:8554/stream0':
  Metadata:
    title           : Media Presentation
    comment         : samsung
    encoder         : Lavf60.4.100
  Stream #0:0, 0, 1/90000: Video: hevc (Main), 1 reference frame, nv12(pc, bt709, progressive, left), 1280x960 (0x0) [SAR 1:1 DAR 4:3], 0/1, q=2-31, 2000 kb/s, 15 fps, 90k tbn
    Metadata:
      encoder         : Lavc60.4.100 hevc_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: N/A
[vost#0:0/hevc_nvenc @ 0x563d03c26840] Clipping frame in rate conversion by 0.000008
[hevc @ 0x563d0467a6c0] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0bits/s speed=N/A
[hevc @ 0x563d0467a6c0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0467a6c0] Decoding SEI
[hevc @ 0x563d0467a6c0] Output frame with POC 16.
[hevc @ 0x563d047484c0] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d047484c0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d047484c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d047484c0] Decoding SEI
[hevc @ 0x563d047484c0] Output frame with POC 17.
[hevc @ 0x563d0480b040] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0480b040] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0480b040] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0480b040] Decoding SEI
[hevc @ 0x563d0480b040] Output frame with POC 18.
[hevc @ 0x563d048cdd40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d048cdd40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d048cdd40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d048cdd40] Decoding SEI
[hevc @ 0x563d048cdd40] Output frame with POC 19.
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04990a40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04990a40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04990a40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04990a40] Decoding SEI
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04990a40] Output frame with POC 20.
[hevc @ 0x563d04a53740] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04a53740] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04a53740] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04a53740] Decoding SEI
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04a53740] Output frame with POC 21.
[hevc @ 0x563d04b16440] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04b16440] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04b16440] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04b16440] Decoding SEI
[hevc @ 0x563d04b16440] Output frame with POC 22.
[hevc @ 0x563d04bd9140] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04bd9140] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04bd9140] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04bd9140] Decoding SEI
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04bd9140] Output frame with POC 23.
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04c9be40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04c9be40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04c9be40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04c9be40] Decoding SEI
[hevc @ 0x563d04c9be40] Output frame with POC 24.
[hevc @ 0x563d04d5eb40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04d5eb40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04d5eb40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 0x563d04d5eb40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04d5eb40] Decoding SEI
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04d5eb40] Output frame with POC 25.
[hevc @ 0x563d04e21840] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04e21840] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04e21840] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04e21840] Decoding SEI
[hevc @ 0x563d04e21840] Output frame with POC 26.
[hevc @ 0x563d04ee4540] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04ee4540] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04ee4540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04ee4540] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 1 times
[hevc @ 0x563d04ee4540] Decoding SEI
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d04ee4540] Output frame with POC 27.
[hevc @ 0x563d04fa7240] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04fa7240] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d04fa7240] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d04fa7240] Decoding SEI
[hevc @ 0x563d04fa7240] Output frame with POC 28.
[hevc @ 0x563d05069f40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d05069f40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d05069f40] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d05069f40] Decoding SEI
[hevc @ 0x563d05069f40] Output frame with POC 29.
[rtp @ 0x563d065e9a40] Sending NAL e of len 8 M=0
[rtp @ 0x563d065e9a40] Sending NAL 6 of len 256180 M=1
[rtp @ 0x563d065e9a40] NAL size 256180 > 1460
[rtsp @ 0x563d03bcb1c0] max delay reached. need to consume packet
[rtsp @ 0x563d03bcb1c0] RTP: missed 399 packets
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] Decoding VPS
[NULL @ 0x563d03bcfe80] Main profile bitstream
[NULL @ 0x563d03bcfe80] Decoding SPS
[NULL @ 0x563d03bcfe80] Main profile bitstream
[NULL @ 0x563d03bcfe80] Decoding VUI
[NULL @ 0x563d03bcfe80] Decoding PPS
[NULL @ 0x563d03bcfe80] Decoding SEI
[NULL @ 0x563d03bcfe80] Skipped PREFIX SEI 0
[NULL @ 0x563d03bcfe80] Decoding SEI
    Last message repeated 1 times
[NULL @ 0x563d03bcfe80] Skipped PREFIX SEI 6
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d0512cc40] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0512cc40] Decoding VPS
[hevc @ 0x563d0512cc40] Main profile bitstream
[hevc @ 0x563d0512cc40] Decoding SPS
[hevc @ 0x563d0512cc40] Main profile bitstream
[hevc @ 0x563d0512cc40] Decoding VUI
[hevc @ 0x563d0512cc40] Decoding PPS
[hevc @ 0x563d0512cc40] Decoding SEI
[hevc @ 0x563d0512cc40] Skipped PREFIX SEI 0
[hevc @ 0x563d0512cc40] Decoding SEI
    Last message repeated 1 times
[hevc @ 0x563d0512cc40] Skipped PREFIX SEI 6
[rtp @ 0x563d065e9a40] Sending NAL e of len 8 M=0
[rtp @ 0x563d065e9a40] Sending NAL 2 of len 27227 M=1
[rtp @ 0x563d065e9a40] NAL size 27227 > 1460
[hevc @ 0x563d0512cc40] Output frame with POC 0.
[hevc @ 0x563d051ef940] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d051ef940] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d051ef940] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d051ef940] Decoding SEI
[rtp @ 0x563d065e9a40] Sending NAL e of len 8 M=0
[rtp @ 0x563d065e9a40] Sending NAL 2 of len 862 M=1
[hevc @ 0x563d051ef940] Could not find ref with POC 25
[hevc @ 0x563d051ef940] Output frame with POC 26.
[hevc @ 0x563d0467a6c0] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0467a6c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0467a6c0] Decoding SEI
[hevc @ 0x563d0467a6c0] Output frame with POC 27.
[rtp @ 0x563d065e9a40] Sending NAL e of len 8 M=0
[rtp @ 0x563d065e9a40] Sending NAL 0 of len 805 M=1
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d047484c0] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d047484c0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d047484c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d047484c0] Decoding SEI
[hevc @ 0x563d047484c0] Output frame with POC 28.
av_interleaved_write_frame(): Broken pipe
[out#0/rtsp @ 0x563d03bd0240] Error muxing a packet
[out#0/rtsp @ 0x563d03bd0240] Terminating muxer thread
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding SEI
[hevc @ 0x563d0480b040] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0480b040] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x563d0480b040] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[hevc @ 0x563d0480b040] Decoding SEI
[hevc @ 0x563d0480b040] Output frame with POC 29.
No more output streams to write to, finishing.
[AVIOContext @ 0x563d065e9740] Statistics: 288115 bytes written, 0 seeks, 200 writeouts
frame=    5 fps=0.0 q=26.0 Lsize=N/A time=00:00:01.06 bitrate=N/A speed=2.79x
video:279kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (rtsp://[S-IP]:8554/H.265/media.smp):
  Input stream #0:0 (video): 35 packets read (583844 bytes); 21 frames decoded;
  Input stream #0:1 (data): 4 packets read (4886 bytes);
  Total: 39 packets (588730 bytes) demuxed
Output file #0 (rtsp://rtsp_srv9:8554/stream0):
  Output stream #0:0 (video): 20 frames encoded; 5 packets muxed (286050 bytes);
  Total: 5 packets (286050 bytes) muxed
21 frames successfully decoded, 0 decoding errors
[hevc_nvenc @ 0x563d03c27580] Nvenc unloaded
[NULL @ 0x563d03bcfe80] nal_unit_type: 35(AUD), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x563d03bcfe80] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
    Last message repeated 2 times
[NULL @ 0x563d03bcfe80] Decoding VPS
[NULL @ 0x563d03bcfe80] Main profile bitstream
[NULL @ 0x563d03bcfe80] Decoding SPS
[NULL @ 0x563d03bcfe80] Main profile bitstream
[NULL @ 0x563d03bcfe80] Decoding VUI
[NULL @ 0x563d03bcfe80] Decoding PPS
[NULL @ 0x563d03bcfe80] Decoding SEI
[NULL @ 0x563d03bcfe80] Skipped PREFIX SEI 0
[NULL @ 0x563d03bcfe80] Decoding SEI
    Last message repeated 1 times
[NULL @ 0x563d03bcfe80] Skipped PREFIX SEI 6
[in#0/rtsp @ 0x563d03bcb040] Terminating demuxer thread
Conversion failed!

Did you attach a network dump?

no

BonhyeonGu avatar Sep 20 '23 05:09 BonhyeonGu

H.265 RTSP wasn't working at all in v1.1.0, fixed here https://github.com/bluenviron/mediamtx/issues/2378, but there's no tagged release yet. I'm unsure if this is the same issue.

dbussert avatar Sep 21 '23 14:09 dbussert

Although server logs were not provided, if the server error is

panic: runtime error: index out of range [0] with length 0

goroutine 14 [running]:
github.com/bluenviron/mediamtx/internal/formatprocessor.rtpH265ExtractVPSSPSPPS({0xc0001f0c0c?, 0xc00032bad8?, 0x40daaa?})
        /s/internal/formatprocessor/h265.go:58 +0x25e
github.com/bluenviron/mediamtx/internal/formatprocessor.(*formatProcessorH265).updateTrackParametersFromRTPPacket(0xc0003a22a0, {0xc0001f0c0c?, 0x4839b6?, 0xc00032bb40?})
        /s/internal/formatprocessor/h265.go:122 +0x45
github.com/bluenviron/mediamtx/internal/formatprocessor.(*formatProcessorH265).ProcessRTPPacket(0xc0003a22a0, 0xc000191200, {0xc00032bcb8?, 0x40efe2?, 0x16ae640?}, 0x3f940aa, 0x0)
        /s/internal/formatprocessor/h265.go:271 +0x150
github.com/bluenviron/mediamtx/internal/stream.(*streamFormat).writeRTPPacket(0xc000446f60, 0xc000446ed0?, 0xc00001e6c0?, 0x40efe2?, {0x4a9e7f?, 0xc00032bd18?, 0x16ae640?}, 0xa35f80?)
        /s/internal/stream/stream_format.go:78 +0x69
github.com/bluenviron/mediamtx/internal/stream.(*Stream).WriteRTPPacket(0xc000490f00, 0xc00001e6c0, {0x1049f10, 0xc000254000}, 0xc0002760e8?, {0x16ae640?, 0x0?, 0x16ae640?}, 0xa36d40?)
        /s/internal/stream/stream.go:147 +0x13b
github.com/bluenviron/mediamtx/internal/core.(*rtspSession).onRecord.func1(0xc0002760c0?)
        /s/internal/core/rtsp_session.go:370 +0x91
github.com/bluenviron/gortsplib/v4.(*serverSessionFormat).readRTPUDP(0xc0001297c0, 0xc0003997a0?, {0x2f2?, 0x5c1?, 0x16ae640?})
        /go/pkg/mod/github.com/bluenviron/gortsplib/[email protected]/server_session_format.go:79 +0x12b
github.com/bluenviron/gortsplib/v4.(*serverSessionMedia).readRTPUDPRecord(0xc00046a880, {0xc0001f0c00, 0xc000432120?, 0x5c1})
        /go/pkg/mod/github.com/bluenviron/gortsplib/[email protected]/server_session_media.go:217 +0x13d
github.com/bluenviron/gortsplib/v4.(*serverUDPListener).run.func1(0xc0004a7800, 0xc0001f0c00?, {0xc0001f0c00, 0x5c1?, 0x5c1}, 0x2f2)
        /go/pkg/mod/github.com/bluenviron/gortsplib/[email protected]/server_udp_listener.go:152 +0x182
github.com/bluenviron/gortsplib/v4.(*serverUDPListener).run(0xc0004a7800)
        /go/pkg/mod/github.com/bluenviron/gortsplib/[email protected]/server_udp_listener.go:153 +0x77
created by github.com/bluenviron/gortsplib/v4.newServerUDPListener
        /go/pkg/mod/github.com/bluenviron/gortsplib/[email protected]/server_udp_listener.go:112 +0x2f6

then this is fixed with #2378 / #2381.

Here's a nightly release that you can use to test that the server works:

[link removed]

Please let me know if the release fixes this issue.

aler9 avatar Sep 24 '23 15:09 aler9

closed since no additional informations were provided.

aler9 avatar Apr 17 '24 22:04 aler9