#8950 closed defect (duplicate)

cuvid and nvdec pts different when encode

Reported by: sheldon.liu Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: drop cuvid
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (2)

comment:1 by sheldon.liu, 12 months ago

Resolution: fixed
Status: newclosed

comment:2 by sheldon.liu, 12 months ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.