Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7031 closed defect (invalid)

encode_video example does not work

Reported by: Jodon Karlik Owned by:
Priority: normal Component: documentation
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

I just compiled the encode_video.c example against Shift Media Project's ffmpeg for Windows ( The result is that it can never find an encoder (avcodec_find_encoder_by_name always fails). This is easily fixed by adding avcodec_register_all before the call.

How to reproduce:

% ffmpeg -i encode_video.c ... encode_video
% encode_video Test.mp4 libx264
Codec 'libx264' not found

ffmpeg version: libffmpeg_3.4.1.r89955_msvc15
built a couple of weeks ago (but verified against trunk's encode_video.c).

Change History (2)

comment:1 by jkqxz, 6 years ago

Resolution: invalid
Status: newclosed

Examples from git master are not intended to work on past releases. You are using a 3.4 release version, so you should use the 3.4 examples with it.

comment:2 by Carl Eugen Hoyos, 6 years ago

Keywords: example removed
Note: See TracTickets for help on using tickets.