<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 24 avr. 2021 00 h 30, James Linder via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><font face="Menlo-Regular">Like a real swamp I can see for kilometers, but round my feet is sticky.</font><div><font face="Menlo-Regular"><br></font></div><div><font face="Menlo-Regular">I’m testing this pipeline (it works beautifully)</font></div><div><font face="Menlo-Regular"><br></font></div><div><font face="Menlo-Regular"><div>gst-launch-1.0 -t v4l2src name=source device=/dev/video2 ! \</div><div>            video/x-h264,width=1920,height=1080,framerate=30/1 ! \</div><div>            h264parse ! queue ! avdec_h264 ! \</div><div>            autovideosink</div><div><br></div><div>I’ve done lots of reading, can see how to encode h264 from raw at a nominated bit rate.</div><div>My camera gives h264. (USB2 speed limit for 1080P)</div><div><br></div><div>I want to save the output.</div><div>Is the bit rate set by the camera, I do not need to concern myself?</div></font></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If you are satisfied with the resulting stream size and visual quality no. Note that usb/Uvc h264 support is not well standardized. But we have an element uvch264src (hopefully I got the same right) that works with few models following Logitech way. This element will give you extra control, long with a raw / viewport feed.</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"><div style="word-wrap:break-word;line-break:after-white-space"><div><font face="Menlo-Regular"><div>Should/could I set bit rate in my pipeline. I presume that before h264parse I’d pipe to</div><div><br></div><div>mp4mux ! filesink location=myfile.mp4</div></font></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">In theory, this should work, don't forget to send Eos at the end, otherwise the resulting MP4 will be corrupted.</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"><div style="word-wrap:break-word;line-break:after-white-space"><div><font face="Menlo-Regular"><div><br></div><div>Thanks</div><div>James</div></font></div></div>_______________________________________________<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><br>
</blockquote></div></div></div>