
Recherche avancée
Autres articles (54)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)
Sur d’autres sites (9821)
-
Merge and Concat Multiple Audio and Video files using FFMPEG
20 décembre 2018, par mattgiI have a script at present that results in several audio-only and video-only files.
My goal is to take these and then concat each video clip whilst merging in the audio-clips.
I thought this would be easy but I have not been able to find a good example to work from.
FFMPEG.org suggests that the
movie/amovie
input syntax could be the best option.. but am craving more doco. FFMPEG’s information on the topic is @
https://www.ffmpeg.org/ffmpeg-filters.html#Examples-124. It suggests that to "...Concatenate two parts, handling audio and video separately" we should be able to use the "(a)movie sources" and includes this example :movie=part1.mp4, scale=512:288 [v1] ; amovie=part1.mp4 [a1] ;
movie=part2.mp4, scale=512:288 [v2] ; amovie=part2.mp4 [a2] ;
[v1] [v2] concat [outv] ; [a1] [a2] concat=v=0:a=1 [outa]I have tried this myself without any success :
-f lavfi
-i amovie=/clips/1-0.mp3 [a0];
movie=/clips/1-1-overlayed.mp4 [v1];
amovie=/clips/1-2.mp3 [a2];
movie=/clips/1-3-overlayed.mp4 [v3];
amovie=/clips/1-4.mp3 [a4];
movie=/clips/1-5-overlayed.mp4 [v5];
[v1] [v3] [v5] concat=n=3 "[outv]" ; [a0] [a2] [a4] concat=n=3:v=0:a=1 "[outa]"
-map "[outv]"
-map "[outa]"
output.mp4gives :
"[outa]": Invalid argument
Any ideas on how to get this working ? (doesn’t have to use the same movie/amovie constructs, my main requirement is that I have an array of items and need to produce a video from them, that is a concat of each video, and a merge of each audio.
...
When I use regular concat, I get this error :
[mp3 @ 0x7fd200003a00] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from '/clips/1-0.mp3':
Duration: 00:00:04.27, start: 0.000000, bitrate: 32 kb/s
Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/clips/1-1-overlayed.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Duration: 00:00:04.28, start: 0.000000, bitrate: 28 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], 24 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
[mp3 @ 0x7fd20080ac00] Estimating duration from bitrate, this may be inaccurate
Input #2, mp3, from '/clips/1-2.mp3':
Duration: 00:00:14.38, start: 0.000000, bitrate: 32 kb/s
Stream #2:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '/clips/1-3-overlayed.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Duration: 00:00:14.36, start: 0.000000, bitrate: 530 kb/s
Stream #3:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 528 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
[mp3 @ 0x7fd20100d200] Estimating duration from bitrate, this may be inaccurate
Input #4, mp3, from '/clips/1-4.mp3':
Duration: 00:00:02.78, start: 0.000000, bitrate: 32 kb/s
Stream #4:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s
Input #5, mov,mp4,m4a,3gp,3g2,mj2, from '/clips/1-5-overlayed.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Duration: 00:00:02.80, start: 0.000000, bitrate: 34 kb/s
Stream #5:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 3:4 DAR 4:3], 29 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream specifier ':a' in filtergraph description [0:a][1:v][2:a][3:v][4:a][5:v]concat=n=3:v=1:a=1[v][a] matches no streams.The input (via NodeJS wrapper) looks like this :
FFmpeg {
options:
[ '-hide_banner',
'-y',
'-i',
'/clips/1-0.mp3',
'-i',
'/clips/1-1-overlayed.mp4',
'-i',
'/clips/1-2.mp3',
'-i',
'/clips/1-3-overlayed.mp4',
'-i',
'/clips/1-4.mp3',
'-i',
'/clips/1-5-overlayed.mp4',
'-filter_complex',
'[0:a][1:v][2:a][3:v][4:a][5:v]concat=n=3:v=1:a=1[v][a]',
'-map',
'[v]',
'-map',
'[a]',
'/projects/1.mp4' ],
outputFilename: '' } -
batch - run command through directory and sub-directory
30 août 2015, par user1901188I’m writing a quick little batch script that will use ffmpeg to create gif’s from short movie clips.
I’m having trouble figuring out how to get it to run the ffmpeg commands in the for loop on any subfolders (and movies within them) . I was trying to use -r but that doesn’t seem to work. I am pretty new to this, and I have kind of bashed my way through with this script. Any help would be greatly appreciated
ECHO Movie Dir, please?
SET /p movdir=
IF EXIST "%movdir%" (
MKDIR "%movdir%\palgen"
MKDIR "%movdir%\gif"
FOR %%a in ("%movdir%\*.mov*") do (
"%ffmpeg%\ffmpeg" -i "%%a" -vf fps="%fps%",scale="%scale%":flags=lanczos,palettegen -y "%movdir%\palgen\%%~na.bmp"
"%ffmpeg%\ffmpeg" -i "%%a" -i "%movdir%\palgen\%%~na.bmp" -lavfi fps="%fps%",scale="%scale%":flags=lanczos,paletteuse -y "%movdir%\gif\%%~na.gif"
)
) ELSE (
ECHO That Directory doesn't exist, try again
GOTO Start
)
RD /s /q "%movdir%\palgen"
ECHO All Done, bye :) -
php-ffmpeg too slow - generating thumbnails ?
25 avril 2013, par Wiggler Jtagfirst time I am trying to create thumbnail preview from video file, uploaded 700mb .avi film with 209747 frames. Now I am trying to create 1 thumbnail, but it takes 4.7 seconds, because I've set frame 10000, if I set it just to 1000, it takes only 0.4 seconds to generate thumbnail.
How could I generate like 5-10 thumbnails from different frames on-the-go in less than a second ? Is it even possible ? Is it different to use exec(ffmpeg) or php-ffmpeg ?
Using 0.6-svn ffmpeg, Debian 6.0.7, php 5.4.14 on machine 2x Xeon L5420 and still slow... Any ideas ? How about to use ffmpeg + time of the video instead of frame ?$movie = 'ai.avi';
$thumbnail = 'thumbnail.jpg';
$mov = new ffmpeg_movie($movie);
$frame = 10000;
$frame = $mov->getFrame($frame);
if($frame) {
$gd_image = $frame->toGDImage();
if($gd_image) {
imagejpeg($gd_image, $thumbnail, 100);
imagedestroy($gd_image);
}
}
echo '<img src="http://stackoverflow.com/feeds/tag/'.$thumbnail.'" style='max-width: 300px; max-height: 300px' /><br />';