Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (82)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (5221)

  • xuggler encoder Java

    10 novembre 2014, par Gagan93

    This is a simple code which I am using to convert an .mp4 file to .mp3 file.

    import com.xuggle.mediatool.IMediaReader;
    import com.xuggle.mediatool.IMediaWriter;
    import com.xuggle.mediatool.ToolFactory;
    import com.xuggle.xuggler.ICodec;
    public class VideoToAudio {
       public void convertVideoToAudio(){
       IMediaReader reader = ToolFactory.makeReader("D://saada.mp4");
       IMediaWriter writer = ToolFactory.makeWriter("D://a.mp3",reader);

       int sampleRate = 44100;
       int channels = 1;

       writer.addAudioStream(0, 0, ICodec.ID.CODEC_ID_MP3, channels, sampleRate);
        reader.addListener(writer);
       while (reader.readPacket() == null);
       }

       public static void main(String [] args){
       VideoToAudio vta = new VideoToAudio();
       try{
           vta.convertVideoToAudio();
       }
       catch(Exception e){
           System.out.println("Could not open video file");
       }
       }

    I am getting the following error

    [main] ERROR org.ffmpeg - [mp3 @ 04CBF8A0] Invalid audio stream. Exactly one MP3 audio stream is required.
    [main] ERROR com.xuggle.xuggler - Error : could not write header for container (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:827)
    Could not open video file

    Any suggestions/ help ?

  • FFmpeg video metadata change

    2 novembre 2014, par Warren

    I am trying to change the video stream metadata. See (Change This Metadata) below. I can change the title of the movie ok but not any others. What is the ffmpeg line to change this.

    This line below changes "Title Of The Movie" only

    ffmpeg -i Input.mkv -metadata title="New Title" -c:v copy -c:a copy -c:s copy Output.mkv

    Input #0, matroska,webm, from 'Input.mkv':
    Metadata:
    title           : Title Of The Movie
    encoder         : libebml v1.2.3 + libmatroska v1.3.0
    creation_time   : 2014-08-02 12:58:30
    Duration: 02:15:54.21, start: 0.000000, bitrate: 8177 kb/s
    Chapter #0.0: start 0.000000, end 208.666778
    Metadata:
     title           : Chapter 01
    Chapter #0.1: start 208.666778, end 811.727578
    Metadata:
     title           : Chapter 02
    Chapter #0.2: start 811.727578, end 1077.868444
    Metadata:
     title           : Chapter 03
    Chapter #0.3: start 1077.868444, end 1345.302289
    Metadata:
     title           : Chapter 04
    Chapter #0.4: start 1345.302289, end 2000.415067
    Metadata:
     title           : Chapter 05
    Chapter #0.5: start 2000.415067, end 2487.276444
    Metadata:
     title           : Chapter 06
    Chapter #0.6: start 2487.276444, end 3097.302533
    Metadata:
     title           : Chapter 07
    Chapter #0.7: start 3097.302533, end 3503.958778
    Metadata:
     title           : Chapter 08
    Chapter #0.8: start 3503.958778, end 4060.347956
    Metadata:
     title           : Chapter 09
    Chapter #0.9: start 4060.347956, end 4582.202622
    Metadata:
     title           : Chapter 10
    Chapter #0.10: start 4582.202622, end 5083.078000
    Metadata:
     title           : Chapter 11
    Chapter #0.11: start 5083.078000, end 5537.698822
    Metadata:
     title           : Chapter 12
    Chapter #0.12: start 5537.698822, end 5826.612444
    Metadata:
     title           : Chapter 13
    Chapter #0.13: start 5826.612444, end 6553.088200
    Metadata:
     title           : Chapter 14
    Chapter #0.14: start 6553.088200, end 6903.730156
    Metadata:
     title           : Chapter 15
    Chapter #0.15: start 6903.730156, end 7271.055444
    Metadata:
     title           : Chapter 16
    Chapter #0.16: start 7271.055444, end 7582.241333
    Metadata:
     title           : Chapter 17
    Chapter #0.17: start 7582.241333, end 8153.937444
    Metadata:
     title           : Chapter 18
    Chapter #0.18: start 8153.937444, end 8154.208000
    Metadata:
     title           : Chapter 19
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
     title           : Change This Metadata
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
     title           : Eng
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
     title           : Eng
  • C# console app to process FFMPEG jpg stream output

    15 septembre 2014, par Gabriel Barzola

    I am looking some tip or idea in order to process an stream of jpg files created by a fFMPEG command.

    There is a way to split the outpuStream to capture each jpg file ?

    Here is the command
    ffmpeg -i rtsp ://somertsp:554 -an -f image2pipe -vf fps=fps=5 -

    I execute that command using a C# application.

    Here is a example code

    class Program
    {
       private static BackgroundWorker worker;
       private static MemoryStream buffer = new MemoryStream();
       private static BinaryWriter bufferWriter = new BinaryWriter(buffer);

       static void Main(string[] args)
       {
           string file = @"C:\ffmpeg\bin\ffmpeg.exe";
           string arguments = @"-i rtsp://xxx:yyy@v5demo.wavestore.com:554/rtsp/00004 -an -f image2pipe -vf fps=fps=5 -qscale 0 -";

           var processStartInfo = new ProcessStartInfo(file, arguments);
           processStartInfo.CreateNoWindow = false;
           processStartInfo.RedirectStandardError = true;
           processStartInfo.RedirectStandardOutput = true;
           processStartInfo.UseShellExecute = false;

           worker = new BackgroundWorker();
           worker.DoWork += worker_DoWork;
           worker.WorkerReportsProgress = true;
           worker.ProgressChanged += worker_ProgressChanged;

           var process = new Process();
           process.StartInfo = processStartInfo;
           process.Start();

           worker.RunWorkerAsync(process);
           process.WaitForExit();

       }

       static void worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
       {
           // save the image
       }

       static void worker_DoWork(object sender, DoWorkEventArgs e)
       {
           try
           {

               var internalWorker = sender as BackgroundWorker;
               Process p = e.Argument as Process;
               buffer = new MemoryStream();
               bufferWriter = new BinaryWriter(buffer);
               using (var reader = new BinaryReader(p.StandardOutput.BaseStream))
               {
                   while (true)
                   {
                      //get the jpg image
                   }
               }

           }
           catch (Exception ex)
           {
             // Log the error, continue processing the live stream
           }
       }        
    }