Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (88)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (9179)

  • avcodec/microdvddec : limit style characters in parsing

    4 août 2018, par Michael Niedermayer
    avcodec/microdvddec : limit style characters in parsing
    

    Fixes : Timeout
    Fixes : 9293/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MICRODVD_fuzzer-5643972541153280

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/microdvddec.c
  • lavfi/atempo : raise max tempo limit (v2)

    15 juin 2018, par Pavel Koshevoy
    lavfi/atempo : raise max tempo limit (v2)
    
    • [DH] doc/filters.texi
    • [DH] libavfilter/af_atempo.c
  • Limit number of Start-Process running in powershell

    4 mai 2018, par Ahhhhhhhhhhhhhdfgbv

    I have tried to limit the number of Start-Process running from a Powershell, but I can’t seem to get it to work.

    I tried to follow this process : https://exchange12rocks.org/2015/05/24/how-to-limit-a-number-of-powershell-jobs-running-simultaneously/ and Run N parallel jobs in powershell

    But these are for Jobs not Processes, and I would like to remove the -Wait from the Start-Process

    My concern with the script is that if there are 1000 audio files in the folder, then FFMpeg would crash the system.


    # get the folder for conversion
    function mbAudioConvert {
       [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
       [System.Windows.Forms.Application]::EnableVisualStyles()

       $fileBrowser = New-Object System.Windows.Forms.FolderBrowserDialog
       $fileBrowser.SelectedPath = "B:\"
       $fileBrowser.ShowNewFolderButton = $false
       $fileBrowser.Description = "Select the folder with the audio which you wish to convert to Avid DNxHD 120 25P 48kHz"

       $mbLoop     = $true
       $mbCount    = 0001
       $mbMaxJob   = 4

       while( $mbLoop ) {
           if( $fileBrowser.ShowDialog() -eq "OK" ) {
               $mbLoop     = $false


               $mbImage    = ( Get-Item -Path "C:\Users\user\Desktop\lib\AudioOnly.jpg" )
               $mbff32     = ( Get-Item -Path "C:\Users\user\Desktop\lib\ffmpeg32.exe" )
               $mbff64     = ( Get-Item -Path "C:\Users\user\Desktop\lib\ffmpeg64.exe" )

               $mbFolder   = $fileBrowser.SelectedPath
               $mbItemInc  = ( ls $mbFolder\* -Include *.mp3, *.MP3, *.wav*, *.WAV*, *.ogg, *.OGG, *.wma, *.WMA, *.flac, *.FLAC, *.m4a, *.M4a )
               $mbProgress = ( Get-ChildItem -Path $mbItemInc )

               $mbHasRaw   = ( $mbFolder + "\RAW" )

               if( !( Test-Path -Path $mbHasRaw ) ) {
                   # force create a RAW folder if it does not exist
                   New-Item -ItemType Directory -Force -Path "$mbHasRaw"
               }


               foreach( $mbItem in $mbItemInc ) {

                   $mbCheck    = $false

                   # output the progress
                   # Suggestion: You might want to consider updating this after starting the job and do the final update after running ex. Get-Job | Wait-Job to make the progress-bar stay until all processes are finished
                   #Write-Progress -Activity "Counting files for conversion" -status "Currently processing: $mbCount" -percentComplete ($mbCount / $mbItemInc.count*100)

                   # limit the run number
                   while ($mbCheck -eq $false) {

                       if( (Get-Job -State 'Running').count -lt $mbMaxJob) {

                           $mbScriptBlock = {
                               $mbItemName = $using:mbItem.BaseName

                               $mbNewItem  = ( $using:mbFolder + "\RAW\" + $mbItemName + ".mov" )
                               $mbArgs     = " -loop 1 -i $using:mbImage -i $using:mbItem -shortest -c:v dnxhd -b:v 120M -s 1920x1080 -pix_fmt yuv422p -r 25 -c:a pcm_s16le -ar 48k -af loudnorm=I=-12 $mbNewItem"

                               Start-Process -FilePath $using:mbff32 -ArgumentList $mbArgs -NoNewWindow -Wait
                           }

                           Start-Job -ScriptBlock $mbScriptBlock

                           #The job-thread doesn't know about $mbCount, better to increment it after starting the job
                           $mbCount++
                           $mbCheck  = $true          
                       }

                   }
               }

           } else {

               $mbResponse = [System.Windows.Forms.MessageBox]::Show("You have exited out of the automation process!", "User has cancelled")
               if( $mbResponse -eq "OK" ) {
                   return
               }
           }
       }

       $fileBrowser.SelectedPath
       $fileBrowser.Dispose()
    }

    # call to function
    mbAudioConvert