Motion AVI 2 MP4

9 de março de 2019 Off Por Marcelo Martins

Português:

O objetivo destes scripts são de permitir interagir de forma facil e prática a partir do reconhecimento de movimento do programa do linux motion.

Os scripts são dois:

analisa_img.sh

Executa um script, permitindo a programação de outros comandos associados ao reconhecimento de imagem e/ou analise e filtragem da imagem capturada.

analisa_avi.sh

Executa um script, permitindo a progração de outros comandos associados a conversão para formato MP4, permitindo assim a visualização através do browser.

😉

Este script pode ser modificado a medida de sua necessidade, peço apenas que no uso, envie um email para marcelomaurinmartins@gmail.com, informando a finalidade. Justamente para que eu veja os frutos de 3 dias de trabalho, realmente auxiliaram alguem em algum lugar do mundo 

Complemento: 

Para o perfeito funcionamento deste script é necessário instalar préviamente os seguintes pacotes:

ffmpeg – realiza a conversão do arquivo avi para mp4

sudo apt-get install ffmpeg

Instalação

  1. Deve-se criar as pastas /projetos/sosconsulta/linux/ eu recomendo mudar o caminho da pasta, porem será necessário mudar toda a referencia nos scripts. :-0

2. Copie a pasta analisa_img para o caminho indicado no passo 1

Entre na pasta; cd /projetos/sosconsulta/linux/analisa_img/

3. Rode o Makefile; make all

Este procedimento, irá instalar os scripts na pasta /usr/local/bin

4. Configure o arquivo motion.conf, editando em /etc/motion, vim motion.conf

Altere o arquivo, incluindo:

on_movie_end /usr/local/bin/analisa_avi.sh %f

caso tenha threads.conf, faça nas mesmas, se houver necessidade.

Git:

https://github.com/MarceloMaurin/motion_avi_mp4/blob/master/analisa_img/analisa_avi.sh

English

The purpose of these scripts is to allow easy and practical interaction from the motion recognition of the linux motion program.

The scripts are two:

analisa_img.sh

Performs a script, allowing programming of other commands associated with image recognition and / or analysis and filtering of the captured image.

analisa_avi.sh

It executes a script, allowing the programming of other commands associated with the conversion to MP4 format, thus allowing the visualization through the browser.

😉

This script can be modified to suit your needs, just ask that in use, send an email to marcelomaurinmartins@gmail.com, stating the purpose. Just so I can see the fruits of 3 days of work, really helped someone somewhere in the world 

Complement:

For the perfect operation of this script it is necessary to install the following packages:

ffmpeg – performs conversion from avi file to mp4

sudo apt-get install ffmpeg

Installation

😮

1. You should create the folders / projects / sosconsulta / linux / I recommend changing the folder path, however it will be necessary to change the entire reference in the scripts.  

2. Copy the analisa_img folder to the path indicated in step 1

Enter the folder; cd / projects / sosconsulta / linux / analisa_img /

3. Run the Makefile; make all

This will install the scripts in the / usr / local / bin folder

4. Configure the motion.conf file by editing in / etc / motion, vim motion.conf

Change the file, including:

on_movie_end /usr/local/bin/analisa_avi.sh% f

if it has threads.conf, do it on them, if need be.

Git:

https://github.com/MarceloMaurin/motion_avi_mp4/blob/master/analisa_img/analisa_avi.shThis entry was posted in Sem categoria. Bookmark the permalink.