
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (88)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (3229)
-
FFMPEG hangs (sometimes) when trying to take a photo from USB camera ?
13 mai 2022, par dezmanI am attempting to write a script that takes a photo every 3 seconds from camera source "1", the -pix_fmt I think is unique to my USB camera.


Here is the script :


#!/bin/bash

set -e

while :
do
 nice_num=$(date +%s)
 
 ffmpeg -ss 00:00:00 -f avfoundation -pix_fmt yuyv422 -r 30.000030 -i "1" -t 1 -frames:v 1 -q:v 2 "image_$nice_num_%03d.jpg"
 
 wait

 sleep 3
done



The issue is half the time it successfully takes the photo, and half the time it just hangs forever echoing this (not useful) :


ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
 built with Apple clang version 13.1.6 (clang-1316.0.21.2)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox
 libavutil 57. 17.100 / 57. 17.100
 libavcodec 59. 18.100 / 59. 18.100
 libavformat 59. 16.100 / 59. 16.100
 libavdevice 59. 4.100 / 59. 4.100
 libavfilter 8. 24.100 / 8. 24.100
 libswscale 6. 4.100 / 6. 4.100
 libswresample 4. 3.100 / 4. 3.100
 libpostproc 56. 3.100 / 56. 3.100



Then I CTRL-C 3 times and get :


^C^C^CReceived > 3 system signals, hard exiting



Other methods of "taking a photo every n seconds from bash" are also appreciated.


-
avfilter/vpp_qsv : fix regression on older api versions (e.g. 1.11)
7 janvier 2022, par softworkzavfilter/vpp_qsv : fix regression on older api versions (e.g. 1.11)
Commit 8b83dad82512a6948b63408f964463b063ad24c9 introduced a
regression in a way that scaling via vpp_qsv doesn't work any longer
for devices with an MSDK runtime version lower than 1.19. This is true
for older CPUs which are stuck at 1.11.
The commit added checks for the compile-sdk version but it didn't test
for the runtime version.Signed-off-by : softworkz <softworkz@hotmail.com>
Signed-off-by : Haihao Xiang <haihao.xiang@intel.com> -
Adjusting webcam settings before shooting a photo (v4l2 and fswebcam)
18 septembre 2021, par MikeyI'm shooting photos with


sudo fswebcam -d /dev/video0 -r 1920x1080 --no-banner /media/networkshare/public/"Temp Photo Holder SolidScape Right"/timelapse_$DATE.jpg



on a Raspberry Pi 3 B+ running a recent version of Raspbian.


The script is controlling a Logitech c920 that has adjustable features like focus, brightness, contrast, etc.


I think the reason the 'manual' settings are not being saved is because I call the v4l2-ctl commands, add a delay, and then use fswebcam to shoot, like so :


#!/bin/bash
DATE=$(date +"%y%m%d%H%M%S")
#sudo v4l2-ctl -d /dev/video0 -c focus_auto=false
#sudo v4l2-ctl -d /dev/video0 -c focus_absolute=35
sudo v4l2-ctl -d /dev/video0 -c brightness=128
sudo v4l2-ctl -d /dev/video0 -c contrast=128
sudo v4l2-ctl -d /dev/video0 -c saturation=128
sudo v4l2-ctl -d /dev/video0 -c gain=15
sudo v4l2-ctl -d /dev/video0 -c sharpness=128
sleep 2

sudo v4l2-ctl -c exposure_auto_priority=1

#fswebcam -d /dev/video0 -r 1920x1080 --no-banner /media/networkshare/public/RasPi/"Temp Photo Holder SS"/timelapse_$DATE.jpg

sudo fswebcam -d /dev/video0 -r 1920x1080 --no-banner /media/networkshare/public/"Temp Photo Holder SolidScape Right"/timelapse_$DATE.jpg

sleep 9

sudo fswebcam -d /dev/video0 -r 1920x1080 --no-banner /media/networkshare/public/"Temp Photo Holder SolidScape Right"/timelapse_$DATE.jpg

sleep 9



How can I take a photo with manual settings appended ? Maybe I need to add commands to fswebcam inline instead of calling v4l2-ctl first ?