<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've been using 3.4.2 ffmpeg for a while, successfully encoding video to mpeg4. I've just upgraded to 3.4.5 and, despite building ffmpeg (Windows, msvc2017 toolchain, MinGW) with exactly the same configure options, mpeg4 and 18 other encoders seem to have disappeared.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For reference, my configure options are:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>--toolchain=msvc --target-os=win64 --arch=x86_64 --prefix=../ffmpegbuilds --enable-shared --enable-libx264 --cpu=i686 --extra-cflags=-I../x264builds/include --extra-ldflags='-LIBPATH:../x264builds/lib' --disable-error-resilience<br>
</span><span></span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">I've found that if I leave out --enable-libx264, they come back. </span><span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">The
 problem is, I need libx264 to encode h.264 (we commercially license it)</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
[As a side note, yes, I have edited configure to move libx264 out of the EXTERNAL_LIBRARY_GPL_LIST into the EXTERNAL_LIBRARY_LIST]</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<br>
</div>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The full list of 'disappearing' codecs is:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
amv, dnxhd, flv, <span>h261, </span>h263, <span>h263p, </span>ljpeg, mjpeg, mpeg1video, mpeg2video, mpeg4, msmpeg4v2, msmpeg4, rv10, rv20, snow, svq1, wmv1, wmv2</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">I am guessing there is most likely a good reason for this change in behavior, but I'm stumped. My call to avcodec_find_encoder(</span><span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">AV_CODEC_ID_MPEG4);
 is now failing and I don't see an "alternative" codec ID I should be using if libx264 is included in my build.</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Surely enabling libx264 should only add to the encoder list, it shouldn't disable other encoders?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm still stumbling about exploring options here (tried 3.4.7, it's the same), but if there is a change anybody is aware of, any advice would be appreciated.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
- Jeremy</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>