[FFmpeg-trac] #8950(avcodec:new): cuvid and nvdec pts different when encode

FFmpeg trac at avcodec.org
Tue Oct 27 14:42:30 EET 2020


#8950: cuvid and nvdec pts different when encode
-------------------------------------+-------------------------------------
             Reporter:  sheldon.liu  |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  avcodec      |                  Version:  git-
                                     |  master
             Keywords:  drop cuvid   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 How to reproduce:
 {{{

 ffmpeg -y -report -hide_banner -v 9 -loglevel 99 -threads 1 -copyts
 -hwaccel_device 0 -hwaccel nvdec -vsync 0 -i slice/ts/000000.ts -vf
 fade,hwupload_cuda,scale_npp=640:360 -c:v h264_nvenc -max_delay 10
 -profile:v main -g 48 -keyint_min 48 -sc_threshold 0 -cq 21 -b:v 800k -b:a
 128k 360_good/ts/000000.ts
 ffmpeg -y -report -hide_banner -v 9 -loglevel 99 -threads 1 -copyts
 -hwaccel_device 0 -hwaccel nvdec -vsync 0 -i slice/ts/000001.ts -vf
 fade,hwupload_cuda,scale_npp=640:360 -c:v h264_nvenc -max_delay 10
 -profile:v main -g 48 -keyint_min 48 -sc_threshold 0 -cq 21 -b:v 800k -b:a
 128k 360_good/ts/000001.ts

 ffmpeg -y -report -hide_banner -v 9 -loglevel 99 -threads 1 -copyts
 -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -resize 640x360 -vsync 0
 -i slice/ts/000000.ts -c:v h264_nvenc -max_delay 10 -profile:v main -g 48
 -keyint_min 48 -sc_threshold 0 -cq 21 -b:v 800k -b:a 128k
 360_bad/ts/000000.ts
 ffmpeg -y -report -hide_banner -v 9 -loglevel 99 -threads 1 -copyts
 -hwaccel_device 0 -hwaccel cuvid -c:v h264_cuvid -resize 640x360 -vsync 0
 -i slice/ts/000001.ts -c:v h264_nvenc -max_delay 10 -profile:v main -g 48
 -keyint_min 48 -sc_threshold 0 -cq 21 -b:v 800k -b:a 128k
 360_bad/ts/000001.ts


 ffprobe  -show_frames -select_streams v -i slice/ts/000000.ts  | grep
 pkt_dts > slice_0.txt
 ffprobe  -show_frames -select_streams v -i slice/ts/000001.ts  | grep
 pkt_dts > slice_1.txt

 ffprobe  -show_frames -select_streams v -i 360_good/ts/000000.ts  | grep
 pkt_dts > good_0.txt
 ffprobe  -show_frames -select_streams v -i 360_good/ts/000001.ts  | grep
 pkt_dts > good_1.txt

 ffprobe  -show_frames -select_streams v -i 360_bad/ts/000000.ts  | grep
 pkt_dts > bad_0.txt
 ffprobe  -show_frames -select_streams v -i 360_bad/ts/000001.ts  | grep
 pkt_dts > bad_1.txt


 This will cause drop frames,when play 360_bad/index.m3u8


 ffmpeg version d359b750af
 built on ...
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8950>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list