Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (52)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

Sur d’autres sites (5894)

  • What is the full code to execute a ffmpeg command in java [on hold]

    16 janvier 2015, par user2303069

    I did the following and only got 0kb output file :
    File encodingFile = new File("c :\ffmpeg\bin\output.mp4") ;
    encodingFile.createNewFile() ;

                       Process process = new ProcessBuilder("c:\\ffmpeg\\bin\\ffmpeg.exe", "-i", "c:\\ffmpeg\\bin\\input.mp4",
                               "-y", "-s", "1440" + "x" + "-1", "-vcodec", "libx264", "c:\\ffmpeg\\bin\\outfile.mp4").start();

                       is = process.getInputStream();

                       byte[] resultBuff = new byte[0];
                       byte[] buff = new byte[1024];
                       int k = -1;
                       while((k = is.read(buff, 0, buff.length)) > -1) {
                           byte[] tbuff = new byte[resultBuff.length + k]; // temp buffer size = bytes already read + bytes last read
                           System.arraycopy(resultBuff, 0, tbuff, 0, resultBuff.length); // copy previous bytes
                           System.arraycopy(buff, 0, tbuff, resultBuff.length, k);  // copy current lot
                           resultBuff = tbuff; // call the temp buffer as your result buff
                       }
                       fos=new FileOutputStream(encodingFile);
                       fos.write(resultBuff, 0,resultBuff.length );
                       gui.textArea1.append("\n"+resultBuff.length + " bytes read.");
                       //return resultBuff;
                       try {
                           // if you want to wait for the process to finish
                           process.waitFor();
                            gui.textArea1.append("\n+++++++Finished while converting!++++++++\n");
                       } catch (InterruptedException ex) {
                            gui.textArea1.append("\nInterruptedException: "+ex.getMessage());
                       }

                   }catch(IOException ex){
                       gui.textArea1.append("\nIOException converting: "+ex.getMessage());
                   }finally{
                       try{
                           if(is!=null){
                               is.close();
                           }
                           if(fos!=null){
                               fos.close();
                           }
                       }catch(IOException ioe){
                           gui.textArea1.append("\nClosing streams while converting:"+ioe.getMessage());
                       }
                   }

    My question is how to get back a converted file using ffmpeg in java. So far I got empty files. It’s like nothing happens during the converting process. I got the code from web(here) and modified it according to my desire so can you just tell me how to do this correctly ? Thanks a lot.

  • FFmpeg avformat_open_input not working : Invalid data found when processing input

    2 novembre 2016, par John_Sheares

    This is my first time using FFmpeg. Every type of media file that I try to open with avformat_open_input, returns "Invalid data found when processing input". I am using 32bit FFmpeg Build Version : 92de2c2. I setup my VS2015 project according to this answer : Use FFmpeg in Visual Studio. What could be going wrong with this code ?

    #include "stdafx.h"
    #include

    extern "C"
    {
       #include "libavcodec/avcodec.h"
       #include <libavformat></libavformat>avformat.h>
       #include <libavutil></libavutil>avutil.h>
    }

    int main(int argc, char *argv[])
    {
       AVFormatContext *pFormatCtx = NULL;
       avcodec_register_all();

       const char* filename = "d:\\a.mp4";
       int ret = avformat_open_input(&amp;pFormatCtx, filename, NULL, NULL);
       if (ret != 0) {
           char buff[256];
           av_strerror(ret, buff, 256);
           printf(buff);
           return -1;
       }
    }
  • What is wrong with my FFMPEG command for streaming ? [duplicate]

    18 février 2017, par Muhammad Umer

    I am trying to stream to Facebook by using one image, but I get

    Packets are not in the proper order with respect to DTS7kbits/s<br />
    av_interleaved_write_frame(): Invalid argument

    This is the command I am writing :

    ffmpeg \
    -re -y \
    -loop 1 \
    -f image2 \
    -i ./maxresdefault.jpg \
    -i ./audio.mp3 \
    -b:a 128k \
    -c:a aac -strict experimental \
    -vcodec libx264 \
    -g 30 \
    -r 30 \
    -f flv \
    "rtmp://rtmp-api.facebook.com:80/rtmp/..."