Recherche avancée

Médias (91)

Autres articles (65)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (10224)

  • How do I receive buffered files or streams from the fluent-ffmpeg module ?

    26 février 2021, par yahoo2344

    Logic was created to replace gif files with mp4 files. However, after saving the gif file to the server, the file is imported and converted to an mp4 file, the mp4 file is saved to the server and the file is read to return the buffer.

    


    Here's a question.

    


      

    1. When I recall files from the fmpeg module, can I receive them in a buffer or stream instead of a path ?

      


    2. 


    3. Is there a way to receive the converted file as a buffer or stream without saving it ?

      


    4. 


    


    return new Promise((resolve, reject) => {
        fs.writeFile(path.join(__dirname, `input.gif`), file, (err) => {
            if (err) {
                reject(null)
            }
            ffmpegg(path.join(__dirname, `input.gif`))
                .size(`500x500`)
                .format('mp4')
                .outputOptions([
                    '-movflags faststart',
                    '-pix_fmt yuv420p',
                    //'-vf scale=trunc(iw/2)*2:trunc(ih/2)*2'
                ]).on('end', () => {
                    fs.readFile(path.join(__dirname, `output.mp4`), (err, mp4Buffer) => {
                        fs.unlink(path.join(__dirname, `input.gif`), (e) => { if (e) console.log('error delete!') })
                        fs.unlink(path.join(__dirname, `output.mp4`), (e) => { if (e) console.log('error delete!') })
                        if (err) {
                            reject(null)
                        }
                        resolve(mp4Buffer)
                    });
                }).save(path.join(__dirname, `output.mp4`))
        });
    })


    


  • Can't install the ffmpeg module

    24 février 2021, par Cursed

    I'm trying to install ffmpeg-binaries it works perfectly local but when I go to hiroku it starts to say that he can't find the modules.

    



    This is for a Discord bot, running node.js I tried to install with npm other ffmpeg's but only that works without implementing the ffmpeg itself

    



    Installing node modules (package.json + package-lock)

    



       > lzma-native@3.0.8 install /tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native&#xA;   > node-pre-gyp install --fallback-to-build &amp;&amp; node node_modules/rimraf/bin.js build&#xA;&#xA;   node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-linux-x64.tar.gz &#xA;   node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.6.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp) &#xA;   node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-linux-x64.tar.gz &#xA;   node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.6.0 (node-v67 ABI, glibc) (falling back to source compile with node-gyp) &#xA;   gyp: Call to &#x27;sh liblzma-config.sh "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/build" "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"&#x27; returned exit status 1 while in binding.gyp. while trying to load binding.gyp&#xA;   gyp ERR! configure error &#xA;   gyp ERR! stack Error: `gyp` failed with exit code: 1&#xA;   gyp ERR! stack     at ChildProcess.onCpExit (/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)&#xA;   gyp ERR! stack     at ChildProcess.emit (events.js:188:13)&#xA;   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)&#xA;   gyp ERR! System Linux 4.4.0-1031-aws&#xA;   gyp ERR! command "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/bin/node" "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64"&#xA;   gyp ERR! cwd /tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native&#xA;   gyp ERR! node -v v11.6.0&#xA;   gyp ERR! node-gyp -v v3.8.0&#xA;   gyp ERR! not ok &#xA;   node-pre-gyp ERR! build error &#xA;   node-pre-gyp ERR! stack Error: Failed to execute &#x27;/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/bin/node /tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64&#x27; (1)&#xA;   node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/node_modules/node-pre-gyp/lib/util/compile.js:83:29)&#xA;   node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:188:13)&#xA;   node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)&#xA;   node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)&#xA;   node-pre-gyp ERR! System Linux 4.4.0-1031-aws&#xA;   node-pre-gyp ERR! command "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/bin/node" "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"&#xA;   node-pre-gyp ERR! cwd /tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native&#xA;   node-pre-gyp ERR! node -v v11.6.0&#xA;   node-pre-gyp ERR! node-pre-gyp -v v0.6.39&#xA;   node-pre-gyp ERR! not ok &#xA;   Failed to execute &#x27;/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/bin/node /tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64&#x27; (1)&#xA;   gyp: Call to &#x27;sh liblzma-config.sh "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/build" "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"&#x27; returned exit status 1 while in binding.gyp. while trying to load binding.gyp&#xA;   gyp ERR! configure error &#xA;   gyp ERR! stack Error: `gyp` failed with exit code: 1&#xA;   gyp ERR! stack     at ChildProcess.onCpExit (/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)&#xA;   gyp ERR! stack     at ChildProcess.emit (events.js:188:13)&#xA;   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)&#xA;   gyp ERR! System Linux 4.4.0-1031-aws&#xA;   gyp ERR! command "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/bin/node" "/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native/binding-v3.0.8-node-v67-linux-x64"&#xA;   gyp ERR! cwd /tmp/build_681c54b9c6315cfb1c9672e8da7d4803/node_modules/decompress-tarxz/node_modules/lzma-native&#xA;   gyp ERR! node -v v11.6.0&#xA;   gyp ERR! node-gyp -v v3.8.0&#xA;   gyp ERR! not ok &#xA;   npm ERR! code ELIFECYCLE&#xA;   npm ERR! errno 1&#xA;   npm ERR! lzma-native@3.0.8 install: `node-pre-gyp install --fallback-to-build &amp;&amp; node node_modules/rimraf/bin.js build`&#xA;   npm ERR! Exit status 1&#xA;   npm ERR! &#xA;   npm ERR! Failed at the lzma-native@3.0.8 install script.&#xA;   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.&#xA;&#xA;   npm ERR! A complete log of this run can be found in:&#xA;   npm ERR!     /tmp/npmcache.85YKx/_logs/2019-01-13T20_55_48_321Z-debug.log&#xA;</anonymous>

    &#xA;

  • Could not load file or assembly 'Accord.Video.FFMPEG.x64.DLL' or one of its dependencies. The specified module could not be found

    24 septembre 2020, par Sandeep Kumar

    Trying to merge image and audio file to create a video file.

    &#xA;

    I have tried

    &#xA;

      &#xA;
    • changing the arch (x86 and x64).
    • &#xA;

    • Manually moved all the dependent .dlls for "Accord.Video.FFMPEG.x64.DLL" to the the bin.
    • &#xA;

    • used both Accord and Aforge, both of them have the same issue.
    • &#xA;

    • installed VC++ redistribuable 2013 and 2015-19
    • &#xA;

    &#xA;

    Following is the base code :

    &#xA;

    private const string _basePath = @"D:\R&amp;D Projects\AudioVideoConvertor\VideoAudioMerger\VideoAudioMerger\Images\";&#xA;&#xA;    protected void Page_Load(object sender, EventArgs e)&#xA;    {&#xA;        int width = 2500;&#xA;        int height = 2100;&#xA;        int frameRate = 10;// Shuld be fix&#xA;        using (var videoWriter = new VideoFileWriter())&#xA;        {&#xA;            // default frame size 340, 220&#xA;            videoWriter.Open(_basePath &#x2B; "test.avi", width, height, frameRate, VideoCodec.WMV1);&#xA;            ResizeNearestNeighbor filter = new ResizeNearestNeighbor(width, height);&#xA;            var images = Directory.GetFiles(_basePath, "*.jpg");&#xA;            var tfile = TagLib.File.Create(_basePath &#x2B; "audio.mp3");&#xA;            //string title = tfile.Tag.Title;&#xA;            TimeSpan duration = tfile.Properties.Duration;&#xA;            decimal timeinSecond = Math.Round((Convert.ToDecimal(duration.TotalSeconds) * frameRate) / images.Length);&#xA;            foreach (string img in images)&#xA;            {&#xA;&#xA;                using (Bitmap image = Bitmap.FromFile(img) as Bitmap)&#xA;                {&#xA;                    //As per audio length rotate image in video frame.&#xA;                    for (int i = 0; i &lt; timeinSecond; i&#x2B;&#x2B;)&#xA;                    {&#xA;                        videoWriter.WriteVideoFrame(filter.Apply(image));&#xA;                    }&#xA;                }&#xA;            }&#xA;            videoWriter.Close();&#xA;            MergeAudioAndVideo();&#xA;        }&#xA;    }&#xA;&#xA;    private static void MergeAudioAndVideo()&#xA;    {&#xA;&#xA;        File.Delete(_basePath &#x2B; "mergedvideo.avi");&#xA;        Process pss = new Process();&#xA;        ProcessStartInfo si = new ProcessStartInfo();&#xA;        si.FileName = @"D:\R&amp;D Projects\AudioVideoConvertor\VideoAudioMerger\VideoAudioMerger\ffmpeg-win64-static\bin\ffmpeg.exe";&#xA;        si.UseShellExecute = false;&#xA;        si.CreateNoWindow = true;&#xA;        si.Arguments = "-i \"" &#x2B; _basePath &#x2B; "test.avi\" -i \"" &#x2B; _basePath &#x2B; "audio.mp3\" -c:v copy -c:a copy -map 0:v:0 -map 1:a:0 \"" &#x2B; _basePath &#x2B; "mergevideo1" &#x2B; ".avi\"";&#xA;        pss.StartInfo = si;&#xA;        pss.Start();&#xA;        pss.WaitForExit();&#xA;        File.Delete(_basePath &#x2B; "test.avi");&#xA;    }&#xA;

    &#xA;

    Also, putting in the link to this sample project, https://drive.google.com/file/d/1JAt8ZUCCsIwez0fkdvq_2FGeGXif5rwu/view?usp=sharing.

    &#xA;

    Please help out in finding why this issue is coming ?

    &#xA;

    Issue :

    &#xA;

    Could not load file or assembly &#x27;Accord.Video.FFMPEG.x64.DLL&#x27; or one of its dependencies. The specified module could not be found.&#xA;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&#xA;&#xA;Exception Details: System.IO.FileNotFoundException: Could not load file or assembly &#x27;Accord.Video.FFMPEG.x64.DLL&#x27; or one of its dependencies. The specified module could not be found.&#xA;&#xA;Source Error:&#xA;&#xA;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&#xA;&#xA;Stack Trace:&#xA;&#xA;&#xA;[FileNotFoundException: Could not load file or assembly &#x27;Accord.Video.FFMPEG.x64.DLL&#x27; or one of its dependencies. The specified module could not be found.]&#xA; System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) &#x2B;0&#xA; System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) &#x2B;232&#xA; System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) &#x2B;113&#xA; System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection) &#x2B;23&#xA; System.Reflection.Assembly.Load(String assemblyString) &#x2B;35&#xA; System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) &#x2B;49&#xA;&#xA;[ConfigurationErrorsException: Could not load file or assembly &#x27;Accord.Video.FFMPEG.x64.DLL&#x27; or one of its dependencies. The specified module could not be found.]&#xA; System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) &#x2B;762&#xA; System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() &#x2B;259&#xA; System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) &#x2B;167&#xA; System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) &#x2B;238&#xA; System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() &#x2B;78&#xA; System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean&amp; isRefAssemblyLoaded) &#x2B;334&#xA; System.Web.Compilation.BuildManager.ExecutePreAppStart() &#x2B;178&#xA; System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) &#x2B;746&#xA;&#xA;[HttpException (0x80004005): Could not load file or assembly &#x27;Accord.Video.FFMPEG.x64.DLL&#x27; or one of its dependencies. The specified module could not be found.]&#xA; System.Web.HttpRuntime.FirstRequestInit(HttpContext context) &#x2B;552&#xA; System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) &#x2B;122&#xA; System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) &#x2B;737&#xA;

    &#xA;