Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (89)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (8656)

  • Concatenate / Join MP4 files using ffmpeg and windows command line batch NOT LINUX

    17 juillet 2014, par julesverne

    I’ve written a batch script that attempts to take a generic introductory title video (MP4) that runs for 12 seconds and attaches it to the beginning of 4 other MP4 videos (same video but each has a different language audio track)

    According to ffmpeg syntax here : http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files the concat demuxer needs to be run from a text file that looks like this :

    # this is a comment
    file '/path/to/file1'
    file '/path/to/file2'
    file '/path/to/file3'

    I believe everything in my script up until the point of joining the files appears to be working correctly. But I get this error :

    [concat @ 04177d00] Line 2: unknown keyword ''C:\Users\Joe\1May\session3\readyforfinalconversion\frenchfile.mp4'
    filelistFrench.txt: Invalid data found when processing input
    [concat @ 03b70a80] Line 2: unknown keyword ''C:\Users\Joe\1May\session3\readyforfinalconversion\spanishfile.mp4'
    filelistSpanish.txt: Invalid data found when processing input
    [concat @ 0211b960] Line 2: unknown keyword ''C:\Users\Joe\1May\session3\readyforfinalconversion\basquefile.mp4'
    filelistBasque.txt: Invalid data found when processing input
    [concat @ 03a20a80] Line 2: unknown keyword ''C:\Users\Joe\1May\session3\readyforfinalconversion\Englishfile.mp4'
    filelistEnglish.txt: Invalid data found when processing input

    I believe the issue lies in the text file I’m creating. Please excuse my n00b ignorance, but sometimes new script makers like myself get confused about developer jargon and may take things literally.

    So when I look at that example text file they gave, am I correct in thinking THIS is what my text file should look like ?

    # this is a comment
    Titlefile.mp4 'C:\Users\Joe\1May\session3\readyforfinalconversion\Titlefile.mp4'
    Englishfile.mp4 'C:\Users\Joe\1May\session3\readyforfinalconversion\Englishfile.mp4'

    Again, am I being too literal ? are the quotations correct ? Are the slashes correct ? In the example they provide the slashes in the path are / instead of normal windows \ . I’ll provide the entire script in case it helps.

    @echo off

    setlocal EnableDelayedExpansion

    rem Create an array of languages
    set i=0
    for %%a in (French Spanish Basque English) do (
      set /A i+=1
      set term[!i!]=%%a
    )

    rem Get the title video file name from user

    set /p titlevideofilename=What is the title video file

    name?

    rem create a path variable for the title video file

    set pathtotitlevideo=%~dp0%titlevideofilename%

    rem Get the names of the different language video files to append to the title video
    rem create a path variable for each different language video files

    for /L %%i in (1,1,4) do (
      set /p language[%%i]=what is the name of the !term

    [%%i]! file you want to append after the title video?
      set pathtofile[%%i]=%~dp0!language[%%i]!
    )

    rem create data file for ffmpeg based on variable data

    for /L %%i in (1,1,4) do (
       echo # this is a comment>>filelist!term[%

    %i]!.txt
       echo file '%pathtotitlevideo%'>>filelist!term[%

    %i]!.txt
       echo file '!pathtofile[%%i]!'>>filelist!term[%

    %i]!.txt
    )

    cls

    rem join files using ffmpeg concat option

    for /L %%i in (1,1,4) do (
      c:\ffmpeg\ffmpeg\bin\ffmpeg.exe -loglevel error -f

    concat -i filelist!term[%%i]!.txt -c copy !language[%

    %i]!.!term[%%i]!.withtitle.mp4
    )

    endlocal

    :eof
    exit

    EDIT
    Thanks to @foxidrive making me look at the simplicity of it... it occurred to me that Apparently I wasn’t being literal enough. I made these 3 changes and script works perfectly now
    1 : "file" in there example literally meant the word "file"
    2 : needed the use of single quotes not double quotes as it shows in there example.
    3 : Used "\" instead of "/" as they have in there example.

    So NOW my code to create the text files looks like this :

    rem create data file for ffmpeg based on variable data

    for /L %%i in (1,1,4) do (
       echo # this is a comment>>filelist!term[%

    %i]!.txt
       echo file '%pathtotitlevideo%'>>filelist!term[%

    %i]!.txt
       echo file '!pathtofile[%%i]!'>>filelist!term[%

    %i]!.txt
    )

    So NOW my text file looks like this :

    # this is a comment    
    file 'C:\Users\Joe\1May\session3\readyforfinalconversion\Titlefile.mp4'
    file 'C:\Users\Joe\1May\session3\readyforfinalconversion\Englishfile.mp4'
  • ffmpeg LGPL Windows x64 compile error

    29 août 2013, par Cosmin Marc

    I'm trying to compile ffmpeg for Windows 7 64bit version with LGPL license.
    To configure this, I'm using the following command :
    ./configure --prefix=ffmpeg/ --enable-shared --extra-cflags=-I/c/MinGW/include --yasmexe='C:/yasm/yasm-1.2.0-win64.exe' --enable-version3 --cpu=i686 --arch=x86_64

    after executing this command I receive the following error :

    gcc is unable to create an executable file. If gcc is a cross-compiler, use the —enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed.

    If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem.

    Cross compiling is not what I want... I just want to compile the ffmpeg on W7 x64 with LGPL license.

  • optimizing ffmpeg in windows platform for processing with web-cam

    22 août 2013, par user2320537

    I have to develop a tool in java that will capture frames from webcam, Now what I have done for that is, I have used Runtime class to run ffmpeg and other commands, when it starts capturing frames from my web-cam,
    I am using following method for that.

    public class FFMPEGClass {

       private String ffmpegExeLocation, line;
       private final String FRAME_DIGITS = "010";

       public FFMPEGClass(String capturingDName, String outputImagesLocation, int framesPerSecond) {
           ffmpegExeLocation = System.getProperty("user.dir") + "\\bin\\";
           System.out.println(ffmpegExeLocation);
           try {            
               System.out.println(ffmpegExeLocation + "ffmpeg -t 100000 "
                       + "-f vfwcap -s 640x480 -i 0 -r 1/" + framesPerSecond + " -f image2 " + outputImagesLocation + "\\camera%"+FRAME_DIGITS+"d.jpg");
               Process pp = Runtime.getRuntime().exec(ffmpegExeLocation + "ffmpeg -t 100000 "
                       + "-f vfwcap -s 640x480 -i 0 -r 1/" + framesPerSecond + " -f image2 " + outputImagesLocation + "\\camera%"+FRAME_DIGITS+"d.jpg");
               BufferedReader br = new BufferedReader(new InputStreamReader(pp.getErrorStream()));
               while((line = br.readLine()) != null){
                    System.out.println(line);
               }
           } catch (Exception ex) {
               ex.printStackTrace();
           }
       }
    }

    In my case capturingDName is USB2.0 UVC VGA WebCam
    outputImagesLocation is e :\myfolder\frames and
    framesPerSecond is 10

    This code works well but it is unable to capture frames efficiently, In other words I want to say that its processing is very slow, can anyone please tell that how can I optimize it so that it can capture frames very fastly.

    I have Intel Core i3 processor with 6 GB of RAM

    I have already checked many answers from google and stackoverflow but these are not working in my case