Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (58)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

Sur d’autres sites (8087)

  • error while compiling simple c++ file with libavformat library

    21 février 2023, par Abdo Daood

    i create simple c++ file called test.cpp

    


    #include <iostream>&#xA;#include &#xA;using namespace std;&#xA;&#xA;int main() &#xA;{&#xA;    cout &lt;&lt; "Hello, World!";&#xA;    return 0;&#xA;}&#xA;&#xA;</iostream>

    &#xA;

    and using g++ in terminal to compile test.cpp file with the command :

    &#xA;

    &#xA;

    g++ test.cpp -o test

    &#xA;

    &#xA;

    i get this error =>

    &#xA;

    test.cpp:2:10: fatal error: libavformat\avformat.h: No such file or directory&#xA;    2 | #include &#xA;      |          ^~~~~~~~~~~~~~~~~~~~~~~~&#xA;compilation terminated.&#xA;

    &#xA;

    Notes :&#xA;libavformat\avformat.h path is : /usr/include/x86_64-linux-gnu/libavformat/avformat.h

    &#xA;

    and using ffmpeg version is :

    &#xA;

    $ ffmpeg -version

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;configuration : —prefix=/usr —extra-version=0ubuntu0.22.04.1 —toolchain=hardened —libdir=/usr/lib/x86_64-linux-gnu —incdir=/usr/include/x86_64-linux-gnu —arch=amd64 —enable-gpl —disable-stripping —enable-gnutls —enable-ladspa —enable-libaom —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libcdio —enable-libcodec2 —enable-libdav1d —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable-libjack —enable-libmp3lame —enable-libmysofa —enable-libopenjpeg —enable-libopenmpt —enable-libopus —enable-libpulse —enable-librabbitmq —enable-librubberband —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libsrt —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzimg —enable-libzmq —enable-libzvbi —enable-lv2 —enable-omx —enable-openal —enable-opencl —enable-opengl —enable-sdl2 —enable-pocketsphinx —enable-librsvg —enable-libmfx —enable-libdc1394 —enable-libdrm —enable-libiec61883 —enable-chromaprint —enable-frei0r —enable-libx264 —enable-shared&#xA;libavutil 56. 70.100 / 56. 70.100&#xA;libavcodec 58.134.100 / 58.134.100&#xA;libavformat 58. 76.100 / 58. 76.100&#xA;libavdevice 58. 13.100 / 58. 13.100&#xA;libavfilter 7.110.100 / 7.110.100&#xA;libswscale 5. 9.100 / 5. 9.100&#xA;libswresample 3. 9.100 / 3. 9.100&#xA;libpostproc 55. 9.100 / 55. 9.100

    &#xA;

    using this command :

    &#xA;

    g&#x2B;&#x2B; `pkg-config --cflags libavformat` test.cpp  `pkg-config --libs libavformat` -o test&#xA;&#xA;

    &#xA;

  • FFmpeg hevc_nvenc encoder B Frame problem

    16 mai 2023, par ramondq

    I'm using the latest FFmpeg windows Build (2022-12-02 12:44) from BtbN.&#xA;I'm trying to encode a video into HEVC codec using hevc_nvenc encoder. But it says [hevc_nvenc @ 00000263983f4280] B frames as references are not supported. Cause my GPU GTX1060 (GP106) doesn't support hardware accelerate encode HEVC of B frames.&#xA;command line

    &#xA;

    I tried to disable the B frames by adding the parameter -bf 0, but it doesn't work.&#xA;Then I tried to use the latest build from gyan.dev and it is the same. But when I tried to use an older build (2021-02-28 12:32) of BtbN, it doesn't have the problem.&#xA;Is there a workaround to bypass this B frame problem ? Cause I don't want to switch to an older build. Thanks.

    &#xA;

  • Why does OpenCV read video faster than FFMPEG ?

    17 septembre 2022, par tadejsv

    I noticed that OpenCV reads video frames almost 2x faster than FFMPEG.

    &#xA;

    Why is that ? I thought all OpenCV does is call FFMPEG under the hood, possibly adding its own overhead.

    &#xA;

    Here's the code I use to obtain these results

    &#xA;

    import cv2&#xA;import time&#xA;import numpy as np&#xA;&#xA;cap = cv2.VideoCapture("BigBuckBunny.mp4", apiPreference=cv2.CAP_FFMPEG)&#xA;frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))&#xA;&#xA;start = time.perf_counter()&#xA;while True:&#xA;    ret, frame = cap.read()&#xA;    if ret is False:&#xA;        break&#xA;    assert frame.shape == (720, 1280, 3)&#xA;    assert frame.dtype == np.uint8&#xA;end = time.perf_counter()&#xA;&#xA;print(f"{frames/(end-start):.1f} frames per second")&#xA;# Output: 692.3 frames per second&#xA;&#xA;cap.release()&#xA;

    &#xA;

    For FFMPEG (using the python-ffmpeg library :

    &#xA;

    import ffmpeg&#xA;import numpy as np&#xA;import time&#xA;&#xA;vid_info = ffmpeg.probe("BigBuckBunny.mp4")[&#x27;streams&#x27;][1]&#xA;frames = int(vid_info[&#x27;nb_frames&#x27;])&#xA;&#xA;process1 = (&#xA;    ffmpeg&#xA;    .input("BigBuckBunny.mp4")&#xA;    .output(&#x27;pipe:&#x27;, format=&#x27;rawvideo&#x27;, pix_fmt=&#x27;bgr24&#x27;)&#xA;)&#xA;print(process1.compile())&#xA;# Output: [&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, &#x27;BigBuckBunny.mp4&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#x27;-pix_fmt&#x27;, &#x27;bgr24&#x27;, &#x27;pipe:&#x27;]&#xA;&#xA;&#xA;process1 = process1.run_async(pipe_stdout=True)&#xA;&#xA;start = time.perf_counter()&#xA;while True:&#xA;    in_bytes = process1.stdout.read(1280 * 720 * 3)&#xA;    if not in_bytes:&#xA;        break&#xA;    frame = np.frombuffer(in_bytes, np.uint8).reshape([720, 1280, 3])&#xA;end = time.perf_counter()&#xA;print(f"{frames/(end-start):.1f} frames per second")&#xA;# Output: 373.6 frames per second&#xA;process1.wait()&#xA;

    &#xA;

    Here's information about the video ( 10 minutes length)

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;BigBuckBunny.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isomavc1mp42&#xA;    creation_time   : 2010-01-10T08:29:06.000000Z&#xA;  Duration: 00:09:56.47, start: 0.000000, bitrate: 2119 kb/s&#xA;  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2010-01-10T08:29:06.000000Z&#xA;      handler_name    : (C) 2007 Google Inc. v08.13.2007.&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1991 kb/s, 24 fps, 24 tbr, 24k tbn, 48 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2010-01-10T08:29:06.000000Z&#xA;      handler_name    : (C) 2007 Google Inc. v08.13.2007.&#xA;      vendor_id       : [0][0][0][0]&#xA;

    &#xA;

    And FFMPEG and OpenCV versions :

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;

    &#xA;

    opencv-python-headless        4.6.0.66&#xA;

    &#xA;