
Recherche avancée
Autres articles (58)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (12364)
-
ffmpeg freezes some part of video using android ffmpeg
13 octobre 2017, par Tushar PingaleWhen i am Creating video parts, ffmpeg freezes some parts of the video, mostly the end part of the video. The command i am using for ffmpeg is as follows :
public void doSplitting(String path, long start, long duration, String outputPath) throws FFmpegCommandAlreadyRunningException {
new File(outputPath).getParentFile().mkdirs();
String newpath = generateFromKitkat(path);
String[] complexCommand = new String[]{"-i", newpath, "-itsoffset", "0.10", "-i", newpath, "-ss", ((int) (start / 1000)) + "", "-t", ((int) (duration / 1000)) + "", "-vcodec", "copy", "-acodec", "copy", "-map", "0:0", "-map", "1:1", outputPath};
String logMessage = "";
for (String str : complexCommand) {
logMessage = logMessage + " " + str;
}
Log.d("Complex Command", logMessage);
//ffmpeg Execution
} -
FFmpeg command in Windows to split audio file by silence
28 janvier 2019, par ZhouWI have previously used ffmpeg to split audio files by silence in Linux, with the following command (taken from How to split video or audio by silent parts, which splits an audio file by silences of -40dB that last at least 0.35 seconds) :
ffmpeg -i testfile.wav -filter_complex "[0:a]silencedetect=n=-40dB:d=0.35[outa]" -map [outa] -f s16le -y /dev/null |& F='-aq 70 -v warning' perl -ne 'INIT { $ss=0; $se=0; } if (/silence_start: (\S+)/) { $ss=$1; $ctr+=1; printf "ffmpeg -nostdin -i testfile.wav -ss %f -t %f $ENV{F} -y %03d.wav\n", $se, ($ss-$se), $ctr; } if (/silence_end: (\S+)/) { $se=$1; } END { printf "ffmpeg -nostdin -i testfile.wav -ss %f $ENV{F} -y %03d.wav\n", $se, $ctr+1; }' | bash -x
When trying to run this in Windows, I get the following error :
& was unexpected at this time.
The above command uses Linux-specific syntax and I’m unclear on how this should be written in a Windows environment. How should this be done ?
-
Fix "Non-monotonic DTS" Warning Caused By asetnsamples Filter
3 septembre 2024, par Harry MuscleI'm using the following complex filter to mute certain parts of an audio file and replace those parts with a beep generated by the
sine
filter :

[0]asetnsamples=n=1,volume=0:enable='between(t,1.57,1.97)+between(t,4.77,5.27)+between(t,5.37,5.87)+between(t,6.37,6.77)'[dippedVocals];sine=d=10:f=1000:samples_per_frame=1,pan=stereo|FL=c0|FR=c0[constantBleep];[constantBleep]atrim=start=0:end=6.77[shortenedBleep];[shortenedBleep]volume=0:enable='between(t,0,1.57)+between(t,1.97,4.77)+between(t,5.27,5.37)+between(t,5.87,6.37)'[dippedBleep];[dippedVocals][dippedBleep]amix=inputs=2



Since I need the locations specified to be exact I'm using the
asetnsamples
filter to set 1 sample per frame to get the highest possible accuracy. However, as soon as I add thisasetnsamples
filter to my filter chain I get thousands of these messages :

Non-monotonic DTS; previous: XXX, current: XXX; changing to XXX. This may result in incorrect timestamps in the output file.



Any idea what's causing that and how to fix it ? BTW, the input file is a ogg file encoded at 44100Hz and the output file is a wav file. Do wav files even contain timestamps ?