
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (99)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...)
-
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (8841)
-
fatal error:libavcodec/avcodec.h No such file or directory
23 avril 2018, par Colin0114I tried debug ffmpeg on my ubuntu1604 platform, but it always says that it cannot find the headfiles, but actually I did include headfiles in my compiling code.
here is the error message:
error messagehere is my test code :
#include
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
int main(int argc, char * argv[]){
av_register_all();
AVFormatContext *pFormatCtx = NULL;
// Open video file
if (avformat_open_input(&pFormatCtx, argv[1], NULL, NULL) !=0 )
return -1; // Couldn't open file
// Retrieve stream information
if (avformat_find_stream_info(pFormatCtx, NULL) < 0)
return -1; // Couldn't find stream information
// Dump information about file onto standard error
av_dump_format(pFormatCtx, 0, argv[1], 0);
int i;
AVCodecContext *pCodecCtxOrig = NULL;
AVCodecContext *pCodecCtx = NULL;
// Find the first video stream
int videoStream = -1;
for(i=0; inb_streams; i++)
if (pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO){
videoStream = 1;
break;
}
if (videoStream == -1)
return -1; // Didn't find a video stream
// Get a pointer to the codec context for the video stream
pCodecCtx = pFormatCtx->streams[videoStream]->codec;
AVCodec *pCodec = NULL;
// Find the decoder for the video stream
pCodec = avcodec_find_decoder(pCodecCtx->codec_id);
if (pCodec==NULL){
fprintf(stderr, "Unsupported codec!\n");
return -1; // Codec not found
}
// Copy context
pCodecCtx = avcodec_alloc_context3(pCodec);
if (avcodec_copy_context(pCodecCtx, pCodecCtxOrig) !=0 ){
fprintf(stderr, "Couldn't copy codec context");
return -1; // Error copying codec context
}
// Open codec
if (avcodec_open2(pCodecCtx, pCodec, NULL)<0)
return -1; // Could not open codec
AVFrame *pFrame = NULL;
// Allocate video fream
pFrame = av_frame_alloc();
// Allocate an AVFrame structure
AVFrame *pFrameRGB = NULL;
pFrameRGB = av_frame_alloc();
if(pFrameRGB == NULL)
return -1;
}and the following is my Makefile
C++ = gcc
INCLUDE_DIR = ./include
LIB_DIR = ./lib
BIN_DIR = ./build/bin
TARGET = $(BIN_DIR)/mk-screen-caps
INC_PATH += -I./ -I$(INCLUDE_DIR)
LIBS += -lstdc++ -lm -lgcc_s -lgcc -lc
LIBS += $(LIB_DIR)/libavcodec.a $(LIB_DIR)/libavdevice.a
$(LIB_DIR)/libavfilter.a
LIBS += $(LIB_DIR)/libavformat.a $(LIB_DIR)/libavutil.a
$(LIB_DIR)/libfdk-aac.a
LIBS += $(LIB_DIR)/libmp3lame.a $(LIB_DIR)/libopus.a
$(LIB_DIR)/libpostproc.a
LIBS += $(LIB_DIR)/libswresample.a $(LIB_DIR)/libswscale.a
$(LIB_DIR)/libx264.a
LIBS += $(LIB_DIR)/libx265.a $(LIB_DIR)/libyasm.a
C++_FLAGS += -pipe -g -Wall -o0
C_FILES += $(wildcard ./*.c);
CPP_FILES += $(wildcard ./*.cpp)
HEAD_FILES += $(wildcard $(INCLUDE_DIR)/*.h)
C_OBJS=$(C_FILES:.c=.o)
CPP_OBJS=$(CPP_FILES:.cpp=.O)
all: $(TARGET)
$(TARGET): $(CPP_OBJS)
$(C++) $(C++_FLAGS) -o $@ $(CPP_FILES) $(LIBS)
%.o: %.c $(HEAD_FILES)
$(C++) -c $(C_FILES) $(INC_PATH) $< -o $@
%.O: %.cpp $(HEAD_FILES)
$(C++) -c $(CPP_FLAGS) $(INC_PATH) $< -o $@
clean:
rm -f $(TARGET) $(C_OBJS) $(CPP_OBJS)and the following is my directory information :
mk-screen-caps (parent direcotry)
—build
—bin
—include
—(needed include files and directories)
—lib
—(needed libs)
-
FFMPEG MKV Causing Errors in DASH JS
24 juin 2018, par MikeI’m getting the following browser errors (on all browsers) using Dash JS when transcoding and MKV file :
ERROR DOMException: Failed to read the 'buffered' property from 'SourceBuffer': This SourceBuffer has been removed from the parent media source.
and...
dash.all.min.js:26 Uncaught (in promise) DOMException: Failed to load because no supported source was found.
What’s weird is I have no issues when I transcode a MP4 file. I’m using FFMPEG in conjunction with Bento4 to build MPEG DASH and HLS files for my video player.
What I did to single out FFMPEG was to transcode a video that gave me errors on my test server on my local machine (which works) and start the Bento4 process on that file. Doing that, I had no issues and everything played just fine.
I have removed FFMPEG and reinstalled it multiple times and I always get the same result. I’m sure I screwed something up on my server, but for the life of me I can’t seem to figure out where to start with fixing the issue.
FFMPEG Version
ffmpeg version N-91321-ge85c608 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
configuration:
--prefix=/root/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib
--extra-libs=-lpthread
--extra-libs=-lm
--bindir=/root/bin
--enable-gpl
--enable-libfdk_aac
--enable-libfreetype
--enable-libmp3lame
--enable-libopus
--enable-libvorbis
--enable-libtheora
--enable-libx264
--enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 20.102 / 58. 20.102
libavformat 58. 17.100 / 58. 17.100
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 25.100 / 7. 25.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100FFMPEG Command
ffmpeg
-i ${DIRECTORY}/${INPUT_FILE}
-progress ${DIRECTORY}/transcode.log
-s 1920x1080
-c:v libx264
-b:v 3000k
-c:a aac
-b:a 32k
-minrate 3000k
-maxrate 3000k
-bufsize 6000k
-g 96
-keyint_min 96
-sc_threshold 0
-profile:v high
-flags +cgop
-movflags faststart
-preset ultrafast
-pix_fmt yuv420p
${DIRECTORY}/ffmpeg_1920_1080_3000.mp4 &> ${DIRECTORY}/ffmpeg.logAlso, I get no errors and and if I access the output files directly, they play just fine.
I’m sure I’m not including all the information needed to troubleshoot this, so let me know if there is better information I can provide.
What would cause FFMPEG to transcode MP4 and not MKV ?
EDIT
One last thing, I converted the MKV to an MP4 then used the above command and it worked. It’s like MP4 to MP4 is fine, but MKV to MP4 is broke. -
Using ffmpeg in node, without using fluent-ffmpeg
16 mai 2018, par drexdeltaI am using ffmpeg without using fluent-ffmpeg. I am using ’child_process’ from node.
First of all I verified how can I pass more than one arguments to the child process command. and I verified it given below code.
I used copy command like this
cp vid1.mp4 vid2.mp4
which successfully copied vid1 into vid2.
const execFile = require('child_process').execFile;
const child = execFile('cp', ['vid1.mp4', 'vid3.mp4'], (error, stdout, stderr) => {
if (error) {
console.error('stderr: =============================', stderr);
throw error;
}
console.log('stdout: ==========================', stdout);
});
console.log('here');Above code is content of the ’index.js’(default entry point in node). And running this with node . , which copies vid1 into vid3 successfully.
Now, I want to do watermarking to the given video. For that I am using this tutorial. Currently link to the actual tutorial is broken, you can see it here.
This is the command that I am using
ffmpeg -i input.mp4 -i logo.png -filter_complex "overlay=10:10" output.mp4
Now the same command I am using like this ,
const execFile = require('child_process').execFile;
const child = execFile('ffmpeg', ['-i', 'input.mp4' , '-i' , 'logo.png' , '-filter_complex' , '"overlay=10:10"' , 'output.mp4' ], (error, stdout, stderr) => {
if (error) {
console.error('stderr: =============================', stderr);
throw error;
}
console.log('stdout: ==========================', stdout);
});
console.log('here');and I am getting an error , that ,
No such filter : ’"overlay’ Error initializing complex filters. Invalid
argument/Users/neerpatel/Desktop/testProjects/childProcess/index.js:7
throw error ;
^Error : Command failed : ffmpeg -i input.mp4 -i logo.png
-filter_complex "overlay=10:10" output.mp4You can clearly see that the same command that runs in terminal directly, doesn’t work when I pass it in child process. Why does it happen ?
Moreover, I wanted to add tag ’watermarking’ , but I can’t create tag since my reputation is below 1500. please, someone do it.
UPDATE :
I used EXEC , instead of execFile . and it worked like charm, but parent file kept waiting for child process. Child process never returns END signal. and this is my code.const exec = require('child_process').exec;
const child = exec('ffmpeg -i input.mp4 -i logo.png -filter_complex "overlay=10:10" output.mp4', (error, stdout, stderr) => {
if (error) {
console.error('stderr: =============================', stderr);
throw error;
}
console.log('stdout: ==========================', stdout);
});
console.log('here');