<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 6 mars 2019 à 14:19, Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2019-03-06 11:56 GMT+01:00, NDJORE BORIS <<a href="mailto:ndjoreboris@gmail.com" target="_blank">ndjoreboris@gmail.com</a>>:<br>
<br>
> I want to extract all motion vectors in P_type mocroblock  in a<br>
> P_frame during encoding h264 video with libx264 (x264).<br>
<br>
Since x264 != FFmpeg, this cannot be answered here.<br>
(I don't know if x264 offers an api to export the info but<br>
if the api exists, it is not supported by FFmpeg).<br>
-------------------------------------------------------------------------------------------------<br>Ok. It means that it is not possible to have such info with x264 (x264Context)?</blockquote><div>  I understand and I want to know if the only encoder we can use to transcode h264 </div><div>video format is x264? Try to enlight me, please.</div><div>I ask this question because when I try to transcode h264 video fromat with it encoder </div><div>[ avcodec_find_encoder(dec_ctx->codec_id)  ], I have the error:</div><div>"[h264_vaapi @ 0x1b011c0] A hardware frames reference is required to associate the encoding device.</div><div>Cannot open video encoder for stream #0 "</div><div><br></div><div>When I use MPEG4 (AV_CODEC_ID_MPEG4), The transcoding is ok but there are some error in P_frame:</div><div><br></div><div><div>mpeg4 @ 0x191ec00] P cbpy damaged at 28 0</div><div>[mpeg4 @ 0x191ec00] Error at MB: 28</div><div>[mpeg4 @ 0x191ec00] concealing 920 DC, 920 AC, 920 MV errors in P frame</div></div><div><br></div><div>Regards</div><div><br></div><div><br></div></div></div></div></div></div></div>