Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (99)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • Revision 87599 : $GLOBALS[’visiteur_session’] au lieu de global $auteur_session ; et ...

    22 février 2015, par kent1@… — Log

    $GLOBALSvisiteur_session ? au lieu de global $auteur_session ; et $auteur_session
    Indentation / Formatage

  • ffmpeg scheduled batch file exclusion list

    4 avril 2018, par MrZoops

    I have the following batch file created to run on a schedule. It will auto encode the audio to aac in my main media folder. Everything is working but now I need it to do 2 more things :

    -Delete the original upon completion

    - Set it so that the next time it runs, it does not try to convert the already converted file.

    Is that possible ? How would that look ? Is there a way to "disregard" filenames with ’CONVERTED’ in them ?

    for /r "C:\Users\USER\Desktop\TEST" %%a in ("*.mkv") do ffmpeg -i "%%a" -vcodec copy -acodec aac -ac 2 -ab 256K %%~dpnaCONVERTED.mkv
  • ffmpeg produces bad output when called from execve in c++

    31 mai 2016, par Arheisel

    im writing a c++ program that involves ffmpeg being called from a c++ program. a couple of days ago i got it working using std::system

    std::system("ffmpeg -threads auto -y -r 1.74659 -i /mnt/ev_ramdsk/1/%05d-capture.jpg -px_fmt yuv420p -preset ultrafast -r 10 /mnt/ev_ramdsk/1/video.mp4");

    but this only worked once now this produces .mp4 videos of 8MB or so that cannot be played anywhere.. so because of a suggestion in a previous question i moved to execve.

    Here is my code

    child_pid = fork();
           if(child_pid < 0){
               syslog(LOG_ERR, "ERROR: ffmpeg forking failed");
               return false;
           }
           else if(child_pid > 0){
               syslog(LOG_DEBUG, "DEBUG: forking succeeded, pid: %d", child_pid);
           }
           else if(child_pid == 0){
               char *newargv[16];
               for(int i=0; i < 15; i++) newargv[i] = (char *)malloc(sizeof(char) * 60); //allocate the array in memory
               strcpy(newargv[0], "/usr/bin/ffmpeg");
               strcpy(newargv[1], "-threads");
               strcpy(newargv[2], "auto");
               strcpy(newargv[3], "-y");
               strcpy(newargv[4], "-framerate");
               tempSS << fps;
               strcpy(newargv[5], tempSS.str().c_str());
               tempSS.str(std::string());
               strcpy(newargv[6], "-i");
               strcpy(newargv[7], std::string(conf->dir_ram + dest + "%05d-capture.jpg").c_str());
               strcpy(newargv[8], "-pix_fmt");
               strcpy(newargv[9], "yuv420p");
               strcpy(newargv[10], "-preset");
               strcpy(newargv[11], "ultrafast");
               strcpy(newargv[12], "-r");
               strcpy(newargv[13], "25");
               strcpy(newargv[14], std::string(conf->dir_ram + dest + "video.mp4").c_str());
               newargv[15] = NULL;

               for(int i=0; i < 15; i++){
                   tempSS << "newargv[" << i << "] = \"" << newargv[i] << "\", ";
               }
               syslog(LOG_DEBUG, "DEBUG:newargv: %s", tempSS.str().c_str());
               tempSS.str(std::string());

               char *newenviron[] = { NULL };

               if(execve(newargv[0], newargv, newenviron) == -1){
                   syslog(LOG_ERR, "ERROR: execve returned -1");
                   exit(EXIT_SUCCESS);
               }
           }

           wpid = wait(&status);
           syslog(LOG_DEBUG, "DEBUG: ffmpeg child terminated, pid: %d, status: %d", wpid, status);

    the output of syslog is :

    May 28 00:25:03 SERVER dt_ev_maker[10471]: DEBUG: forking succeeded, pid: 10658
    May 28 00:25:03 SERVER dt_ev_maker[10658]: DEBUG:newargv:
    newargv[0] = "/usr/bin/ffmpeg",
    newargv[1] = "-threads",
    newargv[2] = "auto",
    newargv[3] = "-y",
    newargv[4] = "-framerate",
    newargv[5] = "1.45097",
    newargv[6] = "-i",
    newargv[7] = "/mnt/ev_ramdsk/1/%05d-capture.jpg",
    newargv[8] = "-pix_fmt",
    newargv[9] = "yuv420p",
    newargv[10] = "-preset",
    newargv[11] = "ultrafast",
    newargv[12] = "-r",
    newargv[13] = "25",
    newargv[14] = "/mnt/ev_ramdsk/1/video.mp4",
    May 28 00:25:03 SERVER dt_ev_maker[10471]: DEBUG: ffmpeg child terminated, pid: 10658, status: 256

    in this case the video has about 90B size and is also corrupted.

    NOTE : if i run the same command from the command line the video can be played normally.

    what am i doing wrong ?

    Thanks in advance !

    EDIT

    Thanks to ouroborus (changes submitted above) i got it to make 18MB videos, but i cant play them.