
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (65)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
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 (13204)
-
Could you please guide me on how to play a single sample of an audio file in C# using FFmpeg ?
11 juillet 2023, par hello worldWhat is the recommended approach for playing a single sample of an audio file in C# using FFmpeg ? I would like to incorporate FFmpeg into my C# application to play a specific sample from an audio file. Could someone provide an example or guide me on how to achieve this ? Any help would be appreciated.


using System;
using System.Diagnostics;

public class AudioPlayer
{
 private string ffmpegPath;

 public AudioPlayer(string ffmpegPath)
 {
 this.ffmpegPath = ffmpegPath;
 }

 public void PlayAudioSample(string audioFilePath, TimeSpan samplePosition)
 {
 // Prepare FFmpeg process
 Process ffmpegProcess = new Process();
 ffmpegProcess.StartInfo.FileName = ffmpegPath;
 ffmpegProcess.StartInfo.Arguments = $"-ss {samplePosition} -i \"{audioFilePath}\" -t 1 -acodec pcm_s16le -f wav -";
 ffmpegProcess.StartInfo.RedirectStandardOutput = true;
 ffmpegProcess.StartInfo.RedirectStandardError = true;
 ffmpegProcess.StartInfo.UseShellExecute = false;
 ffmpegProcess.StartInfo.CreateNoWindow = true;

 // Start FFmpeg process
 ffmpegProcess.Start();

 // Play audio sample
 using (var audioOutput = new NAudio.Wave.WaveOutEvent())
 {
 using (var audioStream = new NAudio.Wave.RawSourceWaveStream(ffmpegProcess.StandardOutput.BaseStream, new NAudio.Wave.WaveFormat(44100, 16, 2)))
 {
 audioOutput.Init(audioStream);
 audioOutput.Play();
 while (audioOutput.PlaybackState == NAudio.Wave.PlaybackState.Playing)
 {
 System.Threading.Thread.Sleep(100);
 }
 }
 }

 // Wait for FFmpeg process to exit
 ffmpegProcess.WaitForExit();
 }
}



-
FFMPEG UDP to DASH I am wondering if it could be written more efficiently ?
18 mars 2019, par c7borgI have the below working but it is quite cpu intensive I’ve just moved to ffmpeg 3.4 and was wondering if it could be written more efficently ?
The below takes a multicast stream from our local LAN avoids the choppy footage by using the scenecut then adjusts the audio with the async to keep it in time and uses the yadif to deinterlace to provide better quality. This command/script also trims the maximum number of segments otherwise with a live stream it would fill up the directory.
If anyone has any improvements I’d much appreciate it
I also add subtitles using -filter_complex "[0:v][0:s]overlay" but this conflicts with the -vf yadif option.
ffmpeg -i \
"udp://@239.192.4.5:1234?overrun_nonfatal=1&fifo_size=50000000" \
-acodec aac -strict -2 -vcodec libx264 \
-vf yadif \
-af aresample=async=1 \
-x264opts 'keyint=25:scenecut=-1' \
-window_size 10 -extra_window_size 10 \
-f dash /var/www/html/stream/out.mpdIf it can’t be written more efficiently at least this may help others as it took me a long time to get this far. For reference I use shaka player in chromium for the client side
-
Anomalie #4075 (Fermé) : Mail du privé envoyés aux auteurs des messages proposés dans le public si...
15 janvier 2018Bonjour,
Avec SPIP 3.1.7 SVN 23838 je viens de tomber sur le cas suivant :
- un article publié
- avec une contribution au forum ayant le statut prop
- passage de l’article en statut "En cours de rédaction"
- dans l’admin, publication d’un commentaire en bas de l’article
- le mail a été envoyé sur l’email de la contribution publique alors que seuls les auteurs de l’article auraient dû être notifiés
Précision, plugin Notifications 3.5.13 installé avec ce réglage (en PJ).
Je signale donc ça aussi sur le forum du plugin au cas où.