
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (52)
-
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 -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (9928)
-
Anomalie #4328 : Depots inaccessibles
7 mai 2019, par Armen SpidermianBonjour,
Je me suis aperçu de ce dysfonctionnement sous spip 3.2.1
Le site a été mis en prod et j’ai cru un moment que le probleme venait
de mon hébergeur
J’ai donc rapatrié une copie du site sur une machine de dev
ou nous envisagions de migrer mais le probleme existe toujours.
Ah oui ma version de php est 5.6.38 chez notre hébergeur et 5.6.40 ,sur
le serveur de dev.
Je ne comprends d’autant mons cette eeereur que j’ai un autre spip (3.2.4)
qui tourne sur cette machine et qui n’a pas ce probleme.
Je comprends que vous n’ayez pu reproduire cette erreur et donc de la
traiter
Mais comme je l’ai dit dans mon ticket je n’ai pas la moindre idée d’ou
cela peut venir et donc ou chercher,
peut-être pouvez vous me soumettre quelques pistes ?D’avance Merci.
redmine@spip.org a écrit :
La demande #4328 <https://core.spip.net/issues/4328#change-14926> a
été mise à jour par b b.- Statut changé de /Nouveau/ à /Fermé/
- Resolution mis à /invalid/
Cette question a plus sa place sur la liste spip-zone, sans plus
d’infos ça ne peut pas être considéré comme une bug, d’autant plus
qu’on ne reproduit pas le problème de notre côté. Je ferme le ticket,
n’hésite pas à en ouvrir un autre ou a commenter ici une fois que tu
as des infos exploitables à propos d’un bug.
Anomalie #4328 : Depots inaccessibles
<https://core.spip.net/issues/4328#change-14926>- Auteur : Armen Spidermian
- Statut : Fermé
- Priorité : Normal
- Assigné à :
- Catégorie :
- Version cible :
- Resolution : invalid
- Navigateur :
Spip refuse de se connecter au dépot.
2019-05-06 13:50:01 78.230.118.204 (pid 7481) :Pri:ERREUR : Erreur
connexion
2019-05-06 13:50:02 78.230.118.204 (pid 7481) :Pri:ERREUR : Erreur
connexion
2019-05-06 13:50:02 78.230.118.204 (pid 7481) :Pri : !INFO : copie_locale
: Echec recuperation https://plugins.spip.net/depots/principal.xml sur
../IMG/distant/xml/principalxml2fdc.xml status : 0Je n’arrive pas a comprendre d’ou ca vient...
Fichiers ErreurSpip.png
<https://core.spip.net/attachments/download/1083/ErreurSpip.png> (84,9 ko)
Vous recevez ce mail car vous êtes impliqués sur ce projet.
Pour changer les préférences d’envoi de mail, allez sur
http://core.spip.net/my/account -
Why is audio stream extraction slow ? (compared to AviSynth)
6 mai 2019, par LLLI want to extract the audio stream of an avi file as a wav file, it works but it is really slow ( 4-5fps) although I just want to copy the stream.
Here is the type of stream I want to extract (ffprobe info) :
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Going through AviSynth does it about 100 times faster, but I would prefer a pure FFmpeg solution. Why such a speed difference ? It looks like FFmpeg is reading and processing through the whole file whereas AviSynth can just extract the data without reading it.
Example :
ffmpeg -i file.avi -vn -ac 2 -c:a copy audio.wav
or
ffmpeg -i file.avi -map 0:a -ac 2 -c:a copy audio.wav
both work fine but take time.Using an AviSynth script as input :
ffmpeg -i script.avs -map 0:a -ac 2 -c:a copy audio.wav
with script.avs containing just :
AviSource("file.avi")
does the same but almost instantaneously !Any idea why AviSynth is so much faster and if there is a way to get the same speed in FFmpeg ?
Edit : adding logs
Using FFmpeg directly :E:\>ffmpeg -i "file.avi" -map 0:a -c:a copy -y -benchmark "output.wav"
ffmpeg version N-92936-ged3b64402e Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 25.100 / 56. 25.100
libavcodec 58. 43.100 / 58. 43.100
libavformat 58. 25.100 / 58. 25.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 47.100 / 7. 47.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[avi @ 0000018d3c38a680] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'file.avi':
Duration: 00:18:37.49, start: 0.000000, bitrate: 534682 kb/s
Stream #0:0: Video: rawvideo, bgr24, 1280x720, 533183 kb/s, 24.11 fps, 24.11 tbr, 24.10 tbn, 24.10 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Output #0, wav, to 'output.wav':
Metadata:
ISFT : Lavf58.25.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 192445kB time=00:18:37.12 bitrate=1411.2kbits/s speed=4.77x
video:0kB audio:192445kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000040%
bench: utime=1.188s stime=50.766s rtime=234.254s
bench: maxrss=17468kBUsing AviSynth :
E:\>ffmpeg -i "soundout.avs" -map 0:a -c:a copy -y -benchmark "output.wav"
ffmpeg version N-92936-ged3b64402e Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 25.100 / 56. 25.100
libavcodec 58. 43.100 / 58. 43.100
libavformat 58. 25.100 / 58. 25.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 47.100 / 7. 47.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avisynth, from 'soundout.avs':
Duration: 00:18:37.49, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 1280x720, 24.11 fps, 24.11 tbr, 24.10 tbn, 24.10 tbc
Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Output #0, wav, to 'output.wav':
Metadata:
ISFT : Lavf58.25.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 192445kB time=00:18:37.11 bitrate=1411.2kbits/s speed= 155x
video:0kB audio:192445kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000040%
bench: utime=0.234s stime=1.047s rtime=7.236s
bench: maxrss=23792kB -
FFMPEG PHP enter command lines ?
3 mai 2019, par RobertYou will have to excuse me I have been spending the past 2 days reading through old FFMPEG posts for an answer but did little but confuse myself.
It seems from what I read FFMPEG-PHP wrappers aren’t supported anymore ??? and to be honest they don’t seem like the proper way of learning how to incorporate it with PHP as there is a whole lot more help for command line FFMPEG usage and the FFMPEG-PHP wrapper usage looks nothing like the command line as far as I can tell.So I have 2 questions on using ffmpeg with PHP. So we are on the same page I posted a little info below.
I downloaded FFMPEG static for windows 64bit.
I then ran (in composer)$ composer require php-ffmpeg/php-ffmpeg
in my vendor folder i have the following path.
vendor\ffmpeg-20190429-ac551c5-win64-static\bin
if I open the command prompt in that folder and type FFMPEG I get.
ffmpeg version N-93710-gac551c54b1 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.3.1 (GCC) 20190414
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --
enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --
enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --
enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --
enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-
nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 52.100 / 58. 52.100
libavformat 58. 27.103 / 58. 27.103
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 50.100 / 7. 50.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...So I’m pretty sure FFMPEG is installed which was my goal.
Now on my PHP side here is where I am at, and I’m not sure how this works.
1ST QUESTION. Do I need to save my $_POST files to the drive before manipulating them ? Or can I use the $file and $filep as is ? I don’t really want to store those files, only the output.
My SLIM code.
$app->post('/telestrator', function(Request $request, Response $response)
{
$response = array();
if (isset ($_POST['ID']) && ($_POST['position']) && $_FILES['video']
['error'] === UPLOAD_ERR_OK && $_FILES['image']['error'] ===
UPLOAD_ERR_OK) {
$file = $_FILES['video']['tmp_name'];
$filep = $_FILES['image']['tmp_name'];
$time = $_POST['position'];
$position = msToTime($time);
$filetime = round(microtime(true) * 1000);
$outputfolder = 'teletemp/';
$ID = $_POST['ID'];
$tempvid = $ID . 'tempvid' . 'mp4';
$finalvid = $ID . $filetime . 'mp4';
$ffmpegpath = "public/ffmpeg.exe";
echo "Starting ffmpeg...\n\n";
echo shell_exec("$ffmpegpath -loop 1 -i $filep -c:v libx264 -t 3 -pix_fmt
yuv420p \"$outputfolder.\" $tempvid /");
echo shell_exec("$ffmpegpath -i $file -t $position -c copy
\"$outputfolder\"
small-1.mp4 -ss $position -codec copy \"$outputfolder\" small-2.mp4 ");
echo shell_exec("$ffmpegpath -i small-1.mp4 -i $tempvid.mp4 -i small-
2.mp4 \
-filter_complex \"[0:v:0][1:v:0][2:v:0]concat=n=3:v=1:a=1[outv]\" \
-map \"[outv]\" $finalvid" );
echo "Done.\n";
$upload = new videouploads();
$desc = 'telestrated video for ' . $ID . $filetime;
$ID = $_POST['ID'];
if ($upload->saveVideoFile($finalvid, getFileExtension($finalvid),
$desc, $ID)) {
$response['error'] = false;
$response['message'] = 'File Uploaded Successfullly';
}
else {
$response['error'] = true;
$response['message'] = 'Required parameters are not available';
}
echo json_encode($response);
}
});
function getFileExtension($file)
{
$path_parts = pathinfo($file);
return $path_parts['extension'];
}
function msToTime($duration) {
$seconds = floor($duration / 1000);
$minutes = floor($seconds / 60);
$hours = floor($minutes / 60);
$milliseconds = $duration % 1000;
$seconds = $seconds % 60;
$minutes = $minutes % 60;
$format = '%02u:%02u:%02u.%03u';
$time = sprintf($format, $hours, $minutes, $seconds, $milliseconds);
return rtrim($time, '0');
}so it’s not running here is my postman. How do I get it to actually run the FFMPEG.
Starting ffmpeg...
Done.
<br />
<b>Notice</b>: Undefined index: extension in
<b>C:\xampp\htdocs\Pathways\public\index.php</b> on line
<b>14741</b>
<br />
{"error":false,"message":"File Uploaded Successfullly"}