
Recherche avancée
Autres articles (48)
-
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 -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...)
Sur d’autres sites (4157)
-
FFMPEG, itsoffset with overlay command not working as it supposed to
14 janvier 2014, par G.T.I managed to overlay two videos one by another with the overlay command and use a nullsrc command to play both video till both of them ended with the following command :
./ffmpeg -i first.MOV -i second.MOV -filter_complex "nullsrc=size=1280x400:duration=30[bg];[0]scale=640:-1,pad=1280:400[first];[bg][first]overlay=0:0[base];[1]scale=640:-1[second];[base][second]overlay=640:0" output.mp4
Now what I wanted to do is to delay one of the overlay till the other one finishes. For this as far as I know the command is itsoffset, so I modified to use this :
./ffmpeg -i first.MOV -itsoffset 5 -i second.MOV -filter_complex "nullsrc=size=1280x400:duration=30[bg];[0]scale=640:-1,pad=1280:400[first];[bg][first]overlay=0:0[base];[1]scale=640:-1[second];[base][second]overlay=640:0" output.mp4
Now my only problem with this is that I want to show the first frame of the delayed video till it starts... And even though somewhere I read that this should do it, it won't. It leaves it blank till the input starts.
Any idea how could I add the first frame of second video till the itsoffset starts the video ?
Update1 : I may found a cheat around it, but the problem with it it's really slow in the first second or so.
./ffmpeg -i first.MOV -i second.MOV -itsoffset 5 -i second.MOV -filter_complex "color=size=1280x400:duration=30[bg];[1]select=eq(n\,0),scale=640:-1[fg];[bg][fg]overlay=640:0[bgc];[0]scale=640:-1[first];[bgc][first]overlay=0:0[firstb];[2]scale=640:-1[second];[firstb][second]overlay=640:0" output.mp4
Not to mention later on I need to dynamically create the command line string which would be really painful like this.
-
FFMPEG, itsoffset with overlay command
9 janvier 2014, par G.T.I managed to overlay two videos one by another with the overlay command and use a nullsrc command to play both video till both of them ended with the following command :
./ffmpeg -i first.MOV -i second.MOV -filter_complex "nullsrc=size=1280x400:duration=30[bg];[0]scale=640:-1,pad=1280:400[first];[bg][first]overlay=0:0[base];[1]scale=640:-1[second];[base][second]overlay=640:0" output.mp4
Now what I wanted to do is to delay one of the overlay till the other one finishes. For this as far as I know the command is itsoffset, so I modified to use this :
./ffmpeg -i first.MOV -itsoffset 5 -i second.MOV -filter_complex "nullsrc=size=1280x400:duration=30[bg];[0]scale=640:-1,pad=1280:400[first];[bg][first]overlay=0:0[base];[1]scale=640:-1[second];[base][second]overlay=640:0" output.mp4
Now my only problem with this is that I want to show the first frame of the delayed video till it starts... And even though somewhere I read that this should do it, it won't. It leaves it blank till the input starts.
Any idea how could I add the first frame of second video till the itsoffset starts the video ?
-
Convert video to animated GIF with FFmpeg [migrated]
5 janvier 2014, par flexageI have FFmpeg installed and working on my Ubuntu 12.04 LTS Server.
I have managed to successfully automate the process of uploading a video and converting it to both H264/MP4 and OGV for display on the web.
I also wanted to generate an animated GIF thumbnail for the video.
I have got as far as the following, which I'm pretty sure is generating 2 frames a second for the first 10 seconds of the video :
/usr/local/bin/ffmpeg -i "$3/uploads/video-queue/$1.$2" -vf scale=320:-1 -t 10 -r 2 "$3/uploads/video-queue/processing/$1.gif"
What I would prefer to do is generate 1 frame every 25 seconds for the duration of the entire video, but also with a maximum number of frames set as something like 50 frames.
I would prefer not to have dependencies on other components such as Image Magik, and I would like to keep this purely shell based.
Thanks in advance ! You guys are way smarter than me for sure !
Here is the complete console output from an ffmpeg run of the command above :
root@ubuntu:/home/fckster/etc/php5# /home/fckster/public_html/cronscripts/process-video-gif.sh 1-1388841621 wmv /home/fckster/public_html
ffmpeg version N-59480-g8feaa83-syslint Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 2 2014 00:32:20 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.102 / 55. 22.102
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[wmv3 @ 0x24dd680] Extra data: 8 bits left, value: 0
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, asf, from '/home/fckster/public_html/uploads/video-queue/1-1388841621.wmv':
Metadata:
WM/ToolName : Flip4Mac WMV Export Component for QuickTime (Mac)
WM/ToolVersion : 2204
encoder : Lavf54.29.104
Duration: 00:01:11.30, start: 0.140000, bitrate: 2096 kb/s
Stream #0:0: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 29.97 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 48 kb/s
[wmv3 @ 0x24dd680] Extra data: 8 bits left, value: 0
Output #0, gif, to '/home/fckster/public_html/uploads/video-queue/processing/1-1388841621.gif':
Metadata:
WM/ToolName : Flip4Mac WMV Export Component for QuickTime (Mac)
WM/ToolVersion : 2204
encoder : Lavf55.22.102
Stream #0:0: Video: gif, pal8, 320x180, q=2-31, 200 kb/s, 100 tbn, 10 tbc
Stream mapping:
Stream #0:0 -> #0:0 (wmv3 -> gif)
Press [q] to stop, [?] for help
frame= 87 fps= 52 q=0.0 Lsize= 2131kB time=00:00:10.00 bitrate=1745.9kbits/s dup=0 drop=170
video:2219kB audio:0kB subtitle:0 global headers:0kB muxing overhead -3.939009%