Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (79)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6670)

  • ffmpeg running on windows with java

    24 décembre 2013, par Karn_way

    I have simple test class as

    public static void main(String[] args) throws IOException {

            String[] line = {"ffmpeg -i D:\\hadoop-video\\testVideo\\xyz.mp4 %d.png"};
            Runtime.getRuntime().exec(line);

       }

    when I try to run this I am getting

    Exception in thread "main" java.io.IOException: Cannot run program "ffmpeg -i D:/hadoop-video/testVideo/xyz.mp4 %d.png": CreateProcess error=2, The system cannot find the file specified
       at java.lang.ProcessBuilder.start(Unknown Source)
       at java.lang.Runtime.exec(Unknown Source)
       at java.lang.Runtime.exec(Unknown Source)
       at ImageTest.main(ImageTest.java:13)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified

    however file is present on my windows7 machine with location

    D:\hadoop-video\testVideo\xyz.mp4

    i tried removing .mp4 and then run also not working . please suggest what might be wrong

  • Why do I get different codecs on Windows and Linux with same code ?

    27 janvier 2016, par user3277340

    I am using the API version of FFMPEG to generate a MP4 file from a series of images. I specify the output by calling

    AVFormatContext *oc = NULL ;
    avformat_alloc_output_context2 (&oc,NULL,"mp4",NULL) ;

    Running the exact same code on Windows and Linux I get different codecs assigned. On Windows, the value of oc->oformat->video_code is AV_CODEC_ID_H264 (28), but on Linux I get AV_CODEC_ID_MPEG4.

    I tracked this down because on Windows my calls to avcodec_encode_video2(.,.,.,&got_packet) were always returning got_packet=0 so I never called av_interleaved_write_frame. I added a NULL AVFrame at the end to flush the video. But it was very small and did not contain the images I expected to see there.

    But on Linux everything worked just fine. So I went ahead and manually changed the value of oc->oformat->video_code and I got the expected results.

    My questions :

    1) Why do I get different codec types on different platforms with the same code ? Is there a parameter I need to set to force MPEG4 ?

    2) Is it "legal" to change this parameter after the call to avformat_alloc_output_context2 ? My concern is that "oc" has been properly initialized and, with the change, something may be inconsistent.

    3) Is there a way to force the MPEG4 codec on any machine ?

    Thanks.

  • Calling external applications from windows service [duplicate]

    3 novembre 2016, par vvj

    This question already has an answer here :

    I have a windows service as part of my project which has to communicate with external applications to process the files. One of the external application I am using is FFMPEG.exe.

    My problem is when I call FFmpeg or other applications as the new process. After starting the process, it is getting idle. it will neither get execute successfully nor get an exit.

    I am facing this problem with multiple external exe’s and it happens only while calling from the windows service. When I tried the same block of code from a windows forms application, it works perfectly. Below is the sample code I used. Could anyone tell me whats wrong with this.?

    Process FFMPEGProcess = new Process();
    FFMPEGProcess.StartInfo.FileName =@"ffmpeg.exe";                                  
    string strArgument = @" -i  \\MachineName\video\file.mp4 -y -s 176x132 -r 0.2 \\MachineName\Image\File%4d.jpg";
    FFMPEGProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    FFMPEGProcess.StartInfo.CreateNoWindow = true;
    FFMPEGProcess.StartInfo.UseShellExecute = true;
    FFMPEGProcess.StartInfo.Arguments = strArgument;
    FFMPEGProcess.Start();            
    FFMPEGProcess.WaitForExit();