Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (54)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (4797)

  • How to setup FFServer with FFMPEG package on window ?

    14 décembre 2015, par Digant

    I am running FFMPEG package in my Window PC. I want to start live streaming part with FFSERVER. I didn’t find any ffserver.exe files to download. I am running with the many query :

    In FFMPEG document, there are ask to configuration ffserver.conf files. and its fetch from etc/ffserver/cong. How do i find this file and their location in my computer ?

    I want simple basic step to run ffserver on window.

    Thanks

  • How to execute fluent-ffmpeg commands from express router ?

    27 janvier 2021, par Chris

    so I'm trying to control and m3u8 playlist using data sent in thru an express route and keep getting the same error "Error : ffmpeg exited with code 1 : Conversion failed !" when attempting.

    


    My code looks like this

    


    ch1Router
    .route("/source")
    .post(jsonBodyParser, (req, res, next) => {
        //video url from request body
        const { url } = req.body;
        
        //test console log
        console.log(req.body);

        //ffmpeg commands
        ffmpeg(url)
            .output('videos/Ch1.m3u8')
            .on('error', (err) => {
                console.log("Something Happened:", err.message)
                res.send("Error changing input!")
            })
            .run()
            

        
        res.send("hi")
    })


    


    When I run this exact command in a separate file using Node, the command executes and I only need to refresh my browser to see the new video file. When trying to chain it to a post request containing the video URL I get the conversion error. Any help would be appreciated.

    


    **Updated my code to prevent the server from crashing and respond with an error message but still don't understand the conversion error.

    


  • Getting this error in next js 13 app router “Module not found : Can't resolve './lib-cov/fluent-ffmpeg'”

    14 novembre 2023, par Aamir Khan

    I want to convert mp4 to mp3 using the npm package 'fluent-ffmpeg’, in the express application it is working fine but not in NextJS 13, And even after removing the node_modules folder, package-lock.js and doing "npm install" again, it still didn't work. Does anyone have a solution for this ?

    


    This error is coming in the console.

    


    > my-app@0.1.0 dev&#xA;> next dev&#xA;&#xA;   ▲ Next.js 14.0.2&#xA;   - Local:        http://localhost:3000&#xA;   - Environments: .env.local&#xA;&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/next isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/next isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA; ✓ Ready in 2.2s&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-ia32-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-x64-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-x64-gnu isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-arm64-musl isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-arm64-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-x64-musl isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-darwin-x64 isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-arm64-gnu isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA; ⨯ ./node_modules/fluent-ffmpeg/index.js:1:48&#xA;Module not found: Can&#x27;t resolve &#x27;./lib-cov/fluent-ffmpeg&#x27;&#xA;&#xA;https://nextjs.org/docs/messages/module-not-found&#xA;&#xA;Import trace for requested module:&#xA;./src/app/api/new/route.js&#xA; ○ Compiling /not-found ...&#xA;(node:3236) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.&#xA;(Use `node --trace-deprecation ...` to show where the warning was created)&#xA; ⨯ ./node_modules/fluent-ffmpeg/index.js:1:48&#xA;Module not found: Can&#x27;t resolve &#x27;./lib-cov/fluent-ffmpeg&#x27;&#xA;&#xA;https://nextjs.org/docs/messages/module-not-found&#xA;&#xA;Import trace for requested module:&#xA;./src/app/api/new/route.js&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/next isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA; ⨯ ./node_modules/fluent-ffmpeg/index.js:1:48&#xA;Module not found: Can&#x27;t resolve &#x27;./lib-cov/fluent-ffmpeg&#x27;&#xA;&#xA;https://nextjs.org/docs/messages/module-not-found&#xA;&#xA;Import trace for requested module:&#xA;./src/app/api/new/route.js&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-x64-musl isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-ia32-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-x64-gnu isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-darwin-x64 isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-arm64-musl isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-arm64-gnu isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-arm64-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-x64-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-ia32-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-arm64-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-win32-x64-msvc isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-x64-musl isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-arm64-musl isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-darwin-x64 isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-x64-gnu isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Users/creative_aamir/Documents/My Website Projects /nextjs apps/testing-fluent-ffmpeg/node_modules/@next/swc-linux-arm64-gnu isn&#x27;t a directory or doesn&#x27;t contain a package.json (see snapshot.managedPaths option)&#xA;</w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w></w>

    &#xA;

    I also tried creating the webpack.config.js file in the root directory of the project but it did not work

    &#xA;

    &lt;

    &#xA;

    import webpack from &#x27;webpack&#x27;&#xA;&#xA;module.exports = {&#xA;  plugins: [&#xA;    new webpack.DefinePlugin({&#xA;      &#x27;process.env.FLUENTFFMPEG_COV&#x27;: JSON.stringify(false),&#xA;    }),&#xA;  ],&#xA;};&#xA;

    &#xA;

    >

    &#xA;

    This is my src/app/api/new/route.js file code

    &#xA;

    import { NextResponse, NextRequest } from "next/server";&#xA;import ffmpeg from &#x27;fluent-ffmpeg&#x27;&#xA;var command = ffmpeg()&#xA;&#xA;export function GET(){&#xA;&#xA;    command.input(&#x27;mp4/video.mp4&#x27;)&#xA;    &#xA;    .save(&#x27;converted/audio.mp3&#x27;)&#xA;&#xA;    return NextResponse.json(&#x27;Done&#x27;)&#xA;}&#xA;

    &#xA;

    This is next.config.js file

    &#xA;

    /** @type {import(&#x27;next&#x27;).NextConfig} */&#xA;&#xA;const nextConfig = {}&#xA;&#xA;module.exports = nextConfig&#xA;

    &#xA;

    This is package.js file

    &#xA;

    {&#xA;  "name": "my-app",&#xA;  "version": "0.1.0",&#xA;  "private": true,&#xA;  "scripts": {&#xA;    "dev": "next dev",&#xA;    "build": "next build",&#xA;    "start": "next start",&#xA;    "lint": "next lint"&#xA;  },&#xA;  "dependencies": {&#xA;    "ffmpeg": "^0.0.4",&#xA;    "fluent-ffmpeg": "^2.1.2",&#xA;    "next": "14.0.2",&#xA;    "react": "^18",&#xA;    "react-dom": "^18",&#xA;    "webpack": "^5.89.0"&#xA;  }&#xA;}&#xA;

    &#xA;

    How to fix this error ?

    &#xA;