
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (100)
-
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 -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (7137)
-
dnn/openvino : add input/output name info
9 septembre 2020, par Ting Fu -
How to get info on a partial incoming mov file in javascript ? [closed]
30 août 2020, par David542I'm not sure if this is more a JavaScript question or ffmpeg, but suppose I have a scenario where a user is uploading a 100GB file. And, before they upload it (or actually, as soon as we detect the first few frames or whatever), we want to make sure that it is a "valid" file — let's say for this question we want to verify that it is :


- 

- 29.97 fps
- Video bitrate > X
- Codec of
com.apple.finalcutstudio.prores








What would be the best way to do this ? I was thinking something like :


- 

- A user clicks the upload button and selects their file.
- We upload the first 1MB of that file to our server — check that using ffmpeg (how to ignore errors or something with ffmpeg ?)
- If the file passes our initial checks we upload the entire video file. If not, we raise a warning to the end user and stop the upload.








How could this process be done ? I am seeking a JavaScript snippet (JS Fiddle ?) and a backend snippet (to receive the partial input and issue the ffmpeg commands).


-
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 ?