<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 2 avr. 2019 04 h 10, Igors <<a href="mailto:igors@eias3d.com">igors@eias3d.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello again<br>
<br>
My venture with h264 is continuing. I've found another h264 encoder:<br>
vtenc_x264, it works fine with odd size(s) and produced files are readable<br>
with popular players. But I've got another prob: it can't save a single<br>
frame or few frames, for example<br>
<br>
gst-launch-1.0 videotestsrc num-buffers=10 ! videoconvert !<br>
video/x-raw,format=I420 ! vtenc_h264 ! qtmux ! filesink<br>
location=test_264.mov <br>
<br>
It works fine but if num-buffers=3 (or 1) then output movie is junk 616<br>
bytes<br>
<br>
I want a simple thing - just save video in a popular h264, why all is so<br>
complex? What am I doing wrong?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This seems like a bug in vtenc draining flow. Because of reordering, h2264 encoder queue up to 16 buffers before letting one go, this requires special casing at EOS and is often a source a bugs. The right thing to do is to file a bug.</div><div dir="auto"><br></div><div dir="auto">About x264, it historically didn't fully support padding and cropping. H264 encoding happens in minimum macroblock of 16x16 (that part seems handled) on top of which there is special casing for subsampled format. I would also recommend to file a bug, I'm quite certain if some dev find the time we could lift this limitation. You could also give a try yourself if you feel like it.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thx<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>