Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (56)

  • 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 ;

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

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

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

  • 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

    



      

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


    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. 


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


    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. 


    



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

    



    


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

    
 


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

    
 


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

    
 


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

    
 


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

    
 


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

    


    



    A step by step guide would be very much appreciated here

    


  • 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;