Jun Zhao
e512d893bf
examples/encode_video: only add sequence end code for mpeg1/2 video
...
Only add sequence end code for mpeg1/mpeg2 video, or else use the encoder
libx264 or libx265 in this sample, decoding the output file will get
unknow NALU type error.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
Mark Thompson
10bcc41bb4
examples: Don't call deprecated functions which don't do anything
7 years ago
Stefano Sabatini
ddae679458
examples/encode_video: slightly improve error reporting
8 years ago
Stefano Sabatini
002dbc5a1f
examples/encode_video: add log
...
This helps to visualize how the send/receive API works.
8 years ago
Anton Khirnov
59ab9e8ba1
examples/encode_video: allocate the packet dynamically
...
AVPackets on stack are discouraged.
8 years ago
Anton Khirnov
5f102a9559
examples/encode_video: switch to the new encoding API
8 years ago
Anton Khirnov
5b4d7ac7ae
examples/encode_video: use the AVFrame API for allocating the frame
...
It is more efficient and so preferred over allocating the buffers
manually.
8 years ago
Anton Khirnov
d0a603a534
examples/encode_video: set the framerate
8 years ago
Anton Khirnov
e02524025b
examples/encode_video: constify the AVCodec instance
8 years ago
Anton Khirnov
7b1f03477f
examples/avcodec: split the remaining two examples into separate files
8 years ago