
Recherche avancée
Autres articles (51)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (9790)
-
Static image and a folder of mp3's ?
28 juin 2013, par ShirohigeI want to create a bunch of videos consisting of an single image which is shown throughout the whole video but each video has a different audio file. I can do it manually with various tools but the problem is that I have a lot of audio files and I can't optimize the frame rate (more on that later) and it takes a lot of time to do it that way but ffmpeg offers everything I need but the problem is that I don't know how to batch process everything.
The basic code :
ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r frame-rate -t song-length -acodec copy output.mp4
What I want to achieve :
Let's say that I have a folder which consists of several audio files : song-name-1.mp3, song-name-2.mp3, ..., song-name-n.mp3 and cover.jpg.I need a batch file which takes the name of every mp3 file in a folder (a FOR loop I suppose) and processes it with the same command :
ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r frame-rate -t song-length -acodec copy output.mp4
So the image is always the same for every video. The song length can be taken with the tool mp3info and the corresponding command :
mp3info.exe -p %S song-name.mp3
Since I only have one image throughout the whole video, the optimal frame rate would be the inverse of the video length which is 1/length (where length is a variable in seconds which we get from mp3info).
So the final code should look something like this :
ffmpeg -i song-name.mp3 -loop 1 -i cover.jpg -r 1/length -t length -acodec copy song-name.mp4
Where "song-name" is a variable which changes for every iteration of the FOR loop (i.e. for every audio file in the folder) and length is a variable whose value we get with the command :
mp3info.exe -p %S song-name.mp3
I found examples of a FOR loop to fetch all file names of all mp3's in a specific folder but I do not know how to integrate mp3info. I hope that somebody can help me and I have some knowledge of the C programming language if that can be used in any way.
-
avi encoded to streaming mp4 or webmnot playing in html5 player
30 mai 2013, par Vprnl[EDIT]
I'm trying to get ffmpeg to encode various AVI files to mp4 for streaming purposes
I use this nodejs to start FFMPEG.
When I try this (webm) (some settings are wrapped by the node module but produce the default FFMPEG command) with this command :
.withVideoCodec('libvpx')
.addOptions(['-bf 8','-bt 240k','-preset fast','-strict -2','-b:v 320K','-bufsize 62000', '-maxrate 620k','-movflags +empty_moov','-y'])
.withAudioBitrate('192k')
.withAudioCodec('libvorbis')
.toFormat('webm')The video get's streamed properly to the client but the duration isn't passed on. So the video has a duration of 'infinite'.
So I tried to encode with H264. Which also works (I see the duration being set in the client) but no picture sadly.
For H264 I use :
.addOptions(['-y','-vcodec libx264','-bf 8','-bt 240k','-preset fast','-strict -2','-b:v 320K','-bufsize 62000', '-maxrate 620k','-acodec aac','-ab 128k','-movflags +empty_moov'])
.toFormat('mp4')I get this log :
I hope someone can point me in the right direction. Thanks !
The client just gives an undefined error.
I hope someone can point me in the right direction.Thanks
-
Ubuntu12.04 : libavformat header trouble when compiling C program
30 mai 2013, par Juneyoung OhMy code is super simple, just include "avformat.h" and call "av_register_all".
full code is below.
1 #include
2 #include
3 #include
4 //#include <libavcodec></libavcodec>avcodec.h>
5 #include <libavformat></libavformat>avformat.h>
6 //#include "libavcodec/avcodec.h"
7 //#include "libavformat/avformat.h"
8
9
10 int main (int argc, char* argv[]){
11 av_register_all();
12 /*
13 AVFormatContext* pFormatCtx;
14 const char* filename = "/home/juneyoungoh/Videos/CON1234ID.ts";
15
16 if(av_open_input_file(&pFormatCtx, filename, NULL, 0, NULL) != 0)
17 {
18 handle_error();
19 }
20
21 if(av_find_stream_info(pFormatCtx) < 0)
22 {
23 handle_error();
24 }
25
26 dump_format(pFormatCtx, 0, filename, 1);
27
28 //av_get_audio_frame_duration();
29 */
30 return 0;
31 }The problem is when I compile this in Terminal it show error.
/tmp/ccvgpGjv.o: In function `main':
getDuration.c:(.text+0x10): undefined reference to `av_register_all'
collect2: ld returned 1 exit statusmy avformat.h file is in
/usr/local/include/libavformat/avformat.h
.Here is something I have already tried.
- gcc getDuration.c
- gcc -I/usr/local/include/ getDuration.c
- gcc -I/usr/local/include/libavformat/ getDuration.c
- gcc -L/usr/local/include/ getDuration.c
- gcc -L/usr/local/include/libavformat/ getDuration.c
- gcc getDuration.c -lavformat
Give me the light of hope +_+