<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?action=history&amp;feed=atom&amp;title=Motion</id>
	<title>Motion - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?action=history&amp;feed=atom&amp;title=Motion"/>
	<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;action=history"/>
	<updated>2026-04-06T00:15:10Z</updated>
	<subtitle>Historial de revisiones de esta página en el wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=580&amp;oldid=prev</id>
		<title>Nacho en 00:54 29 abr 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=580&amp;oldid=prev"/>
		<updated>2020-04-29T00:54:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 00:54 29 abr 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Línea 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Rasberry&lt;/del&gt;-pi]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Raspberry&lt;/ins&gt;-pi]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Instalar==  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Instalar==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo apt-get install motion&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo apt-get install motion&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=288&amp;oldid=prev</id>
		<title>Nacho: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=288&amp;oldid=prev"/>
		<updated>2020-04-22T23:59:31Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 23:59 22 abr 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=282&amp;oldid=prev</id>
		<title>Nacho: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=282&amp;oldid=prev"/>
		<updated>2020-04-22T23:58:11Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 23:58 22 abr 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=287&amp;oldid=prev</id>
		<title>raspberry-pi&gt;Nacho en 23:14 22 abr 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=287&amp;oldid=prev"/>
		<updated>2020-04-22T23:14:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 23:14 22 abr 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>raspberry-pi&gt;Nacho</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=281&amp;oldid=prev</id>
		<title>raspberry-pi&gt;Nacho en 23:14 22 abr 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.enunpimpam.com/pimpamwiki/index.php?title=Motion&amp;diff=281&amp;oldid=prev"/>
		<updated>2020-04-22T23:14:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:Rasberry-pi]]&lt;br /&gt;
==Instalar== &lt;br /&gt;
 sudo apt-get install motion&lt;br /&gt;
&lt;br /&gt;
 apt-get install -y libjpeg62 libjpeg62-dev libavformat53  libavformat-dev libavcodec53 libavcodec-dev&lt;br /&gt;
 libavutil51 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5  libpq-dev&lt;br /&gt;
&lt;br /&gt;
Activamos el '''daemon''' para que se inicie con el sistema&lt;br /&gt;
 nano /etc/default/motion&lt;br /&gt;
Cambiamos no por yes&lt;br /&gt;
 start_motion_daemon='''yes'''&lt;br /&gt;
&lt;br /&gt;
==Motion versión MMAL==&lt;br /&gt;
La versión oficial de los repositorios por defecto no funciona, pero un tal  ''Dozencrows'' ha realizado un binario que funciona perfecto en la raspberry.&lt;br /&gt;
&lt;br /&gt;
Lo unico que la instalación es diferente, primero es recomendable instalar la versión oficial, ya que esta instala todas las dependecias.&lt;br /&gt;
&lt;br /&gt;
'''Descargamos la versión modificada'''&lt;br /&gt;
&lt;br /&gt;
 wget https://www.dropbox.com/s/xdfcxm5hu71s97d/motion-mmal.tar.gz&lt;br /&gt;
&lt;br /&gt;
 wget http://captain-slow.dk/motion/motion-mmal.tar.gz&lt;br /&gt;
&lt;br /&gt;
 tar zxvf motion-mmal.tar.gz&lt;br /&gt;
 sudo mv motion /usr/bin/motion&lt;br /&gt;
 sudo mv motion-mmalcam.conf /etc/motion.conf&lt;br /&gt;
Asignar permisos&lt;br /&gt;
 sudo chmod 664 /etc/motion.conf&lt;br /&gt;
 sudo chmod 755 /usr/bin/motion&lt;br /&gt;
 sudo touch /tmp/motion.log&lt;br /&gt;
 sudo chmod 775 /tmp/motion.log&lt;br /&gt;
 &lt;br /&gt;
 sudo nano /etc/motion.conf&lt;br /&gt;
&lt;br /&gt;
 daemon on&lt;br /&gt;
 logfile /tmp/motion.log&lt;br /&gt;
 width 1280&lt;br /&gt;
 height 720&lt;br /&gt;
 framerate 2&lt;br /&gt;
 max_mpeg_time 600&lt;br /&gt;
 ffmpeg_video_codec mpeg4&lt;br /&gt;
 stream_localhost off&lt;br /&gt;
 stream_auth_method 2  &lt;br /&gt;
 stream_authentication TUUSUARIO:TUCONTRASEÑA&lt;br /&gt;
Para que se inicie automaticamente Motion tenemos que añadir una linea en el archivo de inicio del demon&lt;br /&gt;
 sudo nano /etc/init.d/motion&lt;br /&gt;
Añadir&lt;br /&gt;
 Sleep 30&lt;br /&gt;
&lt;br /&gt;
===Estado===&lt;br /&gt;
 monit status&lt;br /&gt;
&lt;br /&gt;
==Configurar Motion==&lt;br /&gt;
 nano /etc/motion/motion.conf &lt;br /&gt;
&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Daemon&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Start in daemon (background) mode and release terminal (default: off)&lt;br /&gt;
 daemon on &lt;br /&gt;
&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Basic Setup Mode&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Start in Setup-Mode, daemon disabled. (default: off)&lt;br /&gt;
 setup_mode on &lt;br /&gt;
&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Live Webcam Server&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Quality of the jpeg (in percent) images produced (default: 50)&lt;br /&gt;
 webcam_quality 100&lt;br /&gt;
 # Restrict webcam connections to localhost only (default: on)&lt;br /&gt;
 webcam_localhost off&lt;br /&gt;
&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # HTTP Based Control&lt;br /&gt;
 ############################################################&lt;br /&gt;
 # Restrict control connections to localhost only (default: on)&lt;br /&gt;
 control_localhost off&lt;br /&gt;
 # Output for http server, select off to choose raw text plain (default: on)&lt;br /&gt;
 control_html_output off&lt;br /&gt;
&lt;br /&gt;
 # Image width (pixels). Valid range: Camera dependent, default: 352&lt;br /&gt;
 width 640&lt;br /&gt;
 # Image height (pixels). Valid range: Camera dependent, default: 288&lt;br /&gt;
 height 480&lt;br /&gt;
&lt;br /&gt;
 # Target base directory for pictures and films&lt;br /&gt;
 # Recommended to use absolute path. (Default: current working directory)&lt;br /&gt;
 target_dir /media/webcam&lt;br /&gt;
&lt;br /&gt;
==Comprobar==&lt;br /&gt;
&lt;br /&gt;
 # Minimum time in seconds between capturing picture frames from the camera.&lt;br /&gt;
 # Default: 0 = disabled - the capture rate is given by the camera framerate.&lt;br /&gt;
 # This option is used when you want to capture images at a rate lower than 2 per second.&lt;br /&gt;
 minimum_frame_time 5&lt;br /&gt;
&lt;br /&gt;
 # Specifies the number of pre-captured (buffered) pictures from before motion&lt;br /&gt;
 # was detected that will be output at motion detection.&lt;br /&gt;
 # Recommended range: 0 to 5 (default: 0)&lt;br /&gt;
 # Do not use large values! Large values will cause Motion to skip video frames and&lt;br /&gt;
 # cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.&lt;br /&gt;
 pre_capture 2&lt;br /&gt;
 # Number of frames to capture after motion is no longer detected (default: 0)&lt;br /&gt;
 post_capture 2&lt;br /&gt;
&lt;br /&gt;
 # Output pictures with only the pixels moving object (ghost images) (default: off)&lt;br /&gt;
 output_motion on &lt;br /&gt;
 # The quality (in percent) to be used by the jpeg compression (default: 75)&lt;br /&gt;
 quality 100&lt;br /&gt;
&lt;br /&gt;
 # Use ffmpeg to encode a timelapse movie&lt;br /&gt;
 # Default value 0 = off - else save frame every Nth second&lt;br /&gt;
 ffmpeg_timelapse 30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Comprobar el funcionamiento==&lt;br /&gt;
 ./motion -n -c motion-mmalcam.conf&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/syslog&lt;/div&gt;</summary>
		<author><name>raspberry-pi&gt;Nacho</name></author>
		
	</entry>
</feed>