Opened 5 months ago
#11177 new defect
Video encoding issue with h264_nvenc
Reported by: | Dhanish | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | 4.4.4 | Keywords: | h264_nvenc |
Cc: | Dhanish | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
How to reproduce:
/usr/bin/ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -hwaccel_device 0 -deint adaptive -drop_second_field 1 -gpu 0 -resize 1280x720 -vcodec h264_cuvid -i "udp://239.1.1.0:11001?pkt_size=1316&localaddr=192.168.3.7&overrun_nonfatal=1&fifo_size=100000&timeout=5000000" -filter:a volume=4.0 -filter_complex "[0:v:0]split=2[s0][s1]" -map [s0] -map 0:a:0 -map [s1] -map 0:a:0 -c:v:0 h264_nvenc -b:v:0 2200k -gpu:v:0 0 -no-scenecut:v:0 1 -forced-idr:v:0 1 -strict_gop:v:0 1 -c:v:1 h264_nvenc -b:v:1 800k -gpu:v:1 0 -a53cc:v:1 1 -no-scenecut:v:0 1 -forced-idr:v:0 1 -strict_gop:v:0 1 -c:a aac -b:a 128k -ac 2 -af "aresample=async=1, volume=2" -avoid_negative_ts disabled -muxdelay 0 -f hls -hls_list_size 4 -hls_flags delete_segments -hls_delete_threshold 1 -hls_time 4 -hls_segment_filename "abr/amc/stream_%v/fileSequence%d.ts" -forced-idr 1 -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -master_pl_name playlist.m3u8 -var_stream_map "v:0,a:0,name:720 v:1,a:1,name:360" abr/amc/stream_%v/prog_index.m3u8 ffmpeg -version ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100
I am using the above command in a Ubuntu 22.04 Desktop install
Nvidia driver gets preinstalled with these
NVIDIA-SMI 550.107.02 Driver Version: 550.107.02 CUDA Version: 12.4
But I am getting a strange video output, its look the video blurr. I am attaching a video link as well -
Video link - https://drive.google.com/file/d/1cZlRPYH6tsESE3EY67IfTNaMFf6E180T/view?usp=sharing
I have also tried compiling ffmpeg from the master branch, and compiled it with cuda-12.4 as well as cuda-11.8. Those also have the same issue with Video
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Video Output for the command specified