
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (31)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
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 (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (5020)
-
Use fluent-ffmpeg to tell if a file is a video or audio
11 août 2016, par afterglowleeI am using node-fluent-ffmpeg module in NodeJS. It is very good that fluent-ffmpeg provides functions to get the metadata of a video and audio file.
https://github.com/schaermu/node-fluent-ffmpeg#reading-video-metadata
I have tried on Mac OS to use the "resolution" attribute in the metadata to tell if a file is audio only or video, i.e. if both resolution.w and resolution.h are 0, then this file is an audio. This work fine on Mac OS. But some strange things happened that this doesn’t work on Windows platform (I have tried Windows 7 64bit and Windows 2008) using the latest ffmpeg. Even though I put a .mp3 file through fluent-ffmpeg,the result looks something like this :
video:
{
container:'mp3',
...
resolution: {w:300,h:300},
resolutionSquare: {w:300,h:300},
aspectString: '1:1',
...
}
audio:
{
codec:'mp3',
bitrate:64,
sample_rate:44100,
stream:0,
channels:1
}I am not why there is a "resolution" since it is a pure audio file. So is there any solid way to find out if the file is audio only or video from the metadata ? Or should I use ffmpeg commandline to find it out ?
-
Retrieving information from ffmpeg shell_exec command
29 août 2012, par user1503606i am doing the following
$output = shell_exec('/usr/local/bin/ffmpeg -i intro.mp3 2>&1');
echo "<pre>$output</pre>";This outputs
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 20 2012 09:28:43 with clang 3.1 (tags/Apple/clang-318.0.61)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mp3 @ 0x7f9481807c00] max_analyze_duration 5000000 reached at 5015510
Input #0, mp3, from 'intro.mp3':
Metadata:
album : Frank
artist : Amy Winehouse
genre : R&B
title : [Intro] Stronger Than Me
track : 01
date : 2008
Duration: 00:03:54.71, start: 0.000000, bitrate: 230 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 160 kb/s
At least one output file must be specifiedi want to get the information to insert into a database album,artist,genre,title etc
But all seperately
i can get them by doing the following
$output = shell_exec('/usr/local/bin/ffmpeg -i intro.mp3 2>&1');
$edit = explode(' ', $output);
$edit = implode("@", $edit);
$edit = explode(':', $output);
echo "<pre>";
print_r($edit);
echo "</pre>";then running
<?php echo $edit[9]; ?>
etc
but this seems like a really bad way and annoying way to get values and sometimes the output is slightly different which messes with the outputs.
Whats the best way to do this or am i stuck doing this ?
-
How can I add audio (mp3) to a flv (just video) with ffmpeg ?
18 juillet 2012, par domiHow can I add sound from a mp3-file to a flv file that has no audio ?
(With ffmpeg)When I use
ffmpeg -i video.flv -i audio.mp3 -acodec copy -vcodec copy -ab 128k -ar 44100 output.flv
I get this output :
FFmpeg version SVN-r12758, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration : —enable-shared —prefix=/usr libavutil version : 49.6.0 libavcodec version : 51.54.0 libavformat version : 52.13.0 libavdevice version : 52.0.0 built on Apr 7 2008 09:00:42, gcc : 4.1.2 20070626 (Red Hat 4.1.2-14) [flv @ 0x2b72415e00c0]Could not find codec parameters (Audio : 0x0000) Input #0, flv, from 'video.flv' : Duration : 00:00:03.2, start : 0.000000, bitrate : N/A Stream #0.0 : Video : flv, yuv420p, 468x312, 1000.00 tb(r) Stream #0.1 : Audio : 0x0000 mdb:511, lastbuf:0 skipping granule 0 mdb:511, lastbuf:0 skipping granule 0 mdb:511, lastbuf:0 skipping granule 1 mdb:511, lastbuf:0 skipping granule 1 Input #1, mp3, from 'audio.mp3' : Duration : 00:01:00.9, start : 0.000000, bitrate : 128 kb/s Stream #1.0 : Audio : mp3, 44100 Hz, stereo, 128 kb/s Output #0, flv, to 'output.flv' : Stream #0.0 : Video : flv, yuv420p, 468x312, q=2-31, 1000.00 tb(c) Stream #0.1 : Audio : 0x0000 Stream mapping : Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 [flv @ 0x2b72415e00c0]sample rate not set Could not write header for output file #0 (incorrect codec parameters ?)