Deepstream 6.2 Encoder Abnomral behaviour

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
RTX 3090
• DeepStream Version
deepstream:6.1.1-triton
deepstream:6.2-triton
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
515.65.01
525.85.12
• Issue Type( questions, new requirements, bugs)
bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
see following article
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
see the following article

Hi All,
I am using DS 6.1.1 (image: deepstream:6.1.1-triton) with Driver version 515.65.01. The stream is processed and streamed to an RTSP server, and then reformat to HLS using ffmpeg. I have no problem using DS 6.1.1 with Driver version 515.65.01. While I upgrade to deepstream:6.2-triton with driver 525.85.12, serval strange behavior happens to the encoder.

Setup:

Start rtsp server:

docker run --rm -it --network=host bluenviron/mediamtx:latest

Start ds pipeline.

gst-launch-1.0 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4 ! nvvideoconvert ! nvv4l2h264enc ! rtspclientsink location=rtsp://localhost:8554/test

ffmpeg change format

ffmpeg -analyzeduration 10000 -probesize 10000 -rtsp_transport tcp -i rtsp://localhost:8554/test -strict -2 -an -c:v copy -f hls -hls_time 2 -hls_list_size 3 -start_number 1 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist+discont_start test.m3u8

The above example have no problem with DS 6.1.1, but strange behavior using DS 6.2,

  • the output rtsp stream has an obvious compression artifact.
    example:
    image
  • ffmpeg fail to change the rtsp stream into hls format. The error is related to dts and pts.

The strange behavior did not happen in DS 6.1.1.

I change the encoder from nvv4l2h264enc to x264enc in DS 6.2 and everything works fine again. I suspect the issue is related to the driver and encoder. Please kindly adivce. Many Thanks!

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

The attached picture is not from /opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4

I’ve tried with RTX3090, the rtsp://localhost:8554/test stream can be played by vlcplayer. No block in the video.

I don’t met such problem.

ffmpeg -analyzeduration 10000 -probesize 10000 -rtsp_transport tcp -i rtsp://localhost:8554/test -strict -2 -an -c:v copy -local-fechlocal-fechen@x11-0081:~$ ffmpeg -analyzeduration 10000 -probesize 10000 -rtsp_transport tcp -i rtsp://localhost:8554/test -strict -2 -an -c:v copy -f hls -hls_time 2 -hls_list_size 3 -start_number 1 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist+discont_start test.m3u8
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[rtsp @ 0x555954c6f940] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 0x555954c6f940] decoding for stream 0 failed
Input #0, rtsp, from 'rtsp://localhost:8554/test':
  Metadata:
    title           : Stream
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
[hls @ 0x555954cabe40] Opening 'test1.ts' for writing
Output #0, hls, to 'test.m3u8':
  Metadata:
    title           : Stream
    encoder         : Lavf58.29.100
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 tbr, 90k tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x   frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitframe=    0 fpsframe=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00frame=    0 f[hls @ 0x555954cabe40] Opening 'test.m3u8.tmp' for writingte=N/A speed=   0x     
frame=    0 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.