Recherche avancée

Médias (1)

Mot : - Tags -/berlin

Autres articles (68)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10508)

  • VLC3 compilation error : linking issue with the libavutil library

    4 octobre 2017, par Ivan Kolesnikov

    I tried to compile VLC3 in ubuntu15.10 a long time, but still no luck.
    I configured FFmpeg as follow :

     /ffmpeg-3.3.3$ ./configure —cpu=native —enable-pthreads —enable-bzlib —enable-libdc1394 —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-libfdk-aac —enable-nonfree —enable-gpl —enable-swscale —enable-libcdio —enable-libxcb —enable-libx264 —enable-libxvid —enable-libopencore-amrnb —enable-version3 —enable-libopencore-amrwb —enable-libvo-amrwbenc —enable-nvenc —enable-openssl —enable-decklink —extra-cflags=-I/home/ivan/Downloads/Blackmagic_DeckLink_SDK_10.9.5/Linux/include —extra-ldflags=-ldl —extra-libs=-ldl —enable-pic

    And configured VLC3 wth the following parameters :

     /vlc-3.0.0-git$ ./configure
    —with-decklink-sdk=I/home/ivan/Downloads/Blackmagic_DeckLink_SDK_10.9.5/Linux/include —disable-chromecas

    The compilation looks fine. Then I tried :

    $ sudo make install

    And got the following error :

     CCLD     libavio_plugin.la
    /usr/local/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_free':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:899: undefined reference to `XCloseDisplay'
    /usr/local/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:929: undefined reference to `XOpenDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:934: undefined reference to `vaGetDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:941: undefined reference to `XDisplayName'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:931: undefined reference to `XDisplayName'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:958: undefined reference to `vaGetDisplayDRM'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:929: undefined reference to `XOpenDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:931: undefined reference to `XDisplayName'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vaapi.c:936: undefined reference to `XDisplayName'
    /usr/local/lib/libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_create':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:431: undefined reference to `XOpenDisplay'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:437: undefined reference to `XDisplayString'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:439: undefined reference to `XDefaultScreen'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:439: undefined reference to `vdp_device_create_x11'
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:433: undefined reference to `XDisplayName'
    /usr/local/lib/libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_free':
    /home/ivan/ffmpeg-3.3.3/libavutil/hwcontext_vdpau.c:410: undefined reference to `XCloseDisplay'
    collect2: error: ld returned 1 exit status
    Makefile:12577: recipe for target 'libavio_plugin.la' failed
    make[4]: *** [libavio_plugin.la] Error 1
    make[4]: Leaving directory '/home/ivan/vlc-3.0.0-git/modules'
    Makefile:25280: recipe for target 'install-recursive' failed
    make[3]: *** [install-recursive] Error 1
    make[3]: Leaving directory '/home/ivan/vlc-3.0.0-git/modules'
    Makefile:25679: recipe for target 'install' failed
    make[2]: *** [install] Error 2
    make[2]: Leaving directory '/home/ivan/vlc-3.0.0-git/modules'
    Makefile:1519: recipe for target 'install-recursive' failed
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory '/home/ivan/vlc-3.0.0-git'
    Makefile:1985: recipe for target 'install' failed

    I already saw the following questions related this situation :
    question1,
    question2,
    question3

    As I understand from these questions, I should move to the end the following libraries in the compile command :

    -lvdpau -lX11 -lva*

    But I still didn’t understand where is the place to moving these libraries.
    Please see the output results of the pkg-config command :

    $ pkg-config —libs libavcodec libavformat libswscale libavutil

    -L/usr/local/lib -lavformat -lXv -lX11 -lXext -lstdc++ -lvdpau -lva -lva-x11 -lX11 -lva -lva-drm -lva -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -ldc1394 -lssl -lcrypto -lxvidcore -lx264 -lvpx -lm -lvpx -lm -lvpx -lm -lvpx -lm -lvorbisenc -lvorbis -logg -lvo-amrwbenc -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lz -lgmp -lpulse -lopus -lopenjpeg -DOPJ_STATIC /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so -lopencv_calib3d /usr/lib/x86_64-linux-gnu/libopencv_contrib.so -lopencv_contrib /usr/lib/x86_64-linux-gnu/libopencv_core.so -lopencv_core /usr/lib/x86_64-linux-gnu/libopencv_features2d.so -lopencv_features2d /usr/lib/x86_64-linux-gnu/libopencv_flann.so -lopencv_flann /usr/lib/x86_64-linux-gnu/libopencv_gpu.so -lopencv_gpu /usr/lib/x86_64-linux-gnu/libopencv_highgui.so -lopencv_highgui
    /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so -lopencv_imgproc
    /usr/lib/x86_64-linux-gnu/libopencv_legacy.so -lopencv_legacy
    /usr/lib/x86_64-linux-gnu/libopencv_ml.so -lopencv_ml
    /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so -lopencv_objdetect
    /usr/lib/x86_64-linux-gnu/libopencv_ocl.so -lopencv_ocl
    /usr/lib/x86_64-linux-gnu/libopencv_photo.so -lopencv_photo
    /usr/lib/x86_64-linux-gnu/libopencv_stitching.so -lopencv_stitching
    /usr/lib/x86_64-linux-gnu/libopencv_superres.so -lopencv_superres
    /usr/lib/x86_64-linux-gnu/libopencv_ts.so -lopencv_ts
    /usr/lib/x86_64-linux-gnu/libopencv_video.so -lopencv_video
    /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_videostab
    -lopencore-amrwb -lopencore-amrnb -lmp3lame -lgsm -lfreetype -lfdk-aac -lgnutls -lcrystalhd -lm -llzma -lbz2 -lz -pthread -ldl -lavcodec -lXv -lX11 -lXext -lstdc++ -lvdpau -lva -lva-x11 -lX11 -lva -lva-drm -lva -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -ldc1394 -lssl -lcrypto -lxvidcore -lx264 -lvpx -lm -lvpx -lm -lvpx -lm -lvpx -lm -lvorbisenc -lvorbis -logg -lvo-amrwbenc -ltheoraenc -ltheoradec -logg -lspeex -lschroedinger-1.0 -lrtmp -lz -lgmp -lpulse -lopus -lopenjpeg -DOPJ_STATIC /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so -lopencv_calib3d
    /usr/lib/x86_64-linux-gnu/libopencv_contrib.so -lopencv_contrib
    /usr/lib/x86_64-linux-gnu/libopencv_core.so -lopencv_core
    /usr/lib/x86_64-linux-gnu/libopencv_features2d.so -lopencv_features2d
    /usr/lib/x86_64-linux-gnu/libopencv_flann.so -lopencv_flann
    /usr/lib/x86_64-linux-gnu/libopencv_gpu.so -lopencv_gpu
    /usr/lib/x86_64-linux-gnu/libopencv_highgui.so -lopencv_highgui
    /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so -lopencv_imgproc
    /usr/lib/x86_64-linux-gnu/libopencv_legacy.so -lopencv_legacy
    /usr/lib/x86_64-linux-gnu/libopencv_ml.so -lopencv_ml
    /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so -lopencv_objdetect
    /usr/lib/x86_64-linux-gnu/libopencv_ocl.so -lopencv_ocl
    /usr/lib/x86_64-linux-gnu/libopencv_photo.so -lopencv_photo
    /usr/lib/x86_64-linux-gnu/libopencv_stitching.so -lopencv_stitching
    /usr/lib/x86_64-linux-gnu/libopencv_superres.so -lopencv_superres
    /usr/lib/x86_64-linux-gnu/libopencv_ts.so -lopencv_ts
    /usr/lib/x86_64-linux-gnu/libopencv_video.so -lopencv_video
    /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_videostab
    -lopencore-amrwb -lopencore-amrnb -lmp3lame -lgsm -lfreetype -lfdk-aac -lgnutls -lcrystalhd -lm -llzma -lbz2 -lz -pthread -ldl -lswresample -lm -lswscale -lm -lavutil -lm

    And the results only for libavutil library :

    $ pkg-config —libs libavutil

    -L/usr/local/lib -lavutil -lm

    Please also see my VLC
    Makefile

    Can you please to point at the place where these libraries should be reordered ? Also my pkg-config output results are different from the results from the questions above. Any advice or links to solve this question will be helpful.

  • FFMpegWriter() [Error 5] Access Denied

    8 juin 2016, par Guillermo

    So, I’m trying to save animations with the animation.save command. I installed ffmpeg in Windows 10 by placing a folder with its binaries in my drive C :\, I have also set the path in my system variables like C :\ffmpeg\bin, and finally, my code for the animation function saving looks like this

    if save=='True':
        mywriter = animation.FFMpegWriter()
        plt.rcParams['animation.ffmpeg_path'] = 'C:/ffmpeg/bin'
        ani.save('mymovie.avi',writer=mywriter,fps=30)

    and all other kind of variants such as :

       mpl.animation.ffmpeg_path = r'C:\ffmpeg\bin'
       mpl.animation.ffmpeg_path = 'C:\\ffmpeg\\bin'

    No matter what I do, the result is always :

    File "<stdin>", line 2, in <module>
    File "Plot.py", line 168, in animate
    ani.save('mymovie.avi',writer=mywriter,fps=30)
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 801, in save
    with writer.saving(self._fig, filename, dpi):
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\contextlib.py", line 17, in __enter__
    return self.gen.next()
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 194, in saving
    self.setup(*args)
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 184, in setup
    self._run()
    File "c:\users\guillermo\appdata\local\enthought\canopy\user\lib\site-packages\matplotlib\animation.py", line 212, in _run
    creationflags=subprocess_creation_flags)
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
    File "C:\Users\Guillermo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.6.1.3253.win-x86_64\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
    WindowsError: [Error 5] Access Denied
    </module></stdin>

    Any ideas ? :D

    ------------------------------------------------------------------------------

    EDIT : I will reference this answer as it is the one that helped me the best :
    http://stackoverflow.com/a/27017734/6050676

    It worked perfectly when using :

    plt.rcParams['animation.ffmpeg_path'] = 'C:\\ffmpeg\\bin\\ffmpeg.exe'  
  • Error in Splitting Educational Videos into Segments Using Python (ffmpeg issue) [closed]

    28 décembre 2024, par Yahia Mohamed Hanbal

    I created a Python project to split long educational videos into smaller segments, each focused on a single question. The program uses OCR to detect text on video frames, identifies the word "Question," extracts the number following it, and splits the video whenever the number increases.

    &#xA;

    here is the video i am tring to split ((video))

    &#xA;

    Here’s an example of the program’s output :

    &#xA;

    Video loaded: 14071 frames at 60 FPS, duration: 234.52s  &#xA;Frame 480, Time 8.00s, Question: 6  &#xA;...  &#xA;Frame 12360, Time 206.00s, Question: 7  &#xA;Creating segment 1: 8.00s to 206.00s  &#xA;Error: module &#x27;ffmpeg&#x27; has no attribute &#x27;Error&#x27;&#xA;

    &#xA;

    I’ve shared the full code in a GitHub repository for reference : Automated Video Scene Cutting.

    &#xA;

    What the Program Does

    &#xA;

      &#xA;
    • Input : A long educational video.
    • &#xA;

    • Processing :&#xA;
        &#xA;
      • Detects text in each frame using OCR.
      • &#xA;

      • Searches for the word "Question" followed by a number.
      • &#xA;

      • Monitors when the number increases to identify segment boundaries.
      • &#xA;

      &#xA;

    • &#xA;

    • Output : Creates video segments corresponding to individual questions.
    • &#xA;

    &#xA;

    The Problem

    &#xA;

    The program detects the questions and timestamps correctly, but when it tries to create the segments, I encounter the following error :

    &#xA;

    Error: module &#x27;ffmpeg&#x27; has no attribute &#x27;Error&#x27;&#xA;

    &#xA;

    What I’ve Tried

    &#xA;

      &#xA;
    • Verified the ffmpeg-python library is installed (pip show ffmpeg-python confirms the installation).
    • &#xA;

    • Ensured the ffmpeg binary is accessible from the command line.
    • &#xA;

    • Reviewed the library documentation to ensure the correct usage of ffmpeg.
    • &#xA;

    • Tested with different video files to rule out input-specific issues.
    • &#xA;

    &#xA;

    Environment Details

    &#xA;

      &#xA;
    • OS : Windows 11
    • &#xA;

    • Python Version : 3.9.13
    • &#xA;

    • Key Libraries : ffmpeg-python
    • &#xA;

    &#xA;

    If anyone has insights into resolving this issue or suggestions for alternative approaches to handle this use case, I’d greatly appreciate your help.

    &#xA;

    Thank you !

    &#xA;