
Recherche avancée
Autres articles (96)
-
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (6969)
-
ffmpeg fade in animation and logo overlay in a single step
24 octobre 2018, par Amin BaigI have the following commands to create a fade in effect with a series of images and then place a water mark png using the lut filter on the generated video :
//Creating the fade in video :
ffmpeg -t 5 -i 1.jpg -t 5 -i 2.jpg -t 5 -i 3.jpg -t 5 -i 4.jpg -i 5.jpg -filter_complex "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=out:st=4:d=1[v0];[1:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1];[2:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2];[3:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v3];[4:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v4];[v0][v1][v2][v3][v4]concat=n=5:v=1:a=0,format=yuva444p[v]" -map "[v]" -s "480x600" -t 40 series_out_fade_v2_5images.mp4
After the video is created I use the following command to place a water mark logo over it :
//Water mark
ffmpeg -y -i series_out_fade_v2_5images.mp4 -i optimaken_logo.png -filter_complex "[1]lut=a=val*0.5[a];[0][a]overlay=0:0" -c:v libx264 -an v4_output.mp4
my questions are :
- How can I achieve both in a single command
- How do I scale overlay proportionally so that the height of the water mark is always 65 pixels and the width is scaled
proportionally - Explicitly tell where to place the logo to the top right corner with a padding of 10 pixels for both x and y
- How do I scale overlay proportionally so that the height of the water mark is always 65 pixels and the width is scaled
- How can I achieve both in a single command
-
ffmpeg build thumbnail sequence while transcoding
9 novembre 2018, par RedtopiaWith the goal of improving performance while processing a video file and outputting it into 3 parallel output files, would it be possible to also build a thumbnail sequence as another parallel output or in another process ?
To create the 3 parallel outputs, I’m following the example on this page : https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
...and using this example :
ffmpeg -i input \
-s 1280x720 -acodec … -vcodec … output1 \
-s 640x480 -acodec … -vcodec … output2 \
-s 320x240 -acodec … -vcodec … output3My command to generate thumbnails looks like this :
ffmpeg -f image2 -ss 2 -r "1/3" -s 100x50 ./thumbs/th-%04d.png
I’m using the ffmpeg 4.1
What I’m finding is that building a series of thumbnails, say 1 every 10 seconds, can be quite time consuming for large video files, so I’m guessing I could save some processing time if I could build the thumbs at the same time.
-
ffmpeg setpts apply uniform offset
19 novembre 2018, par VinayI have a series of videos that I’m converting from
.mov
to.ts
and then create an HLS playlist for. I’m able to figure out the ending pts for both the audio and video streams of any given video and am trying apply that ending (cumulative) offset when converting later videos in the sequence. For instance :- convert
0.mov -> 0.ts
- Get ending pts of audio stream and video stream for
0.ts
. - Apply ending video/audio stream as a
setpts
filter for converting1.mov -> 1.ts
- Repeat
As an example, I’m using the following command for the second video in the sequence :
ffmpeg -y -i 1.mov \
-filter:a "asetpts=PTS-STARTPTS+367534" \
-filter:v "setpts=PTS-STARTPTS+363000" \
-codec:v libx264 -crf 18 -preset veryfast \
-acodec aac -muxdelay 0 1.tsThe offset pts
367534
(audio) and363000
were grabbed from0.ts
converted before, however, when I do this,1.ts
ends up having a duration of58s
and an offset of8.31s
.This is how I’m grabbing the ending pts offset of
0.ts
(inspired by https://stackoverflow.com/a/53348545/696130) :ffprobe -v 0 \
-show_entries packet=pts,duration -of compact=p=0:nk=1 \
-select_streams a \
0.ts | | sed \'/^\s*$/d\' | tail -1 - convert