
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (105)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (5154)
-
ffmpeg failed to read header of audio file
15 juillet 2016, par asadThe file i am using (.m4a format) cant be read by ffmpeg. I can play this audio file in quicktime and vlc successfully. ffmpeg fails to read this particular file only. ffmpeg works with other .m4a files. Note:following works for this video too if i lower fps to 1 and resolution to 480p Following is the log :
ffmpeg version N-80097-g89e9393 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --prefix=/home/ec2-user/ffmpeg_build --extra-cflags=-I/home/ec2-user/ffmpeg_build/include --extra-ldflags=-L/home/ec2-user/ffmpeg_build/lib --bindir=/home/ec2-user/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 43.100 / 57. 43.100
libavformat 57. 37.100 / 57. 37.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 46.100 / 6. 46.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, rawvideo, from 'pipe:0':
Duration: N/A, start: 0.000000, bitrate: 314818 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 854x480, 314818 kb/s, 24 tbr, 24 tbn
Input #1, png_pipe, from '/home/ec2-user/logo-watermark-green_tpd.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 287x185, 25 tbr, 25 tbn
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b71d00] error reading header
/home/ec2-user/decryptedData/audios/Blrt_Decrypt_tfss-29882287-c1d5-4c54-b674-87e9de4a9e38-audio.m4a: Invalid data found when processing input
"rjRoYZaDA1_854x480@24fps_1468547071.txt"Following is the code :
/home/ec2-user/bin/ffmpeg \
-framerate 24 -f rawvideo -pixel_format rgb32 -video_size 854x480 -i pipe:0 \
-i /home/ec2-user/logo-watermark-green_tpd.png \
-i /home/ec2-user/decryptedData/audios/Blrt_Decrypt_tfss-29882287-c1d5-4c54-b674-87e9de4a9e38-audio.m4a \
-filter_complex "[0:v]vflip[main];[1:v]scale=854/10:-1[si], \
[main][si]overlay=main_w-overlay_w:main_h-overlay_h:format=rgb,format=yuv420p" \
-c:v libx264 \
-c:a copy /home/ec2-user/videos/rjRoYZaDA1_854x480@24fps_1468563244030.mp4 \
2> /home/ec2-user/logs/rjRoYZaDA1_854x480@24fps_1468563244.txtPlease let me know what can possibly be done ?
-
Why my ffmpeg libs are so large ? [on hold]
9 avril 2014, par user3504221I compiled ffmpeg libs on my Ubuntu 64-bits using the following script :
mkdir ~/ffmpeg_sources
#x264
cd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --disable-asm
make
make install
make distclean#FFmpeg
cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" -- enable-gpl \
--enable-libx264 --enable-x11grab --disable-yasm
make
make install
make distclean
hash -rBut the final libs are really large (For example, libavcodec.a > 140 Mb). Anybody know why my libs are so large ?
EDIT
My Solutions :
- add the option "—disable-debug" to the ./configure. The size of my libavcodec fell from 150Mb to 12Mb !
- Remove all unnecessary codecs : Add the options -disable-encoders, —disable-decoders and then add only codecs you want with —enable-encoder=NAME and —enable-decoder=NAME. Print the list using ./configure —list-encoders —list-decoders. see ./configure —help for more information. (My final libavcodec has a size of 4Mo)
-
ffmpeg in AWS EBS Php Environment
3 janvier 2018, par ShihasI did a project in Codeigniter framework and uploaded to AWS EBS Php environment.
In the below function I’m trying to create a thumbnail for the uploading video using ffmpeg.
function test()
{
if($_FILES['video']['name'])
{
$extension = pathinfo($_FILES['video']['name'], PATHINFO_EXTENSION);
$video_file = 'vid_'.time().rand(0,10000000);
$video_file_name = $video_file.'.'.$extension;
$video_thumb = $video_file.'.png';
$path = base_url('/assets/portfolio_video/').$video_file_name;
move_uploaded_file($_FILES["video"]["tmp_name"],$path);
echo shell_exec("/usr/bin/ffmpeg -i /home/ubuntu/project/assets/portfolio_video/$video_file_name -ss 00:00:02.000 -vframes 1 /home/ubuntu/project/assets/thumbnail/$video_thumb");
echo "File Name: ".$video_file_name."";
echo "<img src="http://stackoverflow.com/feeds/tag/".base_url("assets/thumbnail/").$video_thumb."" style='max-width: 300px; max-height: 300px' />";
}else{
$this->load->view('test');
}
}Here the problem was the video file itself not uploading. I just want to know why its not uploading files in AWS. But it works fine in my local server.
Now I try to create a thumbnail for the already existing video in the server.
Path of video file :
/home/ubuntu/123.mp4
Code executed :
function test()
{
echo shell_exec("/usr/bin/ffmpeg -i /home/ubuntu/123.mp4 -ss 00:00:02.000 -vframes 1 /home/ubuntu/thumbnail.png");
}But still the thumbnail is not creating.
NOTE : When I execute the terminal command
ffmpeg -i /home/ubuntu/123.mp4 -ss 00:00:02.000 -vframes 1 /home/ubuntu/thumbnail.png
directly in the AWS server terminal its create the thumbnail successfully.