
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (55)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 -
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 (11441)
-
How to change size of watermark image and set Size and Aspect Ratio of Video using fluent-ffmpeg ?
12 avril 2021, par KirasirisDoes anyone knows how to change the size of the watermark image ? ; secondly I tried to use
complexFilter()
with thesize()
andaspect()
methods but it throws an error of complex-filter can not be used with complexFiltergraph in the same input stream ?

This is my code :


await ffmpeg('tmp/' + file.name)
 .input(waterMarkImage)
 .videoFilter([
 'overlay=10:10',
 'scale=1280:720',
 'aspect=16:9',
 'crop=1280:554:0:90',
 ])
 .output(key)
 .on('progress', function (progress) {
 console.log('Processing: ' + progress.percent + '% done')
 })
 .on('end', function (stdout, stderr) {
 console.log('Finished')
 fs.unlink(dir + file.name, function (err) {
 if (err) throw err
 console.log('File deleted')
 })
 })
 .on('error', function (err) {
 console.log('an error happened: ' + err.message)
 fs.unlink(dir + file.name, function (err) {
 if (err) throw err
 console.log('File deleted')
 })
 })
 .save(dir + key)



Thanks.


-
ffmpeg watermark from java Runtime.exec cannot find output
20 avril 2021, par RohiI'm having a problem in sending a ffmpeg command to add a watermark to my video from Java using Runtime.exec().
The strange thing is that the same command is working perfectly from terminal.... 
Any idea what the issue could be ?
this is the command



ffmpeg -i /home/mydir/inputvideo.mp4 -vf "movie=/home/mydir/watermarklogo.png [wm]; [in][wm] overlay=10:10 [out]" /home/mydir/outputvideo.mp4




and this is the Java code (same as above, just wrapped in the exec code, and escaped characters



Runtime rt = Runtime.getRuntime();
 Process proc = rt.exec("ffmpeg -i /home/mydir/inputvideo.mp4 -vf \"movie=/home/mydir/watermarklogo.png [wm]; [in][wm] overlay=10:10 [out]\" /home/mydir/outputvideo.mp4");
 InputStream stderr = proc.getErrorStream();
 InputStreamReader isr = new InputStreamReader(stderr);
 BufferedReader br = new BufferedReader(isr);
 String line = null;
 while ( (line = br.readLine()) != null)
 System.out.println(line);
 int exitVal = proc.waitFor();
 System.out.println("Process exitValue: " + exitVal);




exit code is always 1 when running this.... this is the full output



ffmpeg version 0.10.9-7:0.10.9-1~saucy1 Copyright (c) 2000-2013 the FFmpeg developers
 built on Oct 18 2013 17:40:10 with gcc 4.8.1
 configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.9-1~saucy1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
 libavutil 51. 35.100 / 51. 35.100
 libavcodec 53. 61.100 / 53. 61.100
 libavformat 53. 32.100 / 53. 32.100
 libavdevice 53. 4.100 / 53. 4.100
 libavfilter 2. 61.100 / 2. 61.100
 libswscale 2. 1.100 / 2. 1.100
 libswresample 0. 6.100 / 0. 6.100
 libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rohif/oshi.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf54.59.106
 Duration: 00:00:48.13, start: 0.000000, bitrate: 2482 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2362 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
 Metadata:
 handler_name : VideoHandler
 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 117 kb/s
 Metadata:
 handler_name : 
[NULL @ 0x18fb9a0] Unable to find a suitable output format for '[wm];'
[wm];: Invalid argument
Process exitValue: 1



-
FFMPEG watermark text / photo transparent opacity problem
21 avril 2021, par JimmyI've came across two problems.


- 

- I'm trying to resize and set the opacity/transparency of a watermark, and I can't seem to do it in one command line.




command to rescale but not set transparency :


ffmpeg -i video.mp4 -i watermark.png -filter_complex "[1]scale=iw*0.1:-1[wm];[0][wm]overlay=x=15:y=10" output.mp4



- 

- Trying to set transparency of text but leave the border of the text greyish.




command to resize text and set border, but could not set transparency :


ffmpeg -i video.mp4 -filter_complex "drawtext=fontfile=wryh.ttf:text='sample':x=20:y=15:fontcolor=white@1:fontsize=15:fontcolor=white:bordercolor=black:borderw=0.51" output.mp4