Recherche avancée

Médias (91)

Autres articles (90)

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

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

  • Get ffmpeg info from Pipe (stdout)

    12 août 2020, par Peter Silie

    I want to call ffmpeg to get the duration of a video file. When using the command in OSX Terminal everything works fine :

    


    ffmpeg -i MyVideo.MOV 2>&1 | grep "Duration"


    


    I get this :

    


      Duration: 00:01:23.53, start: 0.000000, bitrate: 39822 kb/s


    


    It is perfect for me. But now I tried this call from within my code :

    


    func shell(launchPath: String, arguments: [String]) -> String
{
    let task = Process()
    task.launchPath = launchPath
    task.arguments  = arguments

    let pipe = Pipe()
    task.standardOutput = pipe
    
    do {
        try task.run()
        // task.launch() till 10.12, but now catchable!
    } catch let error as NSError {
        print(error.localizedDescription)
        return ""
    }
    
    let data = pipe.fileHandleForReading.readDataToEndOfFile()
    let output: String = NSString(data: data, encoding: String.Encoding.utf8.rawValue)! as String

    return output
}


    


    This code works fine for all other external commands. But here I get error :

    


    [NULL @ 0x107808800] Unable to find a suitable output format for '2>&1'
2>&1: Invalid argument


    


    I defined the arguments for ffmpeg like this :

    


    let arguments = ["-i", video.path, "2>&1", "|", "grep \"Duration\"" ]


    


    Even if I put them all in one argument as a larger string, it doesn't work. Using "pipe:1" instead of "2>&1" and rest of arguments results also in an error.

    


    Any idea, how I get it to work ?

    


  • Evolution #4120 : Ajouter l’info de numéro de nouvelle version directement dans le bouton "Mettre ...

    29 mars 2018, par Peet du
  • fftools/ffprobe : Print more Stereo 3D info from side data

    30 mai 2024, par Derek Buitenhuis
    fftools/ffprobe : Print more Stereo 3D info from side data
    

    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

    • [DH] fftools/ffprobe.c
    • [DH] tests/ref/fate/matroska-spherical-mono
    • [DH] tests/ref/fate/matroska-spherical-mono-remux
    • [DH] tests/ref/fate/matroska-stereo_mode
    • [DH] tests/ref/fate/matroska-vp8-alpha-remux
    • [DH] tests/ref/fate/mov-spherical-mono