
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (15)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
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 (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (3807)
-
PHP script to close the ffmpeg session
14 octobre 2016, par Kiran Kumar SWe’ve made a PHP script to run the ffmpeg on a Windows 7 machine in background as below :
<?php
date_default_timezone_set('Asia/Kolkata');
$date = date('dmY_His', time());
$outputdst = ("C:/Users/test/Desktop/$date");
$cmd = "ffmpeg -f dshow -i video=screen-capture-recorder -r 15 -t 360 $outputdst.avi ";
$WshShell = new COM("WScript.Shell");
$WshShell->Run($cmd, 0, false);
?>The script is able to start the screen recording. Now the issue is if I kill the process, then the recorded file is not playing. How to stop ffmpeg without corrupting the recorded file ?
-
ffmpeg video recording hangs in Emacs
3 mars, par NutritioustimA. Using
ffmpeg
, both of these audio and video captures work correctly in a shell.

# Audio
ffmpeg -y -f avfoundation -t 5 -i :0 -c:a aac audio-recording.m4a

# Video
# i. video only
# ii. audio & video
ffmpeg -y -f avfoundation -framerate 30 -i 0 -t 10 -c:v libx264 -preset fast -pix_fmt yuv420p video-recording.mp4
ffmpeg -y -f avfoundation -framerate 30 -pixel_format "uyvy422" -i 0:0 -t 10 -c:v libx264 -preset fast -pix_fmt yuv420p audio-video-recording.mp4



B. In Emacs (29.4, "Emacs For Mac OS X"), this audio code block completes, and prints the successful callback message
ffmpeg-audio , finished
.

# Audio, completes successfully
(setq ffmpeg-record--process
 (apply 'start-process "ffmpeg-audio" "*ffmpeg-recording*"
 (list "ffmpeg" "-y" "-f" "avfoundation" "-i" ":0" "-t" "10" "-c:a" "aac" "audio-recording.m4a")))

(set-process-sentinel
 ffmpeg-record--process
 (lambda (process event)
 (message "%s , %s" process event)))



But the video code block hangs, and does not complete with any output message.


# Video, hangs after an initial message
(setq ffmpeg-record--process
 (apply 'start-process "ffmpeg-video" "*ffmpeg-recording*"
 (list "ffmpeg" "-y" "-f" "avfoundation" "-framerate" "30" "-pixel_format" "uyvy422" "-i" "0:none" "-t" "10" "-c:v"
 "libx264" "-preset" "fast" "-pix_fmt" "yuv420p" "video-recording.mp4")))
(set-process-sentinel
 ffmpeg-record--process
 (lambda (process event)
 (message "%s , %s" process event)))



C. Running diagnostics on the
ffmpeg-record--process
variable shows the process is still running even after the 10 second duration (-t 10
) is long over.

(message "Process: %s, PID: %s, Status: %s"
 (process-name ffmpeg-record--process)
 (process-id ffmpeg-record--process)
 (process-status ffmpeg-record--process))



D. Presumably, it is
start-process
that is not properly handling the invocation.

But why then is the
ffmpeg
video invocation hanging, only in Emacs (not in the shell)... when the (Emacs) audio invocation completes fine ?

-
errors of 'vaGetDisplay' and `vaGetDisplayDRM'
30 août 2016, par KindermannAfter updating my ubuntu OS from 14.04 to 16.04, I installed the ffmpeg library 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" make
make installIt seemed to me the installation process was ok. After that, I tried to compile my own C source code with the following Makefile :
EDITTED(adding -lva-drm -lva-x11 at line 10)
FFMPEG_LIBS= libavdevice \
libavformat \
libavfilter \
libavcodec \
libswresample \
libswscale \
libavutil \
TARGET = video_analysis
LIBS = -lva -lX11 -lvdpau -lm -lva-drm -lva-x11
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)However, my compiler complained the following errors :
/root/ffmpeg_build/lib/libavutil.a(hwcontext_vaapi.o): In function `vaapi_device_create':
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:896: undefined reference to `vaGetDisplay'
/home/widerstand/ffmpeg_sources/ffmpeg/libavutil/hwcontext_vaapi.c:917: undefined reference to `vaGetDisplayDRM'
collect2: error: ld returned 1 exit status
Makefile:30: recipe for target 'video_analysis' failed
make: *** [video_analysis] Error 1My question is : in which library do ’vaGetDisplay’ and `vaGetDisplayDRM’ exist ? It’s for sure that libva functions properly. I have no clue how to fix the bugs...Thank you in advance !