
Recherche avancée
Autres articles (83)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Participer à sa traduction
10 avril 2011Vous 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, parMediaSPIP 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 Russ1337I 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(" ")
WIDTH = 2560
HEIGHT = 1440

process = subprocess.Popen(FFMPEG_CMD, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)

while True:
 raw_frame = process.stdout.read(WIDTH*HEIGHT*3)
 frame = np.frombuffer(raw_frame, np.uint8) 
 frame = frame.reshape((HEIGHT, WIDTH, 3))

 <do stuff="stuff" with="with" frame="frame"></do> show frame etc.>



Thanks for reading.



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

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




Implementation with suggestion(s) from Answers :


import subprocess
import numpy as np

FFMPEG_CMD = "ffmpeg -nostdin -flags low_delay -rtsp_transport tcp -i -pix_fmt bgr24 -an -vcodec rawvideo -f rawvideo -".split(" ")
WIDTH = 2560
HEIGHT = 1440

process = subprocess.Popen(FFMPEG_CMD, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)

raw_frame = np.empty((HEIGHT, WIDTH, 3), np.uint8) 
frame_bytes = memoryview(raw_frame).cast("B")

while process.poll() is None:
 process.stdout.readinto(frame_bytes)
 frame = raw_frame.reshape((HEIGHT, WIDTH, 3))

 <do stuff="stuff" with="with" frame="frame"></do> show frame etc.>



-
compiling ffmpeg libs with libvpx enabled on windows
12 juin 2021, par SatishsumanNeed some regarding compiling ffmpeg with libvpx enabled on windows. Here is the steps i followed and error i got



- 

- installed msys2 on windows and installed required packages(git,pkg-config,gcc compiler etc)
- 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)
- open vpx.sln and compiled vpxmd.lib sucessfully(created a vpx.pc file and kept include and libs at proper place)
- 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)











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


-
Compile ffmpeg with x264 shows : ERROR : libx264 not found
6 mai 2019, par NKamTrying 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.cI want to know what I missed. I want ffmpeg to find x264, if it is not installed how can I find way to install.