Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (97)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

Sur d’autres sites (15825)

  • libx264.so.146 not found while compiling C++ code or x264 itself

    27 février 2017, par Laurent Loots

    I just upgraded my system from Ubuntu 15.10 to Ubuntu 16.04 LTS. Now, for some reason my C++ project won’t compile anymore. CLion keeps saying it’s missing ’libx264.so.146 as you can see in the compile log :

    /home/lorre851/CLion/bin/cmake/bin/cmake --build /home/lorre851/.CLion12/system/cmake/generated/ce7171e4/ce7171e4/Release --target main -- -j 8
    [ 20%] Linking CXX executable build/main
    /usr/bin/ld: warning: libx264.so.146, needed by /usr/local/lib/libavcodec.so.57, not found (try using -rpath or -rpath-link)
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_open_146'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_close'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_bit_depth'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_headers'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_encode'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_reconfig'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_parse'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_apply_profile'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_apply_fastfirstpass'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_levels'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_picture_init'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_default'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_default_preset'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_delayed_frames'
    collect2: error: ld returned 1 exit status
    CMakeFiles/main.dir/build.make:172: recipe for target 'build/main' failed
    make[3]: *** [build/main] Error 1
    CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/main.dir/all' failed
    make[2]: *** [CMakeFiles/main.dir/all] Error 2
    CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/main.dir/rule' failed
    make[1]: *** [CMakeFiles/main.dir/rule] Error 2
    Makefile:118: recipe for target 'main' failed
    make: *** [main] Error 2

    Most people seem to give ’reinstalling x264’ as a solution. However, reinstalling x264 with the following commands leads to the same error while compiling x264 itself.

    git clone git://git.videolan.org/x264
    cd x264
    ./configure --enable-static
    make

    /usr/bin/ld: warning: libx264.so.146, needed by /usr/local/lib/libavcodec.so, not found (try using -rpath or -rpath-link)
    /usr/local/lib/libavcodec.so: undefined reference to `x264_encoder_open_146'
    collect2: error: ld returned 1 exit status
    Makefile:202: recipe for target 'x264' failed
    make: *** [x264] Error 1

    Does anyone have an idea how I could get around this ?

  • libx264.so.146 not found while compiling C++ code or x264 itself

    27 février 2017, par Laurent Loots

    I just upgraded my system from Ubuntu 15.10 to Ubuntu 16.04 LTS. Now, for some reason my C++ project won’t compile anymore. CLion keeps saying it’s missing ’libx264.so.146 as you can see in the compile log :

    /home/lorre851/CLion/bin/cmake/bin/cmake --build /home/lorre851/.CLion12/system/cmake/generated/ce7171e4/ce7171e4/Release --target main -- -j 8
    [ 20%] Linking CXX executable build/main
    /usr/bin/ld: warning: libx264.so.146, needed by /usr/local/lib/libavcodec.so.57, not found (try using -rpath or -rpath-link)
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_open_146'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_close'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_bit_depth'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_headers'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_encode'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_reconfig'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_parse'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_apply_profile'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_apply_fastfirstpass'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_levels'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_picture_init'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_default'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_param_default_preset'
    /usr/local/lib/libavcodec.so.57: undefined reference to `x264_encoder_delayed_frames'
    collect2: error: ld returned 1 exit status
    CMakeFiles/main.dir/build.make:172: recipe for target 'build/main' failed
    make[3]: *** [build/main] Error 1
    CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/main.dir/all' failed
    make[2]: *** [CMakeFiles/main.dir/all] Error 2
    CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/main.dir/rule' failed
    make[1]: *** [CMakeFiles/main.dir/rule] Error 2
    Makefile:118: recipe for target 'main' failed
    make: *** [main] Error 2

    Most people seem to give ’reinstalling x264’ as a solution. However, reinstalling x264 with the following commands leads to the same error while compiling x264 itself.

    git clone git://git.videolan.org/x264
    cd x264
    ./configure --enable-static
    make

    /usr/bin/ld: warning: libx264.so.146, needed by /usr/local/lib/libavcodec.so, not found (try using -rpath or -rpath-link)
    /usr/local/lib/libavcodec.so: undefined reference to `x264_encoder_open_146'
    collect2: error: ld returned 1 exit status
    Makefile:202: recipe for target 'x264' failed
    make: *** [x264] Error 1

    Does anyone have an idea how I could get around this ?

  • Python & OpenCV - VideoCapture.read() always returns false

    21 août 2017, par Julen

    I need to extract frames from a video at a given time, and I’m using OpenCV for it. I’m using Linux Mint 18.1, but it must also run on Ubuntu.

    This code example is not working for me :

    import cv2

    print('making screenshot from {0}'.format('/tmp/big_buck_bunny_720p_5mb.mp4'))

    cap = cv2.VideoCapture(video_path)
    cap.set(cv2.CAP_PROP_POS_MSEC,1000)
    ret,frame = cap.read()
    print(ret)                      # This is false
    cv2.imwrite("image.jpg", frame) # Creates an empty file

    (I’ve checked that the path of the video is correct and that the file is not corrupted).

    I have installed the Python OpenCV 3.3.0 version :

    >>> import cv2
    >>> cv2.__version__
    '3.3.0'

    I’ve compiled and installed the source for OpenCV (with the WITH_FFMPEG=ON option) :

    git clone https://github.com/Itseez/opencv.git /tmp/opencv-3                                                                                                                                                                                
    /tmp/opencv-3                                                                                                                                                                                                                            
    mkdir -p release                                                                                                                                                                                                                            
    cd release                                                                                                                                                                                                                                  
    cmake -D WITH_FFMPEG=ON -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..                                                                                                                                                  
    make                                                                                                                                                                                                                                        
    sudo make install    

    The output of ffmpeg -version is the following :

    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
    configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 40.101 /  5. 40.101
    libavresample   2.  1.  0 /  2.  1.  0
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
    libpostproc    53.  3.100 / 53.  3.100

    What am I missing ?