Recherche avancée

Médias (91)

Autres articles (107)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang 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.

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8662)

  • Trying to find a way to limit the number of List that can run at one time

    14 mars 2024, par Jake

    My application has a List of Tasks. Each Task launches a FFMPEG process that requires a lot of resources on my machine. At times, this list can contain 200+ processes to FFMPEG. While processing, my memory is at 99% and everything freezes up.

    


    I need to limit the amount of processes that can run at one time. I have read a little about SemaphoreSlim ; however, I cannot wrap my mind around it's implementation.

    


    Is this a solution for this particular problem and if so, any ideas on how to implement it in my code ?

    


    Below is my code :

    


    public async System.Threading.Tasks.Task GetVideoFiles()&#xA;{            &#xA;    OpenFileDialog openFileDialog = new OpenFileDialog();&#xA;    openFileDialog.Multiselect = true;&#xA;    &#xA;    if (openFileDialog.ShowDialog() == true)&#xA;    {&#xA;        AllSplices.Clear();&#xA;        AllSplices = new ObservableCollection<splicemodel>();&#xA;        IsBusy = true;&#xA;        IsBusyMessage = "Extracting Metadata";&#xA;        IsBusyBackgroundVisible = "Visible";&#xA;        NotifyPropertyChanged(nameof(IsBusy));&#xA;        NotifyPropertyChanged(nameof(IsBusyMessage));&#xA;        NotifyPropertyChanged(nameof(IsBusyBackgroundVisible));&#xA;        metaTasks = new List>();                &#xA;        extractFramesTask = new List();&#xA;        &#xA;        foreach (string file in openFileDialog.FileNames)&#xA;        {&#xA;            FileInfo fileInfo = new FileInfo(file);&#xA;            bool canAdd = true;&#xA;            var tempFileName = fileInfo.Name;&#xA;            &#xA;            foreach (var video in AllVideos)&#xA;            {&#xA;                if (file == video.VideoPath)&#xA;                {&#xA;                    canAdd = false;&#xA;                    break;&#xA;                }&#xA;&#xA;                if (video.VideoName.Contains(tempFileName))&#xA;                {&#xA;                    video.VideoName = "_" &#x2B; video.VideoName;                            &#xA;                }                        &#xA;            }&#xA;            if (canAdd)&#xA;            {                        &#xA;                metaTasks.Add(System.Threading.Tasks.Task.Run(() => ProcessMetaData(file)));                        &#xA;            }                       &#xA;        }&#xA;        var metaDataResults = await System.Threading.Tasks.Task.WhenAll(metaTasks);              &#xA;        &#xA;        foreach (var vid in metaDataResults)&#xA;        {                    &#xA;            if(vid == null)&#xA;            {&#xA;                continue;&#xA;            }&#xA;            &#xA;            vid.IsNewVideo = true;                    &#xA;            AllVideos.Add(vid);&#xA;            &#xA;            // This list of task launches up to 200 video processing processes to FFMPEG&#xA;            extractFramesTask.Add(System.Threading.Tasks.Task.Run(() => ExtractFrames(vid)));&#xA;            &#xA;            vid.IsProgressVisible = "Visible";&#xA;            TotalDuration &#x2B;= vid.VideoDuration;&#xA;            vid.NumberOfFrames = Convert.ToInt32(vid.VideoDuration.TotalSeconds * 30);&#xA;            _ = ReportProgress(vid);&#xA;        }&#xA;       &#xA;        IsBusyMessage = "Importing Frames";&#xA;        NotifyPropertyChanged(nameof(IsBusyMessage));                              &#xA;        await System.Threading.Tasks.Task.WhenAll(extractFramesTask);              &#xA;    }&#xA;</splicemodel>

    &#xA;

  • Revision 0fe589f21e : Fill buffer speed up Eliminates the byte by byte read from bool decoder, by re

    14 juillet 2015, par Jim Bankoski

    Changed Paths :
     Modify /vpx_dsp/bitreader.c


     Add /vpx_util/endian_inl.h


     Modify /vpx_util/vpx_util.mk



    Fill buffer speed up

    Eliminates the byte by byte read from bool decoder, by reading
    in a size_t and then shifting it into place.

    Change-Id : I0ed8c7b6f942847e79cc90105dc1d2b5b3deb0d6

  • Evolution #2790 (Nouveau) : JS inline pour Mediabox même quand désactivé

    9 juillet 2012, par nicolas -

    J’ai désactivé Mediabox pour le front, mais mes pages contiennent tout de même le code suivant : /* */ Pas bien pénalisant, je sais, mais tout de même en trop.