Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (13)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

Sur d’autres sites (4520)

  • Python librosa NoBackendError even though ffmpeg is installed

    11 avril 2020, par Slavko Kovačević

    I recently installed librosa (package I've been using for a while on different PC) on my new PC with Windows 10 running. After that I've downloaded latest static version of ffmpeg and copied it to C: and added it to the Path. Tested ffmpeg and it works like a charm ! For python I am using Anaconda environment and after starting Jupyter Notebook and running librosa.load(path, sr = None) I've got

    



     in <module>&#xA;----> 1 audio = librosa.load(pathToJson)&#xA;&#xA;~\anaconda3\envs\tf_gpu\lib\site-packages\librosa\core\audio.py in load(path, sr, mono, offset, duration, dtype, res_type)&#xA;    117 &#xA;    118     y = []&#xA;--> 119     with audioread.audio_open(os.path.realpath(path)) as input_file:&#xA;    120         sr_native = input_file.samplerate&#xA;    121         n_channels = input_file.channels&#xA;&#xA;~\anaconda3\envs\tf_gpu\lib\site-packages\audioread\__init__.py in audio_open(path, backends)&#xA;    114 &#xA;    115     # All backends failed!&#xA;--> 116     raise NoBackendError()&#xA;&#xA;NoBackendError:&#xA;</module>

    &#xA;&#xA;

    strange isn't it ? Then I went all over the internet, doing whatnot trying to fix it and then I've got an idea to run my line of code inside anaconda command interface and it WORKS ?? How is this possible ? It is the same environment.

    &#xA;&#xA;

    python&#xA;Python 3.7.7 (default, Mar 23 2020, 23:19:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32&#xA;Type "help", "copyright", "credits" or "license" for more information.&#xA;>>> import librosa&#xA;>>> librosa.load(&#x27;test.wav&#x27;)&#xA;(array([-0.00027   , -0.00039953, -0.0003659 , ..., -0.16393574,&#xA;       -0.17814247,  0.        ], dtype=float32), 22050)&#xA;

    &#xA;&#xA;

    I did a lot of testing and I really prefer my Jupyter so any help would be appreciated. I tried the following : I've added C:\ffmpeg\bin and C:\ffmpeg to my Path for both User and System Variables. After that I've made specific variables for ffmpeg and ffmpeg_bin for both User and System Variables. No luck. After that I've tried installing ffmpeg using conda, without success. The last thing I've tested is this :

    &#xA;&#xA;

    import audioread&#xA;audioread.ffdec.FFmpegAudioFile(&#x27;test.wav&#x27;)&#xA;

    &#xA;&#xA;

    and that works. Thanks

    &#xA;

  • Using ffmepg wrapper to convert images to movie file

    24 mai 2020, par reborn

    I have recently been using the ffmpeg wrapper by Vitaliy Fedorchenko called NReco.VideoConverter. It's pretty great and I have managed to write another application with it that I hope to release soon after some testing and I purchase the license for the wrapper (it's a cool watermarker for videos).

    &#xA;&#xA;

    I am now trying to use that same wrapper to encode a video from still images, but sadly there is very little documentation available and I am feeling my way int he dark a little. I am hopeful that someone familiar with the wrapper might be able to help.

    &#xA;&#xA;

    I collect the images using the fileOpenDialogue and picking images to populate a listView. When I am ready, I then take these images to build an array and create the movie.

    &#xA;&#xA;

    application picture

    &#xA;&#xA;

        void ConvertToMovie()&#xA;    {&#xA;        if(listImages.Items.Count > 1)&#xA;        {&#xA;            var ffMpeg = new NReco.VideoConverter.FFMpegConverter();&#xA;&#xA;            NReco.VideoConverter.FFMpegInput[] ffMpegInputs = new NReco.VideoConverter.FFMpegInput[listImages.Items.Count]; &#xA;&#xA;            for (int i = 0; i &lt; listImages.Items.Count; i&#x2B;&#x2B;)&#xA;            {&#xA;                var SSAImage = new NReco.VideoConverter.FFMpegInput(listImages.Items[i].SubItems[2].Text.ToString());&#xA;                ffMpegInputs[i] = SSAImage;&#xA;            }&#xA;&#xA;&#xA;            ConvertSettings csettings = new ConvertSettings();&#xA;            csettings.SetVideoFrameSize((int)MovieWidth.Value, (int)MovieHeight.Value);&#xA;            csettings.VideoFrameCount = listImages.Items.Count;&#xA;            csettings.VideoFrameRate = (int)FPS.Value;&#xA;&#xA;            /*&#xA;            string argument = " -profile:v high ";&#xA;            csettings.CustomOutputArgs = argument;&#xA;            */&#xA;&#xA;            if (FormatChooser.SelectedIndex == 0)&#xA;            {&#xA;                //This just takes the first picture and converts that single frame into a movie.&#xA;                ffMpeg.ConvertMedia(ffMpegInputs, @"Converted.avi", Format.avi, csettings);&#xA;                //ffMpeg.ConvertMedia(listImages.Items[0].SubItems[2].Text.ToString(), ffMpegInput.Format, @"Converted.avi", Format.avi, csettings);&#xA;            }&#xA;        }&#xA;        else&#xA;        {&#xA;            MessageBox.Show("You need at least two images to make a movie.", Title);&#xA;        }&#xA;    }&#xA;

    &#xA;&#xA;

    Passing the images as an array to the function seems logical. At list of the methods are here : https://www.nrecosite.com/doc/NReco.VideoConverter/

    &#xA;&#xA;

    However, the only method that allows you to pass an array of the inputs is here :&#xA;https://www.nrecosite.com/doc/NReco.VideoConverter/html/M_NReco_VideoConverter_FFMpegConverter_ConvertMedia.htm

    &#xA;&#xA;

    So this makes sense to me that it would be the one to use.

    &#xA;&#xA;

    This does generate a .avi file, but the movie only contains the first frame from the array.

    &#xA;&#xA;

    I saw someone else had the same issue here : Nreco video converter make video from image sequence

    &#xA;&#xA;

    However, the responses seemed to suggest using a different method that allows you to pass a single image file only, then somehow the ffmpeg.exe will sequence the rest of them ? I couldn't get that to work at all.

    &#xA;&#xA;

    At this stage the only way I can see of making it work is creating a single frame movie file for each frame, and then concating all of the movie files together using :

    &#xA;&#xA;

    https://www.nrecosite.com/doc/NReco.VideoConverter/?topic=html/M_NReco_VideoConverter_FFMpegConverter_ConcatMedia.htm

    &#xA;&#xA;

    That's a pretty ridiculous notion though.

    &#xA;

  • clang++ : error : linker command failed with exit code 1 (use -v to see invocation) in cpp with ffmpeg

    6 avril 2020, par Pradeep Simba
    clang&#x2B;&#x2B;: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;

    &#xA;&#xA;

    I saw this link and link2. But, it not done.

    &#xA;&#xA;

    My jni folder :

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    Android.mk file

    &#xA;&#xA;

    LOCAL_PATH := $(call my-dir)&#xA;include $(CLEAR_VARS)&#xA;LOCAL_C_INCLUDES &#x2B;= ./include&#xA;LOCAL_MODULE     := native-lib&#xA;LOCAL_CFLAGS := -DSTDC_HEADERS -std=c99&#xA;LOCAL_CFLAGS := -Wno-pointer-sign&#xA;LOCAL_ARM_MODE := arm&#xA;APP_OPTIM := release&#xA;LOCAL_SRC_FILES  := \&#xA;./native-lib.cpp&#xA;LOCAL_LDLIBS := -llog&#xA;include $(BUILD_SHARED_LIBRARY)&#xA;

    &#xA;&#xA;

    native-lib.cpp file

    &#xA;&#xA;

    #include &#xA;#include <string>&#xA;&#xA;extern "C"&#xA;{&#xA;#include "libavcodec/avcodec.h"&#xA;#include "libavformat/avformat.h"&#xA;#include "libavutil/opt.h"&#xA;}&#xA;&#xA;extern "C" JNIEXPORT jstring JNICALL&#xA;Java_com_example_m_MainActivity_stringFromJNI(&#xA;JNIEnv* env,&#xA;jobject /* this */) {&#xA;std::string hello = "Hello from C&#x2B;&#x2B;";&#xA;av_register_all();&#xA;return env->NewStringUTF(hello.c_str());&#xA;}&#xA;</string>

    &#xA;&#xA;

    When I build ndk this error occurs.

    &#xA;&#xA;

    D:\Github\n>ndk-build&#xA;Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.&#xA;[arm64-v8a] Compile&#x2B;&#x2B;      : native-lib &lt;= native-lib.cpp&#xA;[arm64-v8a] SharedLibrary  : libnative-lib.so&#xA;./obj/local/arm64-v8a/objs/native-lib/./libmp3lame/native-lib.o: In function `Java_com_example_m_MainActivity_stringFromJNI&#x27;:&#xA;D:\Github\n/jni/./libmp3lame/native-lib.cpp:16: undefined reference to `av_register_all&#x27;&#xA;clang&#x2B;&#x2B;: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;make: *** [D:/install/sdk/ndk/21.0.6113669/build//../build/core/build-binary.mk:725: obj/local/arm64-v8a/libnative-lib.so] Error 1&#xA;&#xA;D:\Github\n>ndk-build -v&#xA;GNU Make 4.2.1&#xA;Built for x86_64-w64-mingw32&#xA;Copyright (C) 1988-2016 Free Software Foundation, Inc.&#xA;License GPLv3&#x2B;: GNU GPL version 3 or later /gnu.org/licenses/gpl.html>&#xA;This is free software: you are free to change and redistribute it.&#xA;There is NO WARRANTY, to the extent permitted by law.&#xA;&#xA;D:\Github\n>&#xA;

    &#xA;&#xA;

    why it comes like this native-lib.cpp:16: undefined reference av_register_all ?

    &#xA;&#xA;

    I added all the required libs in my jni folder but, why this error and this native-lib.cpp:16: undefined reference av_register_all comes ?&#xA;How can I solve this ?

    &#xA;