
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 (96)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (8951)
-
avfilter : forward status back in some filters that missed it
5 mai 2018, par Paul B Mahol -
Make gif using most recent 7x updated JPG in a folder (weekly timelapse !)
28 juillet 2019, par Brad SullivanThis bash script takes a cctv screenshot on cronjob, daily.
The filenames are saved YY_MM_DD_HH_MM_SS.I can make a ’year to date’ timelapse (comes out as
sofar.gif
) easily using the below line — note that this ignores all filenames / creation dates and just sued every JPG in the folderffmpeg -pattern_type glob -i $outdir/'*.jpg' $outdir/gif/sofar.gif -y
But I also want to generate at the same time, a gif using EITHER :
A) the JPG’s with the most recent 7x file names
B) the JPG’s with the most recent modified stamp
(same result)I have tried this code below, which does generate a
7days.gif
but it only contains 1 frame, the 7th oldest screenshot — rather my desired output having 7 frames made up from the most 7x recent screenshots.#!/usr/bin/env bash
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin
# runs from a cronjob. saves live screenshot from CCTV to jpg, then updates the year-to-date movie
if [ $# -ne 1 ]
then
echo "Usage: `basename $0` OUTDIR"
exit 65
fi
doexit=0
start=$(date +%s)
end=$(date +%s)
outdir=${1%/}
mkdir $outdir
mkdir $outdir/gif/
echo "Capturing image..."
counter=$(date +"%Y_%m_%d_%H-%M-%S");
file=$outdir/$counter.jpg
if response=$(curl --silent --write-out %{http_code} --max-time 600 'http://192.168.1.69/cgi-bin/snapshot.cgi?chn=0&u=XXX&p=XXX&q=0&d=1&rand=0.14620004288649113' -o $file) ; then
echo "Captured & saved $file!"
else
echo "Failed to capture $file"
fi
# THIS IS THE BIT WHICH DOES THE LAST 7 DAYS
shopt -s nullglob
files=( "$outdir"/*.jpg )
file_count=${#files[@]}
echo
if (( ${#files[@]} == 0 )); then
echo "ERROR: No files found" >&2; exit 1;
elif (( ${#files[@]} > 7 )); then
files=( "${files[@]:$(( ${#files[@]} - 7 ))}" )
fi
input_args=( )
for f in "${files[@]}"; do
input_args+=(-i "$f")
done
echo "Making weekly.."
echo "${input_args[@]}"
echo "Making weekly.."
ffmpeg "${input_args[@]}" $outdir/gif/7days.gif -y
echo "Making YTD.."
ffmpeg -hide_banner -loglevel panic -pattern_type glob -i $outdir/'*.jpg' $outdir/gif/sofar.gif -y
exit 1The code half works as if I echo the
${input_args[@]}
I see the correct file list ;Making weekly.. -i 365/2019_07_10_15-00-00.jpg -i 365/2019_07_11_15-00-00.jpg -i 365/2019_07_12_15-00-00.jpg -i 365/2019_07_13_15-00-00.jpg -i 365/2019_07_14_15-00-00.jpg -i 365/2019_07_15_15-00-00.jpg -i 365/2019_07_16_12-00-19.jpg
which seems to confuse ffmpeg it because it adds the -i over & over, meaning the gif only has one frame.I need to edit the script above to correctly also spit out a
7days.gif
which is dynamically made using the most recent 7x screenshots in$outdir
-
Concatination of images and videos in FFMpeg [closed]
29 octobre 2023, par Juliano David HilarioI've been trying to concat pieces of videos with mix of images in FFMpeg and I can not achieve desired results. I'm trying to create a mock interview project for a friend, she answers the questions from a script. The question should be flashed in the screen before the footage of her answering is shown. The videos are encoded in H.265, with frame rate of 30fps, (via
mediainfo
) and when I try to concat the videos and images using the concat demuxer, it shows this message in rapid succession and only output the first image in the given duration in the output file : (meaning it failed when concating the video, I assume this is due to the fact that demuxed images doesn't have audio streams.)

[png @ 0x55b4a4cb3540] Invalid PNG signature 0x3DB0201D430.
Error while decoding stream #0:0: Invalid data found when processing input



the command I've used :


ffmpeg -hide_banner -y -f concat -safe 0 -i concat.con -r 30 -c:v libx265 -c:a aac -pix_fmt yuv420p out.mp4



the slice of
concat.con
file :

file slides/1.png
duration 6
file parts/1.mp4
file slides/2.png
duration 8
file parts/2.mp4
file slides/3.png
duration 9
file parts/3.mp4
. . .
duration 12
file parts/9.mp4
file slides/10.png
duration 9
file parts/10.mp4




Since, I need to get this done if possible today, I tried this route of turning the images into videos by this command :


#!/bin/sh

ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -loop 1 -i "${1}.png" -c:v libx265 -r 30 -c:a aac -t "$2" -pix_fmt yuv420p "${1}_slide.mp4"



This does create the desired result of a static video without sound but still has an audio channel (which is a pre-requisite for the concat demuxer), but when I concat it with the same command above with videos, the videos' audio desyncs and advances, now the video delays with the audio, which is not obviously feasable for the project. I suspect it has to do with frames and PTS, as MPV (a media player) logs when the duration of the video enters the video that has been concatinated that the PTS is invalid, and says :


Invalid audio PTS: 6.037188 -> 6.553832

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).



Tried turning the pictures into an image, and was expecting it to atleast sync with the audio