Opened 4 months ago

Closed 3 months ago

#10794 closed defect (fixed)

bwdif_cuda crashed with mpeg2 interlaced 720x480x29.97 (ntsc) stream

Reported by: ua0lnj Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: bwdif_cuda nvdec
Cc: ua0lnj Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by ua0lnj)

Summary of the bug:
mpv segfault with bwdif_cuda and mpeg2 interlaced 720x480x29.97 (ntsc) stream
vdr-plugin-softhddevice crashed too.

How to reproduce:
mpv -vo=gpu -hwdec=nvdec --hwdec-codecs=all -vf=bwdif_cuda=1:-1:1 00001.ts

root@ua0lnjvdr:/# DISPLAY=:0 mpv -vo=gpu -hwdec=nvdec --hwdec-codecs=all -vf=bwdif_cuda=1:-1:1 00001.ts
[ffmpeg/demuxer] mpegts: start time for stream 3 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 4 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 5 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 6 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 7 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 8 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: start time for stream 9 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: Packet corrupt (stream = 1, dts = 3279839310).
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: Packet corrupt (stream = 2, dts = 3279842314).

(+) Video --vid=1 (mpeg2video 720x480 29.970fps)
(+) Audio --aid=1 --alang=eng (mp2 2ch 48000Hz)

Audio --aid=2 --alang=eng (mp2 2ch 48000Hz)
Subs --sid=1 --slang=chi (dvb_subtitle)
Subs --sid=2 --slang=esl (dvb_subtitle)
Subs --sid=3 --slang=ara (dvb_subtitle)
Subs --sid=4 --slang=rus (dvb_subtitle)
Subs --sid=5 --slang=vie (dvb_subtitle)
Subs --sid=6 --slang=ind (dvb_subtitle)
Subs --sid=7 --slang=chi (dvb_subtitle)

Using hardware decoding (nvdec).
[ffmpeg] mpv_src_default_in: Changing video frame properties on the fly is not supported by all filters.
Segmentation fault (core dumped)

No problem with yadif_cuda, no problem with bwdif_cuda and mpeg2 interlaced 720x576x25 streams.

Sample:
https://streams.videolan.org/ffmpeg/incoming/00001.ts

Change History (5)

comment:1 by ua0lnj, 4 months ago

Description: modified (diff)

comment:2 by Balling, 4 months ago

You forgot to add --gpu-api=vulkan

comment:3 by ua0lnj, 4 months ago

It does not matter. I not used vulkan, Xorg ang glx.
With PAL works, with NTSC not works.

comment:4 by ua0lnj, 3 months ago

After today's commits, 05.01.2024, everything works fine.
No crash.
Most likely it:
https://github.com/FFmpeg/FFmpeg/commit/268062fa15e1c05310f9c3977e0b95ac07eca274

comment:5 by ua0lnj, 3 months ago

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