
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (19)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4500)
-
I need help merging two videos with ffpmeg
25 juillet 2023, par WolparzinsI get an error when I try to merge two videos with FFMPEG.
It should take the resolution etc. from the first video.
I get the following error :




Input link in0:v0 parameters (size 1080x1920, SAR 1:1) do not match the corresponding output link in0:v0 parameters (1080x1920, SAR 4:5)




My console arguments are :


-y -i "/home/test/Videos/Videos/First Video.mp4" -i "/home/test/Videos/Videos/Reference_Sub_884.mp4" -filter_complex "[0:v][1:v]scale2ref=iw:-2[v0][v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[out]" -map "[out]" -r 30 -b:v 2M "/home/test/Videos/Output/First Video.mp4_Reference_Sub_884.mp4"



Can anyone help me with this ?


-
No valid H.264 encoder was found with the ffmpeg installation [closed]
20 juin 2023, par EmJayI installed imageio-ffmpeg properly but encounterd the following error.


Iteration 09990: train_psnr = 20.76 test_psnr = 0.00 mse = 0.008295: 40%|██████▍ | 9999/25000 [13:15<19:53, 12.57it/s]
Traceback (most recent call last):
 File "/home/Code/OR_NeRF_custom/comparison/TensoRF/train.py", line 429, in <module>
 reconstruction(args)
 File "/home/Code/OR_NeRF_custom/comparison/TensoRF/train.py", line 343, in reconstruction
 PSNRs_test = evaluation(test_dataset, tensorf, args, renderer, f'{logfolder}/imgs_vis/', N_vis=args.N_vis,
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
 return func(*args, **kwargs)
 File "/home/Code/OR_NeRF_custom/comparison/TensoRF/renderer.py", line 78, in evaluation
 imageio.mimwrite(f'{savePath}/{prtx}video.mp4', np.stack(rgb_maps), fps=30, quality=10)
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio/v2.py", line 495, in
mimwrite
 return file.write(ims, is_batch=True, **kwargs)
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio/core/legacy_plugin_wrapper.py", line 253, in write
 writer.append_data(image, metadata)
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio/core/format.py", line 590, in append_data
 return self._append_data(im, total_meta)
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio/plugins/ffmpeg.py", line 587, in _append_data
 self._initialize()
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio/plugins/ffmpeg.py", line 648, in _initialize
 self._write_gen.send(None)
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio_ffmpeg/_io.py", line
509, in write_frames
 codec = get_first_available_h264_encoder()
 File "/home/Home/Install/anaconda3/envs/ornerf/lib/python3.9/site-packages/imageio_ffmpeg/_io.py", line
130, in get_first_available_h264_encoder
 raise RuntimeError(
RuntimeError: No valid H.264 encoder was found with the ffmpeg installation
</module>


These are the installed libraries starts with 'im' listed by conda.


imagecodecs 2021.8.26 py39hfcb8610_2
imageio 2.31.1 pyh24c5eb1_0 conda-forge
imageio-ffmpeg 0.4.8 pyhd8ed1ab_0 conda-forge
imagemagick 7.1.1_5 pl5321h211c493_1 conda-forge
imgaug 0.4.0 pypi_0 pypi
importlib-metadata 6.6.0 pypi_0 pypi
importlib-resources 5.12.0 pypi_0 pypi



Since I'm not capable of using sudo, I hope the suggested answers to be independent to sudo instruction.


-
errors when compiling c code with ffmpeg library
2 mai 2017, par KindermannI’ve installed ffmpeg library in my new ubuntu 16.04 OS. When I tried to compile my c code, I got the following strange errors :
/home/widerstand/ffmpeg_build/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_free':
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:861: undefined reference to `XCloseDisplay'
/home/widerstand/ffmpeg_build/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:891: undefined reference to `XOpenDisplay'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:896: undefined reference to `vaGetDisplay'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:903: undefined reference to `XDisplayName'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:893: undefined reference to `XDisplayName'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:917: undefined reference to `vaGetDisplayDRM'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:891: undefined reference to `XOpenDisplay'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:893: undefined reference to `XDisplayName'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:898: undefined reference to `XDisplayName'
/home/widerstand/ffmpeg_build/lib/libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_create':
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:431: undefined reference to `XOpenDisplay'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:437: undefined reference to `XDisplayString'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:439: undefined reference to `XDefaultScreen'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:439: undefined reference to `vdp_device_create_x11'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:433: undefined reference to `XDisplayName'
/home/widerstand/ffmpeg_build/lib/libavutil.a(hwcontext_vdpau.o): In function `vdpau_device_free':
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vdpau.c:410: undefined reference to `XCloseDisplay'
collect2: error: ld returned 1 exit status
Makefile:30: recipe for target 'video_analysis' failed
make: *** [video_analysis] Error 1I’ve reinstalled ffmpeg library multiple times using the following configurations :
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-nonfree
PATH="$HOME/bin:$PATH" makeThe installation process was successful each time. But when I tried to compile my own c code, I always encountered the same errors as mentioned above. I have no idea about that...
Here is the makefile I used :EDIT :
FFMPEG_LIBS= libavdevice \
libavformat \
libavfilter \
libavcodec \
libswresample \
libswscale \
libavutil \
TARGET = video_analysis
LIBS = -lX11 -lm -lvdpau -lva
CC = gcc
CFLAGS += -O2 -g -O0
CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
.PHONY: default all clean
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) $(LDLIBS) $(LIBS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)EDIT :
Afer swapping $(LIBS) and $(LDLIBS) to be $(LDLIBS) $(LIBS) at line 30, it looks much better, but the compiler still reports the following errors :
/root/ffmpeg_build/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:896: undefined reference to `vaGetDisplay'
/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:917: undefined reference to `vaGetDisplayDRM'I have no idea which library is still missing ? It looks as if libva were still missing ?...
I got the answer by myself...Have a look at here : errors of ’vaGetDisplay’ and `vaGetDisplayDRM’