<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/index.php?action=history&amp;feed=atom&amp;title=Documentation%3AModules%2Fsmem</id>
	<title>Documentation:Modules/smem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/index.php?action=history&amp;feed=atom&amp;title=Documentation%3AModules%2Fsmem"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Modules/smem&amp;action=history"/>
	<updated>2026-11-05T02:17:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Documentation:Modules/smem&amp;diff=61630&amp;oldid=prev</id>
		<title>DoesItReallyMatter: Create page marked up/adapted from source code/changelog</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Documentation:Modules/smem&amp;diff=61630&amp;oldid=prev"/>
		<updated>2019-05-28T22:25:29Z</updated>

		<summary type="html">&lt;p&gt;Create page marked up/adapted from source code/changelog&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{See also|Stream to memory (smem) tutorial}}&lt;br /&gt;
{{Module|name=smem|type=Stream output|first_version=1.1.0|description=Stream output to memory buffer|sc=smem}}&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
There is a note in the source code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
/*****************************************************************************&lt;br /&gt;
 * How to use it&lt;br /&gt;
 *****************************************************************************&lt;br /&gt;
 *&lt;br /&gt;
 * You should use this module in combination with the transcode module, to get&lt;br /&gt;
 * raw datas from it. This module does not make any conversion at all, so you&lt;br /&gt;
 * need to use the transcode module for this purpose.&lt;br /&gt;
 *&lt;br /&gt;
 * For example, you can use smem as it :&lt;br /&gt;
 * --sout=&amp;quot;#transcode{vcodec=RV24,acodec=s16l}:smem{smem-options}&amp;quot;&lt;br /&gt;
 *&lt;br /&gt;
 * Into each lock function (audio and video), you will have all the information&lt;br /&gt;
 * you need to allocate a buffer, so that this module will copy data in it.&lt;br /&gt;
 *&lt;br /&gt;
 * the video-data and audio-data pointers will be passed to lock/unlock function&lt;br /&gt;
 *&lt;br /&gt;
 ******************************************************************************/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Options ==&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-video-prerender-callback&lt;br /&gt;
|value=string&lt;br /&gt;
|default=&amp;quot;0&amp;quot;&lt;br /&gt;
|description=Address of the video prerender callback function. This function will set the buffer where render will be done.&lt;br /&gt;
}}&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-audio-prerender-callback&lt;br /&gt;
|value=string&lt;br /&gt;
|default=&amp;quot;0&amp;quot;&lt;br /&gt;
|description=Address of the audio prerender callback function. This function will set the buffer where render will be done.&lt;br /&gt;
}}&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-video-postrender-callback&lt;br /&gt;
|value=string&lt;br /&gt;
|default=&amp;quot;0&amp;quot;&lt;br /&gt;
|description=Address of the video postrender callback function. This function will be called when the render is into the buffer.&lt;br /&gt;
}}&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-audio-postrender-callback&lt;br /&gt;
|value=string&lt;br /&gt;
|default=&amp;quot;0&amp;quot;&lt;br /&gt;
|description=Address of the audio postrender callback function. This function will be called when the render is into the buffer.&lt;br /&gt;
}}&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-video-data&lt;br /&gt;
|value=string&lt;br /&gt;
|default=&amp;quot;0&amp;quot;&lt;br /&gt;
|description=Data for the video callback function.&lt;br /&gt;
}}&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-audio-data&lt;br /&gt;
|value=string&lt;br /&gt;
|default=&amp;quot;0&amp;quot;&lt;br /&gt;
|description=Data for the audio callback function.&lt;br /&gt;
}}&lt;br /&gt;
{{Option&lt;br /&gt;
|name=sout-smem-time-sync&lt;br /&gt;
|value=boolean&lt;br /&gt;
|default=enabled&lt;br /&gt;
|description=Time Synchronisation option for output. If true, stream will render as usual, else it will be rendered as fast as possible.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Source code ==&lt;br /&gt;
* {{VLCSourceFile|modules/stream_out/smem.c}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation}}&lt;/div&gt;</summary>
		<author><name>DoesItReallyMatter</name></author>
	</entry>
</feed>