[FFmpeg-trac] #8993(documentation:new): vaapi_encode.c example makes the invalid stream

FFmpeg trac at avcodec.org
Sun Feb 7 08:17:05 EET 2021

#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 wenbinCHEN):

 Hi Wohlstand:

 The vaapi_encode.c encode raw video so it doesn't know the origin video's
 parameter. Developer should set them manually.
 For fps 27 -> fps 25 question, you can edit vaapi_encode.c here:

 For pts problem: you should set pts on the base of timebase. pts can be
 set even or uneven, and lack of pts should be treated as being played even
 according to fps.

 By the way, vaapi_encode.c is an example to show how to use vaapi, so it
 is hard for it to be compatible with different situation.

 Any question is welcome

Ticket URL: <https://trac.ffmpeg.org/ticket/8993#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list