Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (93)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

Sur d’autres sites (6403)

  • Using an array of strings as a function parameter in a function that builds another array

    22 octobre 2019, par NCrusher

    I start with an empty array :

    var ffmpegFilters = [String]()

    I have a button that should start an ffmpeg process when I click it :

    @IBAction func startConversionClicked(_ sender: Any) {
       //buildFfmpegString()
       ffmpegConvert(inputPath: inputFilePath, filters: ffmpegFilters, outputPath: "outputFilePath")
    }

    The function with the process looks like this :

    func ffmpegConvert(inputPath: String, filters: String, outputPath: String) {
       guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else { return }
       do {
           let convertTask: Process = Process()
           convertTask.launchPath = launchPath
           convertTask.arguments = [
               "-i", inputPath,
               filters,
               outputPath
           ]
           convertTask.standardInput = FileHandle.nullDevice
           convertTask.launch()
           convertTask.waitUntilExit()
       }
    }

    the ffmpegFilters variable array is defined in another function :

    func conversionSelection() {
       if inputFileUrl != nil {
           let conversionChoice = conversionOptionsPopup.indexOfSelectedItem
           switch conversionChoice {
               case 1 :
                   outputExtension = ".mp3"
                   ffmpegFilters = ["-c:a libmp3lame", "-ac 1", "-ar 22050", "-q:a 9"]
               case 2 :
                   outputExtension = ".mp3"
                   ffmpegFilters = ["-c:a libmp3lame", "-ac 2", "-ar 44100", "-q:a 5"]
               case 3 :
                   outputExtension = ".mp3"
                   ffmpegFilters = ["-c:a libmp3lame", "-ac 1", "-ar 22050", "-b:a 32k"]
               case 4:
                   outputExtension = ".flac"
                   ffmpegFilters = ["-c:a flac"]
               default :
                   outputExtension = ".m4b"
                   ffmpegFilters = ["-c copy"]
           }
       }
    }

    So my array of strings is being used as an item in another array of strings.
    When I do this, my @IBAction at the top there gives me an error :

    Cannot convert value of type ’[String]’ to expected argument type
    ’String’

    And I’m not sure how to fix that. It’s really important I get the formatting of these ffmpeg arguments correct, because right now my project is stuck due to ffmpeg not liking the arguments Swift is passing to it in this process, so I’m trying to make everything relating to the arguments as bullet-proof as I can.

  • log : Unbreak windows support

    3 avril 2014, par Luca Barbato
    log : Unbreak windows support
    

    Add the missing define.

    • [DH] libavutil/log.c
  • libavformat/dashdec : Fix issue with dash on Windows

    8 octobre 2020, par Christopher Degawa
    libavformat/dashdec : Fix issue with dash on Windows
    

    Use xmlFree instead of av_freep

    snip from libxml2 :

    * xmlGetProp :
    ...
    * Returns the attribute value or NULL if not found.
    * It's up to the caller to free the memory with xmlFree().

    According to libxml2, you are supposed to use xmlFree instead of free
    on the pointer returned by it, and also using av_freep on Windows will
    call _aligned_free instead of normal free, causing _aligned_free to raise
    SIGTRAP and crashing ffmpeg and ffplay.

    Signed-off-by : Christopher Degawa <ccom@randomderp.com>

    • [DH] libavformat/dashdec.c