<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ex1B3k</id>
	<title>ElphelWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ex1B3k"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/wiki/Special:Contributions/Ex1B3k"/>
	<updated>2026-08-18T14:03:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=GenReS&amp;diff=1242</id>
		<title>GenReS</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=GenReS&amp;diff=1242"/>
		<updated>2007-04-18T04:13:51Z</updated>

		<summary type="html">&lt;p&gt;Ex1B3k: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{en|ru=GenReS(плагин)|cn=GenReS_cn}}&lt;br /&gt;
&lt;br /&gt;
GenReS is a generic reconfigurable scriptable plugin for Mozilla based browsers. It allows to use external programs for EMBED and OBJECT HTML tags or to start them in browser full window.&lt;br /&gt;
&lt;br /&gt;
== Project Pages ==&lt;br /&gt;
*[https://savannah.nongnu.org/files/?group=genres Download]&lt;br /&gt;
*[https://savannah.nongnu.org/projects/genres Development]&lt;br /&gt;
*[http://freshmeat.net/projects/genres/ Subscribe for news]&lt;br /&gt;
*[http://sourceforge.net/projects/genres/ Mirror]&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
The plugin uses &amp;quot;~/.mozilla/genres/genres.conf&amp;quot; or &amp;quot;/etc/genres.conf&amp;quot; as main config file.&lt;br /&gt;
Options for mplayer, mencoder and ElphelOgm are stored in the config file &amp;quot;~/.mozilla/genres/mplayer.conf&amp;quot;, which is used by mplayer.pl control script.&lt;br /&gt;
The files can contain shell-like comments.&lt;br /&gt;
=== options in genres.conf ===&lt;br /&gt;
;mozillastreams={1|0} :- use or not mozilla streams (and cache) for http, https and ftp;&lt;br /&gt;
;debuglevel={1|0} :- enable or disable the debug output;&lt;br /&gt;
;background={-1|0|1} :- object color while loadining:      0 - black, 1 - white, -1 - mozilla default (gray).&lt;br /&gt;
&lt;br /&gt;
=== options in mplayer.conf ===&lt;br /&gt;
;out_file_once=template :- filename template filename;&lt;br /&gt;
;out_file=template :- filename template filename for tags with parameter save=auto;&lt;br /&gt;
;out_file_jpegs=template :- filename template for tags with thesaveformat=jpeg;&lt;br /&gt;
;out_file_jpegs_auto=template :- same for save=auto and saveformat=jpeg;&lt;br /&gt;
;vo={x11,xv} :- video output driver (see man mplayer about -vo option);&lt;br /&gt;
;ao={arts,esd,alsa,oss} :- audio output driver (see man mplayer about -ao option);&lt;br /&gt;
;not_ask={1|0} :- not show file save dialog for tags with save=auto parameter;&lt;br /&gt;
;not_ask_jpegs={1|0} :- same for saveformat=jpeg; &lt;br /&gt;
;frames=number :- frames per file limit for recording (output will be splitted).&lt;br /&gt;
&lt;br /&gt;
== Usage in Javascript ==&lt;br /&gt;
=== Static tag parameters ===&lt;br /&gt;
;lowres: decimation for accelerated DCT (0-3);&lt;br /&gt;
;width: width of the object window;&lt;br /&gt;
;loop: number of iterations of the playback (0 or nothing is infinite);&lt;br /&gt;
;fps: frame frequency;&lt;br /&gt;
;frameskip : skip n frames after one saved (only for rtp/mjpeg and ElphelOgm);&lt;br /&gt;
;framedelay : a number of fully received frames delayed in the buffer (only for rtp/mjpeg and ElphelOgm);&lt;br /&gt;
;rotate : the rotation angle of the image clockwise in degrees (0|90|180|240) &lt;br /&gt;
;mirror : mirror-symmetry mapping relative to vertical axis (true|false) &lt;br /&gt;
;flip : the same relative to horizontal (true|false); simultaneous setting of flip and mirror is equivalent to rotate=180&lt;br /&gt;
;saveformat=jpeg|ogm|avi : format for video recording (jpeg, ogm is only for rtp/mjpeg and ElphelOgm)&lt;br /&gt;
&lt;br /&gt;
=== Dynamic variables (can also be used as the parameters of tags) ===&lt;br /&gt;
;href: url of the file or stream;&lt;br /&gt;
;src: as yet simply another name for href.&lt;br /&gt;
;pause=1 or play=0: to pause player;&lt;br /&gt;
;pause=0 or play=1: to continue playback;&lt;br /&gt;
;filepos=sec : go to time or percent specifed, maybe not works if mplayer is not support seeking for the current file;&lt;br /&gt;
;framestep=anything : show next frame and pause (for step-by-step view);&lt;br /&gt;
;run=1: to start player again if it was terminated (by error or end of file);&lt;br /&gt;
;run=0: to terminate player;&lt;br /&gt;
;save: to run mencoder or ElphelOgm as recorder instead of mplayer;&lt;br /&gt;
:;save=ask: to always ask the file name for recording;&lt;br /&gt;
:;save=auto: not to ask if user sets it in dialog&lt;br /&gt;
&lt;br /&gt;
=== Status variables ===&lt;br /&gt;
This the output from mplayer or mencoder.&lt;br /&gt;
Now strings simply are split into two parts on the first of the symbols &#039;=&#039; or &#039;:&#039;.&lt;br /&gt;
The left part becomes a name of the variable (gaps and nonlatin letters are removed) and the right part is a value.&lt;br /&gt;
;frame: the message from mplayer/mencoder about the last frame;&lt;br /&gt;
;error: last error message;&lt;br /&gt;
;FATAL: fatal error message from mplayer;&lt;br /&gt;
Other variables are possible but they are not used as yet.&lt;br /&gt;
;run: special variable, the state of player process: 0 - not running, 1 - running;&lt;br /&gt;
;pause, play: it is analogous - the pause state.&lt;br /&gt;
&lt;br /&gt;
=== Callback functions ===&lt;br /&gt;
On the arrival of data from a player it is transferred to the object variables and it becomes accessible from javascript.&lt;br /&gt;
In this case if it is assigned the function with the corresponding name &amp;quot;on&lt;/div&gt;</summary>
		<author><name>Ex1B3k</name></author>
	</entry>
</feed>