Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (62)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La 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 (...)

  • 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 (8703)

  • libavformat/segment : change segment_list_size behavior to match hls_list_size behavior.

    9 juillet 2014, par Simon Thelen
    libavformat/segment : change segment_list_size behavior to match hls_list_size behavior.
    

    Make the segment muxer keep segment_list_size segments instead of
    segment_list_size + 1 segments. This patch also changes the
    documentation for segment_list_size to reduce possible confusion over
    how many segments are kept.

    this allows the segment list to
    be limited to containing only one segment which used to be impossible
    because a segment_list_size of 0 kept all the segments and a
    segment_list_size of 1 kept 2 segments.

    Signed-off-by : Simon Thelen <ffmpeg-dev@c-14.de>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] doc/muxers.texi
    • [DH] libavformat/segment.c
  • Limit number of Start-Process running in poweshell

    7 mars 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
  • 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