
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (70)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (10529)
-
ffmpeg filter dev get_video_buffer function usage
19 juin 2018, par Michael.MaI’m writing a mosaic ffmpeg filter.
copy code from vf_vflip.c, I register a callback function get_video_buffer
and implement it as follows :static AVFrame *get_video_buffer(AVFilterLink *link, int w, int h)
{
MosaicContext *s = link->dst->priv;
AVFrame *frame;
int i;
int j,k;
frame = ff_get_video_buffer(link->dst->outputs[0], w, h);
if (!frame)
return NULL;
if (s->w == 0 || s->h == 0)
return frame;
for (i = 0; i < 3; i ++) {
// some trick code
}
return frame;
}
static const AVFilterPad avfilter_vf_mosaic_inputs[] = {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
//.get_video_buffer = get_video_buffer,
.filter_frame = filter_frame,
.config_props = config_input,
},
{ NULL }
};But after read some filter dev guide, I found that only a few filter implement get_video_buffer funcition.The default function is f_default_get_video_buffer()
I make some log find that ffmpeg call function likeget_video_buffer
filter_frame
get_video_buffer
filter_frame
get_video_buffer
filter_frame
...I’m confused about get_video_buffer do what job.
Only know that some filter will hold frame cache.
Can I juse comment out the get_video_buffer hook ?I see flip job both in get_video_buffer() and filter_frame() in vf_vflip.c
Is it a waste of time ?static AVFrame *get_video_buffer(AVFilterLink *link, int w, int h)
{
FlipContext *flip = link->dst->priv;
AVFrame *frame;
int i;
frame = ff_get_video_buffer(link->dst->outputs[0], w, h);
if (!frame)
return NULL;
for (i = 0; i < 4; i ++) {
int vsub = i == 1 || i == 2 ? flip->vsub : 0;
int height = AV_CEIL_RSHIFT(h, vsub);
if (frame->data[i]) {
frame->data[i] += (height - 1) * frame->linesize[i];
frame->linesize[i] = -frame->linesize[i];
}
}
return frame;
}
static int filter_frame(AVFilterLink *link, AVFrame *frame)
{
FlipContext *flip = link->dst->priv;
int i;
for (i = 0; i < 4; i ++) {
int vsub = i == 1 || i == 2 ? flip->vsub : 0;
int height = AV_CEIL_RSHIFT(link->h, vsub);
if (frame->data[i]) {
frame->data[i] += (height - 1) * frame->linesize[i];
frame->linesize[i] = -frame->linesize[i];
}
}
return ff_filter_frame(link->dst->outputs[0], frame);
} -
Error : mingw32/bin/ld.exe : cannot find -lavformat when compiling goav
18 avril 2018, par nevernewI’m trying to compile goav on Windows and I’ve got quite far I’ve compiled the ffmpeg libraries in MSYS2 and linked the packages with :
set CGO_CFLAGS=-IC:\path\to\FFmpeg\
set PKG_CONFIG_PATH=%~dp0FFmpeg\libavformat;%~dp0FFmpeg\libavcodec;%~dp0FFmpeg\libavutil;%~dp0FFmpeg\libswresample;which has worked !
However, I’m now getting the error
could not determine kind of name for ...
Here’s the whole error list :
# github.com/giorgisio/goav/avcodec
source\src\github.com\giorgisio\goav\avcodec\codecs.go:57:52: could not determine kind of name for C.AV_CODEC_ID_ADPCM_VIMA_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:93:52: could not determine kind of name for C.AV_CODEC_ID_BRENDER_PIX_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:131:52: could not determine kind of name for C.AV_CODEC_ID_ESCAPE130_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:134:52: could not determine kind of name for C.AV_CODEC_ID_EXR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:151:52: could not determine kind of name for C.AV_CODEC_ID_G2M_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:164:52: could not determine kind of name for C.AV_CODEC_ID_HEVC_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:211:52: could not determine kind of name for C.AV_CODEC_ID_MPEG2VIDEO_XVMC
source\src\github.com\giorgisio\goav\avcodec\codecs.go:228:52: could not determine kind of name for C.AV_CODEC_ID_MVC1_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:230:52: could not determine kind of name for C.AV_CODEC_ID_MVC2_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:237:52: could not determine kind of name for C.AV_CODEC_ID_OPUS_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:240:52: could not determine kind of name for C.AV_CODEC_ID_PAF_AUDIO_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:242:52: could not determine kind of name for C.AV_CODEC_ID_PAF_VIDEO_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:262:52: could not determine kind of name for C.AV_CODEC_ID_PCM_S24LE_PLANAR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:266:52: could not determine kind of name for C.AV_CODEC_ID_PCM_S32LE_PLANAR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:311:52: could not determine kind of name for C.AV_CODEC_ID_SANM_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:314:52: could not determine kind of name for C.AV_CODEC_ID_SGIRLE_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:338:52: could not determine kind of name for C.AV_CODEC_ID_TAK_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:373:52: could not determine kind of name for C.AV_CODEC_ID_VIMA
source\src\github.com\giorgisio\goav\avcodec\codecs.go:379:52: could not determine kind of name for C.AV_CODEC_ID_VOXWARE
source\src\github.com\giorgisio\goav\avcodec\codecs.go:386:52: could not determine kind of name for C.AV_CODEC_ID_VP7_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:392:52: could not determine kind of name for C.AV_CODEC_ID_WEBP_DEPRECATED
compilation failed.
exit code 2How can I fix this so it can finish compiling ?
More Errors :
I commented out those lines in the source file to see if I could continue, but now I’m getting all these errors, Obviously I’m missing some step, does anyone have any insight ?
# github.com/giorgisio/goav/avcodec
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavformat
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lbz2
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavcodec
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lz
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lswresample
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavutil
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lbcrypt
collect2.exe: error: ld returned 1 exit status
# github.com/giorgisio/goav/avcodec
cgo-gcc-prolog: In function '_cgo_3a37b7d41a30_Cfunc_av_codec_get_max_lowres':
cgo-gcc-prolog:40:2: warning: 'av_codec_get_max_lowres' is deprecated [-Wdeprecated-declarations]
In file included from C:\Users\chris\Documents\videoplayer\FFmpeg/libavformat/avformat.h:319:0,
from source\src\github.com\giorgisio\goav\avcodec\avcodec.go:14:
C:\Users\chris\Documents\videoplayer\FFmpeg/libavcodec/avcodec.h:3554:5: note: declared here
int av_codec_get_max_lowres(const AVCodec *codec);
^~~~~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function '_cgo_3a37b7d41a30_Cfunc_av_codec_next':
cgo-gcc-prolog:91:2: warning: 'av_codec_next' is deprecated [-Wdeprecated-declarations]
In file included from C:\Users\chris\Documents\videoplayer\FFmpeg/libavformat/avformat.h:319:0,
from source\src\github.com\giorgisio\goav\avcodec\avcodec.go:14:
C:\Users\chris\Documents\videoplayer\FFmpeg/libavcodec/avcodec.h:4045:10: note: declared here
AVCodec *av_codec_next(const AVCodec *c);
.... -
Ffmpeg returning error code 1 in AWS Lamda function
14 avril 2018, par TometoyouI’m running a lambda function which takes an
mp4
video, and adds a watermark of apng
image over the top of it in the bottom right hand corner (with a10px
margin). It then outputs that image to a temporary location. It keeps failing withError code 1
, but that isn’t very helpful. I’m using a binary version offfmpeg
that is specified in the main directory of the code. I know thatffmpeg
is set up correctly due to using it in another lambda function in this way, which works. But adding an overlay fails. Here is the relevant part of my code :function addWatermark(next) {
var ffmpeg = child_process.spawn("ffmpeg", [
"-i", target, // url to stream from
"-i", watermarkPath,
"-filter_complex" ,"overlay=x=W-w-10:y=H-h-10:format=rgb,format=yuv420p",
"-c:a", "copy",
"pipe:1"
]);
ffmpeg.on("error", function(err) {
console.log(err);
})
ffmpeg.on("close", function(code) {
if (code != 0 ) {
console.log("child process exited with code " + code); // Always exits here.
} else {
console.log("Processing finished !");
}
tmpFile.end();
next(code);
});
tmpFile.on("error", function(err) {
console.log("stream err: ", err);
});
ffmpeg.on("end", function() {
tmpFile.end();
})
ffmpeg.stdout.pipe(tmpFile)
.on("error", function(err){
console.log("error while writing: ",err);
});
}Can anyone spot what may be wrong ?
UPDATE
I’ve managed to print out some more logs, I’m getting the error :
[NULL @ 0x42923e0] Unable to find a suitable output format for 'pipe:1'