
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (41)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7620)
-
How to merge the raw pcm data of two channels ?
15 mai 2019, par maximedupreI have two
Float32Array
s containing the raw pcm data of the left and right channel. Is it possible to create aFloat32Array
that combines both channel ? If so, how would I do that ? Can I simply concatenate the arrays ?Cheers !
-
Mapping v4l2 pixel format codes to ffmpeg pixel format names
12 décembre 2019, par DekiChanI’m building an app that is capturing frames from any v4l2 supported webcam. I’m controlling the camera with v4l2 (golang package https://github.com/blackjack/webcam) and one of the things I need is pixel format. However, what I get is
uint32
representing the format in v4l2.I do the streaming by wrapping ffmpeg command and reading from its
stdout
:args := []string{
"-f", "v4l2",
"-c:v", "rawvideo",
"-pix_fmt", pixFmt,
"-s", size,
"-i", input,
"-f", "image2pipe",
"-c:v", "mjpeg",
"-qscale:v", "5",
"-", // pipes to stdout
}
cmd := exec.Command("ffmpeg", args...)Now the problem is that
-pix_fmt
option requires format name in string that is recognized by ffmpeg (for example 8-bit Bayer RGGB8 corresponds tobayer_rggb8
, while this format in v4l2 has code1111967570
).I found the mapping code for it in ffmpeg’s
libavdevice
: https://github.com/FFmpeg/FFmpeg/blob/master/libavdevice/v4l2-common.h includes the functions I need, but somehow I’m not able to include<libavdevice></libavdevice>v4l2-common.h>
in CGo (no problems with<libavdevice></libavdevice>avdevice.h>
) :package conv
/*
#cgo pkg-config: libavdevice
#include <libavdevice></libavdevice>avdevice.h>
#include <libavdevice></libavdevice>v4l2-common.h>
*/
import "C"
type (
)
// PixFmtToFF takes v4l2 pixel format code and converts it to a string
// recognized by ffmpeg command
// example: 1111967570 to "bayer_rggb8"
func PixFmtToFF(v4l2code uint32) (string, error) {
// should work something like this, couldn't test
codecID := C.ff_fmt_v4l2codec(v4l2code)
pixFmt := C.ff_fmt_v4l2ff(vfd.pixelformat, codec_id)
return C.av_get_pix_fmt_name(pixFmt)
}Build output returns :
go build \
-mod=vendor \
-o ./bin/camera-api \
./cmd/camera-api
# kca/internal/camera/conv
internal/camera/conv/convert.go:6:11: fatal error: libavdevice/v4l2-common.h: No such file or directory
#include <libavdevice></libavdevice>v4l2-common.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:13: build/camera-api] Error 2
make: *** [builder/camera-api] Error 2Output of
pkg-config --libs libavdevice
is-L/usr/local/lib -lavdevice
.So, I have two questions :
1) How could I include
v4l2-common.h
so I can use the mapping functions ?2) Is there a better way ? I need ffmpeg wrapping so we can support wide range of formats for captured frames.
-
cut hls files in to many small ".ts" files or keep one big ".ts" file. which is better ?
5 août 2022, par Evan LeeI need to stream my videos using HLS bytes range HTTP requests.


FFmpeg has an option to keep all the ts file to one single large ".ts" file.


Any pros and cons of split the ts files or keep a big ts file ?


Is a big ts file make the request slower ? because of HDD fseek is slow ?