[FFmpeg-trac] #8780(avcodec:new): nvdec gives "No decoder surface left" error.
FFmpeg
trac at avcodec.org
Wed Jul 8 05:18:03 EEST 2020
#8780: nvdec gives "No decoder surface left" error.
---------------------------------+---------------------------------------
Reporter: haviet | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+---------------------------------------
Summary of the bug:
My application (not ffmpeg.exe) uses nvdec to decode video streams
receiving from IP cameras. Sometimes the error "No decoder surface left"
occurs in unpredictable manner. I noticed the error via log files. I read
the ticket #7562 but that ticket is different from my case that my app
does not use any filter.
How to reproduce:
I could not reproduce the error in ffmpeg but I can reproduce the error by
debugging my app in VS IDE. When the app runs normally I do like below:
- Set a break point inside function "int
ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)".
- Wait for some seconds.
- Clear the break point and make the app continue running (F5).
- Repeat above steps in several times then I should get the error.
When the error occurs, flushing decoder does not help, but resetting
decoder could mitigate the symptom.
Snapshot of the break point
https://ibb.co/vxvzW5S
{{{
ffmpeg source 4.3., 4.2., ...
built on Windows 10 with nvdec enabled
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8780>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list