Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (83)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (15042)

  • Obtaining frames from IP Camera with low latency

    5 février 2023, par Russ1337

    I am currently using this command to get frames from my RTSP stream and reading frames from stdout :

    


    ffmpeg -nostdin -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -


    


    However, I would like to get the same latency as when I see it via ffplay :

    


    ffplay -fflags nobuffer -flags low_delay -tune zerolatency -framedrop -rtsp_transport tcp 


    


    or when I play it via VLC Media > Open Network Stream with :network_caching=300ms.

    


    I would like to know what other parameters I can use with my ffmpeg command to get an equivalent (or better) result compared to the ffplay command.

    


    I have made references from : How to dump raw RTSP stream to file ?, Open CV RTSP camera buffer lag, How to pipe output from ffmpeg using python ?, bad ffmpeg performace compared to ffplay and VLC, How to minimize the delay in a live streaming with ffmpeg

    


    My current implmentation :

    


    FFMPEG_CMD = "ffmpeg -nostdin -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -".split(" ")&#xA;WIDTH = 2560&#xA;HEIGHT = 1440&#xA;&#xA;process = subprocess.Popen(FFMPEG_CMD, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)&#xA;&#xA;while True:&#xA;    raw_frame = process.stdout.read(WIDTH*HEIGHT*3)&#xA;    frame = np.frombuffer(raw_frame, np.uint8) &#xA;    frame = frame.reshape((HEIGHT, WIDTH, 3))&#xA;&#xA;    <do stuff="stuff" with="with" frame="frame"></do> show frame etc.>&#xA;

    &#xA;

    Thanks for reading.

    &#xA;


    &#xA;

    ffmpeg command I am now using for < 1s latency.

    &#xA;

    ffmpeg -nostdin -flags low_delay -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -&#xA;

    &#xA;


    &#xA;

    Implementation with suggestion(s) from Answers :

    &#xA;

    import subprocess&#xA;import numpy as np&#xA;&#xA;FFMPEG_CMD = "ffmpeg -nostdin -flags low_delay -rtsp_transport tcp -i  -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -".split(" ")&#xA;WIDTH = 2560&#xA;HEIGHT = 1440&#xA;&#xA;process = subprocess.Popen(FFMPEG_CMD, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)&#xA;&#xA;raw_frame = np.empty((HEIGHT, WIDTH, 3), np.uint8) &#xA;frame_bytes = memoryview(raw_frame).cast("B")&#xA;&#xA;while process.poll() is None:&#xA;    process.stdout.readinto(frame_bytes)&#xA;    frame = raw_frame.reshape((HEIGHT, WIDTH, 3))&#xA;&#xA;    <do stuff="stuff" with="with" frame="frame"></do> show frame etc.>&#xA;

    &#xA;

  • compiling ffmpeg libs with libvpx enabled on windows

    12 juin 2021, par Satishsuman

    Need some regarding compiling ffmpeg with libvpx enabled on windows. Here is the steps i followed and error i got

    &#xA;&#xA;

      &#xA;
    1. installed msys2 on windows and installed required packages(git,pkg-config,gcc compiler etc)
    2. &#xA;

    3. cloned libvpx from "https://github.com/webmproject/libvpx.git" and created a vs15 solution(command : ./configure —disable-vp8 —disable-vp9-encoder —target=x86_64-win64-vs15)
    4. &#xA;

    5. open vpx.sln and compiled vpxmd.lib sucessfully(created a vpx.pc file and kept include and libs at proper place)
    6. &#xA;

    7. cloned ffmpeg from https://github.com/FFmpeg/FFmpeg.git and from msys2 i tried building it(command : ./configure —enable-asm —enable-yasm —arch=x86_64 —target-os=win64 —disable-encoders —disable-muxers —enable-libvpx —disable-doc —disable-ffplay —disable-ffprobe —disable-ffmpeg —enable-shared —disable-static —disable-bzlib —disable-libopenjpeg —disable-iconv —disable-zlib —prefix=/d/Stadia/FFmpeg —toolchain=msvc —disable-debug)
    8. &#xA;

    &#xA;&#xA;

    ffmpeg libs a building fine but it doesn't include libvpx.&#xA;config.log is below :

    &#xA;&#xA;

    &#xA;

    ./ffconf.NEscC1Fm/test.c(4) : warning C4311 : 'type cast' : pointer&#xA; truncation from 'vpx_codec_iface_t *(__cdecl *)(void)' to 'long'

    &#xA; &#xA;

    ./compat/windows/mslink /usr/local/lib -nologo -I/usr/local/include&#xA; -libpath :/usr/local/lib -out :./ffconf.NEscC1Fm/test.exe ./ffconf.NEscC1Fm/test.o vpx.lib

    &#xA; &#xA;

    LINK : warning LNK4044 : unrecognized option&#xA; '/IC :/msys64/usr/local/include' ; ignored lib.obj(vp8_vp8_dx_iface.obj)&#xA; : MSIL .netmodule or module compiled with /GL found ; restarting link&#xA; with /LTCG ; add /LTCG to the link command line to improve linker&#xA; performance

    &#xA; &#xA;

    LINK : warning LNK4044 : unrecognized option&#xA; '/IC :/msys64/usr/local/include' ; ignored

    &#xA; &#xA;

    LINK : warning LNK4098 : defaultlib 'MSVCRT' conflicts with use of&#xA; other libs ; use /NODEFAULTLIB:library lib.obj(vpx_mem_vpx_mem.obj) : &#xA; error LNK2001 : unresolved external symbol __imp_malloc&#xA; lib.obj(vp8_decoder_threading.obj) : error LNK2001 : unresolved&#xA; external symbol __imp__beginthreadex&#xA; lib.obj(vp8_decoder_decodeframe.obj) : error LNK2001 : unresolved&#xA; external symbol __imp_fopen ./ffconf.NEscC1Fm/test.exe : fatal error&#xA; LNK1120 : 3 unresolved externals

    &#xA; &#xA;

    my msys2 is installed at C :/msys2/ and /home/ correspond to&#xA; C/msys2/home if i use —extra-ldflags="-L/home/usr/local/lib" , linker&#xA; treates it as /LC :/msys2/usr/local/lib and hence fails.

    &#xA;

    &#xA;&#xA;

    A step by step guide would be very much appreciated here

    &#xA;

  • Compile ffmpeg with x264 shows : ERROR : libx264 not found

    6 mai 2019, par NKam

    Trying to install ffmpeg from source with libx264 package. When I compile ffmpeg can’t find x264 because it is not installed.
    I followed ffmpeg installation guide.

    I tried to install and compile ffmpeg locally and found out in folder ffmpeg_build/include I don’t have x264 files installed.

    To compile libx264 I used :

    cd /ffmpeg_sources &&

    git -C x264 pull 2> /dev/null || git clone —depth 1 https://code.videolan.org/videolan/x264.git &&

    cd x264 &&

    PATH="$HOME/bin :$PATH"

    PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure —prefix="$HOME/ffmpeg_build" —bindir="$HOME/bin" —enable-static —enable-pic &&

    PATH="$HOME/bin :$PATH" make &&

    make install

    I changed url to https://code.videolan.org/videolan/x264.git, because this url https://git.videolan.org/git/x264 from guide not working

    Here how config.log’s last lines look like

    test_cflags -Wmaybe-uninitialized
    test_cc -Wmaybe-uninitialized
    BEGIN /tmp/ffconf.1LD1vklR/test.c
       1   int x;
    END /tmp/ffconf.1LD1vklR/test.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/home/nurs/ffmpeg_build/include -std=c11 -fomit-frame-pointer -fPIC -pthread -I/home/nurs/ffmpeg_build/include -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/opus -I/usr/include/opus -I/usr/include/alsa -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wmaybe-uninitialized -c -o /tmp/ffconf.1LD1vklR/test.o /tmp/ffconf.1LD1vklR/test.c

    I want to know what I missed. I want ffmpeg to find x264, if it is not installed how can I find way to install.