Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (100)

  • 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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Les formats acceptés

    28 janvier 2010, par

    Les 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
    dnn/openvino : add input/output name info
    

    show all input/output names when the input or output name not correct

    Signed-off-by : Ting Fu <ting.fu@intel.com>
    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_openvino.c
  • How to get info on a partial incoming mov file in javascript ? [closed]

    30 août 2020, par David542

    I'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 :

    &#xA;

      &#xA;
    • 29.97 fps
    • &#xA;

    • Video bitrate > X
    • &#xA;

    • Codec of com.apple.finalcutstudio.prores
    • &#xA;

    &#xA;

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

    &#xA;

      &#xA;
    1. A user clicks the upload button and selects their file.
    2. &#xA;

    3. We upload the first 1MB of that file to our server — check that using ffmpeg (how to ignore errors or something with ffmpeg ?)
    4. &#xA;

    5. 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.
    6. &#xA;

    &#xA;

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

    &#xA;

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

    &#xA;

    ffmpeg -i MyVideo.MOV 2>&amp;1 | grep "Duration"&#xA;

    &#xA;

    I get this :

    &#xA;

      Duration: 00:01:23.53, start: 0.000000, bitrate: 39822 kb/s&#xA;

    &#xA;

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

    &#xA;

    func shell(launchPath: String, arguments: [String]) -> String&#xA;{&#xA;    let task = Process()&#xA;    task.launchPath = launchPath&#xA;    task.arguments  = arguments&#xA;&#xA;    let pipe = Pipe()&#xA;    task.standardOutput = pipe&#xA;    &#xA;    do {&#xA;        try task.run()&#xA;        // task.launch() till 10.12, but now catchable!&#xA;    } catch let error as NSError {&#xA;        print(error.localizedDescription)&#xA;        return ""&#xA;    }&#xA;    &#xA;    let data = pipe.fileHandleForReading.readDataToEndOfFile()&#xA;    let output: String = NSString(data: data, encoding: String.Encoding.utf8.rawValue)! as String&#xA;&#xA;    return output&#xA;}&#xA;

    &#xA;

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

    &#xA;

    [NULL @ 0x107808800] Unable to find a suitable output format for &#x27;2>&amp;1&#x27;&#xA;2>&amp;1: Invalid argument&#xA;

    &#xA;

    I defined the arguments for ffmpeg like this :

    &#xA;

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

    &#xA;

    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.

    &#xA;

    Any idea, how I get it to work ?

    &#xA;