[FFmpeg-trac] #4865(undetermined:new): Using .mp4-files/libh264 with API Examples

FFmpeg trac at avcodec.org
Mon Mar 7 23:40:00 CET 2016

#4865: Using .mp4-files/libh264 with API Examples
             Reporter:  jepsen       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  libx264      |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0

Comment (by dajuric):

 I had to add the following:

 encoder = avcodec_find_encoder(dec_ctx->codec_id);
 out_stream->codec = avcodec_alloc_context3(encoder); //this line
 enc_ctx = out_stream->codec;

 h264 preset options are optional

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

More information about the FFmpeg-trac mailing list