Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (12957)

  • ffmpeg ProcessBuilder No such file or directory

    24 avril 2020, par silentsudo

    I am trying to get media duration using ffmpeg command from a java program. I am calling this method from within spring boot application.
I am using ProcessBuilder.

    



    File object is valid and exists for privacy I have replaced file path in error logs.

    



    My Code is as below :

    



    private String getMediaDuration(File file) {
        final String command = "/usr/bin/ffmpeg -version";//-i " + file.getAbsolutePath() + " 2>&1 | grep Duration | cut -c 13-20";
        try {
            ProcessBuilder builder = new ProcessBuilder("/usr/bin/ffmpeg",
                    "-version");
            builder.directory(file.getParentFile());

            System.out.println("Directory : " + builder.directory().exists());
            System.out.println("Directory : " + builder.directory().getAbsolutePath());
            final Process process = builder.start();
            final InputStream is = process.getInputStream();
            final InputStreamReader isr = new InputStreamReader(is);
            final BufferedReader br = new BufferedReader(isr);
            String line;
            while ((line = br.readLine()) != null) {
                System.out.println(line);
            }
            return line;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }


    



    Unfortunately nothing seems to be working
Error below :

    



    java.io.IOException: Cannot run program "/usr/bin/ffmpeg -version" (in directory "/abc/xyz"): error=2, No such file or directory&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)&#xA;    at ....getMediaDuration(FFmpegRunner.java:208)&#xA;    at ....ffmpegprocessor.FFmpegRunner.run(FFmpegRunner.java:61)&#xA;    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&#xA;    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&#xA;    at java.lang.Thread.run(Thread.java:748)&#xA;Caused by: java.io.IOException: error=2, No such file or directory&#xA;    at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;    at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)&#xA;    at java.lang.ProcessImpl.start(ProcessImpl.java:134)&#xA;    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)&#xA;    ... 5 more&#xA;</init>

    &#xA;&#xA;

    Output for whereis ffmpeg

    &#xA;&#xA;

    ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz&#xA;

    &#xA;&#xA;

    Please help me understand where it is going wrong. Thank you.

    &#xA;

  • Remove Unnecesary Maven Dependencies from Eclipse

    18 mai 2021, par ur3k

    I am working with Spring-Boot 2.3.8 and Eclipse.

    &#xA;

    I am using these dependencies to work on some videos :

    &#xA;

        &#xA;    <dependency>&#xA;        <groupid>org.bytedeco</groupid>&#xA;        <artifactid>javacv</artifactid>&#xA;        <version>1.5.4</version>&#xA;    </dependency>&#xA;&#xA;    &#xA;    <dependency>&#xA;        <groupid>org.bytedeco</groupid>&#xA;        <artifactid>opencv-platform</artifactid>&#xA;        <version>4.4.0-1.5.4</version>&#xA;    </dependency>&#xA;&#xA;    &#xA;    <dependency>&#xA;        <groupid>org.bytedeco</groupid>&#xA;        <artifactid>ffmpeg-platform</artifactid>&#xA;        <version>4.3.1-1.5.4</version>&#xA;    </dependency>&#xA;    &#xA;

    &#xA;

    Eclipse is adding all JARs of opencv, javaccp and ffmpeg, including JARs for Androind, MacOs, etc. I just need the ones for Windows and the problem is that these extra dependencies are creating problems for my teams when they try to load the project, build or test it (it is extreamly slow or just doesnt work).

    &#xA;

    These dependencies are not present in my final WAR when I build with maven form the command line and I use :

    &#xA;

    mvn -Djavacpp.platform=windows-x86_64 clean install &#xA;

    &#xA;

    Is there a way to tell eclipse to do the same ?

    &#xA;

    The WAR size goes from 800 MB to around 200 MB when building without and with and the platform flag, these extra 600 MB are what in my opinion is too much for eclipse.

    &#xA;

    Here is an image of all the JARs being added to the project.

    &#xA;

    List of JARs

    &#xA;

  • Crop and pinch zoom image with FFMPEG

    27 septembre 2022, par hugger

    I am working on a simple photo editor component for a mobile app which requires the user to be able to pan and scale (zoom) an image to be cropped. S/O to @kesh for the help so far !

    &#xA;

    With the pinch zoom value which ranges from 1-5, I wish to use this in my FFMPEG execution along with the crop command :

    &#xA;

      cropSelected() {&#xA;    this.setState({ isCropping: true });&#xA;&#xA;    const diff =&#xA;      this.props.videoHeight / (this.state.aspectRatio * deviceWidth);&#xA;    const offsetDiff = this.state.offsetTopTranslate * diff;&#xA;&#xA;    var filterPathPostCrop =&#xA;      this.props.type === &#x27;photo&#x27;&#xA;        ? RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.png&#x27;&#xA;        : this.props.type === &#x27;gif&#x27;&#xA;        ? RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.gif&#x27;&#xA;        : RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.mp4&#x27;;&#xA;    //hardcoded zoom at 1.2x for example!&#xA;    FFmpegKit.execute(&#xA;      `-y -i ${this.state.mediaSource} -vf "crop=iw/1.2:ih/1.2:0:${offsetDiff},scale=iw:-1" -qscale 0 -frames:v 1 ${filterPathPostCrop}`&#xA;    ).then(async (session) => {&#xA;      const returnCode = await session.getReturnCode();&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        // SUCCESS&#xA;&#xA;        Animated.spring(this._pinchScale, {&#xA;          toValue: 1,&#xA;          useNativeDriver: true,&#xA;        }).start();&#xA;&#xA;        this.setState(&#xA;          {&#xA;            mediaSource: filterPathPostCrop,&#xA;            videoSourcePreview: `${filterPathPostCrop}?${new Date().getTime()}`,&#xA;            ffMPEGinProgress: null,&#xA;            aspectRatio: 1080 / 1080,&#xA;            videoTime: 0,&#xA;            isPlayingVideo: false,&#xA;            isCropping: false,&#xA;            filterOutputIsAlt: !this.state.filterOutputIsAlt,&#xA;            wasCropped: true,&#xA;          });&#xA;      } else if (ReturnCode.isCancel(returnCode)) {&#xA;        // CANCEL&#xA;      } else {&#xA;        // ERROR&#xA;        alert(&#x27;error&#x27;);&#xA;      }&#xA;    });&#xA;  }&#xA;

    &#xA;

    I drew this to illustrate what I am trying to achieve here.

    &#xA;

    example

    &#xA;

    I hope this helps !

    &#xA;