[FFmpeg-trac] #8993(documentation:new): vaapi_encode.c example makes the invalid stream
FFmpeg
trac at avcodec.org
Sat Nov 21 01:30:04 EET 2020
#8993: vaapi_encode.c example makes the invalid stream
-------------------------------------+-------------------------------------
Reporter: Wohlstand | Owner:
Type: defect | Status: new
Priority: minor | Component:
| documentation
Version: git-master | Resolution:
Keywords: vaapi | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Wohlstand):
Okay, I did the investigation (I spent a week), and I found the true
reason: to fix the problem, it's need to always add the pts counter and
iterate it by self:
```
static int64_t pts_counter = 0;
...
frame->pts = pts_counter++;
...
```
So, it's need to fix the example until close this issue.
Another my mistake that I had to unite two packets, sometimes given by the
encoder from the one frame, and sent it into RTSP server (that worked at
the separated application and had to receive video through the FIFO pipe).
I must to send every packet independently.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8993#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list