Allora ho appena installato una slack 13.37_64 e dopo qualche problemino di compilazione sono riuscito a far girare motion (apparentemente) senza errori.
Per chi non lo conoscesse motion è un software che permette di registrare e scattare immagini, anche solo quando rileva un movimento.
Ora, quando la webcam mi rileva un movimento inizia a salvare la sequenza di immagini correttamente secondo quanto ho settato nel file .conf, tuttavia non riesco a far sì che registri un video.
Per la parte video è necessario avere ffmpeg; pertanto ho provveduto all'installazione e provato a compilare nuovamente motion.
Risultato:
Codice: Seleziona tutto
Version: 3.2.12
Platform: Linux (if this is incorrect, please read README.FreeBSD)
Compiling Motion object files...
--------------------------------------------------------------------------------
gcc -g -O2 -D_REENTRANT -DHAVE_FFMPEG -I/usr/local/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -I/usr/include/mysql -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\" -c -o ffmpeg.o ffmpeg.c
ffmpeg.c:26:10: warning: #warning **************************************************
ffmpeg.c:27:10: warning: #warning Your version of FFmpeg is newer than version 0.4.8
ffmpeg.c:28:10: warning: #warning Newer versions of ffmpeg do not support MPEG1 with
ffmpeg.c:29:10: warning: #warning non-standard framerate. MPEG1 will be disabled for
ffmpeg.c:30:10: warning: #warning normal video output. You can still use mpeg4 and
ffmpeg.c:31:10: warning: #warning and mpeg4ms which are both better in terms of size
ffmpeg.c:32:10: warning: #warning and quality. MPEG1 is always used for timelapse.
ffmpeg.c:33:10: warning: #warning Please read the Motion Guide for more information.
ffmpeg.c:34:10: warning: #warning Note that this is not an error message!
ffmpeg.c:35:10: warning: #warning **************************************************
ffmpeg.c:183:5: warning: initialization from incompatible pointer type
ffmpeg.c: In function 'mpeg1_write_trailer':
ffmpeg.c:202:5: warning: 'put_buffer' is deprecated (declared at /usr/local/include/libavformat/avio.h:256)
ffmpeg.c:203:5: warning: 'put_flush_packet' is deprecated (declared at /usr/local/include/libavformat/avio.h:293)
ffmpeg.c: In function 'ffmpeg_init':
ffmpeg.c:232:5: warning: implicit declaration of function 'av_register_protocol'
ffmpeg.c: In function 'get_oformat':
ffmpeg.c:261:9: warning: implicit declaration of function 'guess_format'
ffmpeg.c:261:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:273:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:276:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:283:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:286:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:290:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c:298:12: warning: assignment makes pointer from integer without a cast
ffmpeg.c: In function 'ffmpeg_open':
ffmpeg.c:380:21: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
ffmpeg.c:380:21: note: each undeclared identifier is reported only once for each function it appears in
ffmpeg.c:420:5: warning: 'av_set_parameters' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1310)
ffmpeg.c:501:9: warning: 'url_fopen' is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
ffmpeg.c:511:17: warning: 'url_fopen' is deprecated (declared at /usr/local/include/libavformat/avio.h:279)
ffmpeg.c: In function 'ffmpeg_close':
ffmpeg.c:599:9: warning: 'url_fclose' is deprecated (declared at /usr/local/include/libavformat/avio.h:280)
ffmpeg.c: In function 'ffmpeg_put_frame':
ffmpeg.c:649:22: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
make: *** [ffmpeg.o] Error 1
Non so come venirne a capo, una mano please?
Grazie