Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (37)

  • 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

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7074)

  • doc : Update paths to match new examples location

    18 mars 2016, par Diego Biurrun
    doc : Update paths to match new examples location
    
    • [DBH] .gitignore
    • [DBH] doc/Doxyfile
    • [DBH] doc/build_system.txt
    • [DBH] doc/developer.texi
  • PHP ffmpeg output location

    18 janvier 2016, par Mick Jack

    My website allow users to upload video files to the server. Original file will be move to folder "Original" ffmpeg will compress the video and store the video in 480p folder. how to i setup ffmpeg so that it will store output of the compressed video file into original/480p ?

    Partial code of upload.php

    $target_dir = "Original/"; //where you want to upload the files to
    $target_file = $target_dir.basename($_FILES['file']['name']);
    $fileType = pathinfo($target_file, PATHINFO_EXTENSION);
    $newFileName = $target_dir.sha1(pathinfo(basename($_FILES['file']['name']), PATHINFO_FILENAME)).'480p'.'.'.$fileType;
    //$newFileName = $target_dir.sha1(pathinfo(basename($_FILES['file']['name']), PATHINFO_FILENAME)).'-'.time().'.'.$fileType;
    move_uploaded_file($_FILES['file']['tmp_name'], $newFileName);

    using this FFMPEG command

    shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -y -i ".$newFileName." -c:v libx264 -s:v 854x480 -c:a copy \"480p\\{$newFileName}\" > logfile.txt 2>&1");

    i get the error
    480p\Original/ffbaf58f1231628f9ac2a583f038b51719006ec6480p.mp4 : No such file or directory

    i will like the output to be stored in original/480p/compressed-video-file

  • FFmpeg NaCl module avformat_open_input (on rtsp stream) returns -5 : I/O error

    8 janvier 2016, par Taimoor Alam

    I want to create an RTSP player in Chrome PNaCl.

    I have successfully built the ffmpeg naclport including the following networking flags in the build.sh file for the ffmpeg NaCl port.

    —enable network —enable-protocols —enable-demuxer=rtsp —enable-demux=rtp —enable-demuxer=sdp —enable-decoder=h264

    Furthermore, I have successfully coded and the linked the ffmpeg NaCl port in my own PNaCl module. I have included the following network permissions in the manifest.json file :

    "permissions": [
    {
       "socket": [
           "tcp-listen:*:*",
           "tcp-connect:*:*",
           "resolve-host:*:*",
           "udp-bind:*:*",
           "udp-send-to:*:*"
       ],
    }

    Now once I run the following code, in PNaCl, the avformat_open_input(...) returns -5 or I/O Error :

       AVFormatContext* formatContext = avformat_alloc_context();

       av_register_all();

       avformat_network_init();

       const char * stream_path = "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov";

       int result = avformat_open_input(&formatContext, stream_path ,NULL,NULL);

       if(result< 0){

           PostMessage("input not opened, result: ");

           PostMessage(result);

       }else{

         PostMessage(std::string("input successfully opened"));

       }

    What am I possibly doing wrong, and why can’t the PNaCl module access the RTSP stream ?

    PS. This is a similar question, but it gives no definitive answer.