Opened 3 years ago

#8951 new defect

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.

Attachments (2)

sheldon.liu.tar.gz (2.0 MB ) - added by sheldon.liu 3 years ago.
trans.sh
log.tar.gz (31.0 KB ) - added by sheldon.liu 3 years ago.

Change History (2)

by sheldon.liu, 3 years ago

Attachment: sheldon.liu.tar.gz added

trans.sh

by sheldon.liu, 3 years ago

Attachment: log.tar.gz added
Note: See TracTickets for help on using tickets.