
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (90)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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, parPré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 2013Puis-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 SilieI 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 duc’est fait avec https://zone.spip.org/trac/spip-zone/changeset/109727
-
fftools/ffprobe : Print more Stereo 3D info from side data
30 mai 2024, par Derek Buitenhuisfftools/ffprobe : Print more Stereo 3D info from side data
Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>