<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p><br>
</p>
<p>I expect you should be able to create a MJPEG from JPEG buffers
in memory if you write an application with an appsrc in order to
feed your buffers in.</p>
<p><br>
</p>
<p>Simply for MJPEGs you should be able to do something like this:</p>
<p><code>videtestsrc ! <SRC_CAPS> ! queue ! videoconvert !
jpegenc ! avimux ! filesink location=<LOCATION></code></p>
<p><br>
</p>
<p>Once you have that working you can change into feeding your own
frames in with an appsrc:</p>
<p><code>appsrc ! <SRC_CAPS> ! queue ! avimux ! filesink
location=<LOCATION></code></p>
<p><br>
</p>
<p>Look into the appsrc tutorials for how to feed data into it.<br>
</p>
<p><br>
</p>
<p>I don't really know much about MP4 so I cannot help there.</p>
<p>But I don't expect you can get around decoding the JPEG and
encoding to H264.<br>
</p>
<p><br>
</p>
<p>Best Regards</p>
<p>Marianna<br>
</p>
<div class="moz-cite-prefix">On 28/08/2023 10.40,
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel-request@lists.freedesktop.org">gstreamer-devel-request@lists.freedesktop.org</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:mailman.21936.1693212020.925.gstreamer-devel@lists.freedesktop.org">
<pre class="moz-quote-pre" wrap="">Hi.
?
I have jpeg files in memory (byte[] in terms of C#), how to transform them into mjpeg file?
Can you help me with pipeline for that? Can it be done in memory, without dumping jpeg files? to disk?
?
Same problem, but now I need mp4 file.?At least I can see way to transcode mjpeg into mp4, but maybe it
?could be done in a more straight way ??from jpegs to mp4?
?
Thanks in advance.</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”</pre>
</body>
</html>