
Recherche avancée
Autres articles (40)
-
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 (...) -
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 (...) -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)
Sur d’autres sites (3946)
-
Image scaling boundaries in FFMEG
6 mars 2018, par Pedro PereiraI am implementing my own version of the bilinear and bicubic scaling algorithms to understand how ffmpeg does the scaling. So, I compare the results I get with the results of the ffmpeg. A couple days agora I had trouble implementing the bilinear version because my bilinear scaled images were different from the ffmpeg ones. With the help of people in the IRC chat I understood that the ffmpeg duplicates the nearest original pixel when the index of the neighboring pixels to interpolate is out of the original image bounds.
In the same perspective, what does the bicubic version in ffmpeg does to out of the original bounds pixels ? I tried duplicating the nearest original pixel (like in bilinear) and my scaled image is not the same as the ffmpeg one.
Do I have to something like this ? Fill the boundaries of a matrix using Bicubic interpolation
-
(C++) I need a program source to parse almost all parameters it receives into a new process call [closed]
14 novembre 2019, par fss1704I have a program that receive some arguments from another program i can’t modify, i need to intercept the arguments and remove one argument (-i randomfilename.gif) from the arguments and then call the original renamed executable with the filtered argument, the original argument looks like this
"ffmpeg.exe -y -i file1.tmp -i file2.tmp -i randomfilename.gif -c:v copy -g 9999 -c:a copy -threads 4 outputfile.mp4"
The gif is a w4t3rmark, that’s why i want it gone, a simple argument change can remove this stuff and make the conversion proccess much quicker if it doesn’t have to reprocess the video stream to include the watermark.
I can take the files and run the command manually, in fact i was using pssuspend to pause ffmpeg so the next stuff coming in gets queued for conversion eternally, the main program thinks it is still converting a file and gives me plenty time to take the original files from the temporary folder before ffmpeg tries to run the conversion with the w4t3rmark parameter and delete the original files, i want to automate this stuff so that i don’t have to bother at all to do stuff manually. -
Adding audio at specific time of the video
21 septembre 2018, par Sergio BruccoleriI want to add an audio file at a specific time of the video, without completely replacing the original video audio stream (just at the specific time, for the whole duration of the replacement audio).
I have this command below :
ffmpeg -y -i video.mp4 -itsoffset 00:00:07 -i audio.mp3 -map 0:0 -map 1:0 -c:v copy -async 1 out.mp4
but this command replaces the entire audio stream of the video with the content of the second input
The expected result is :
-
The video plays as normal with the original audio
-
Once timestamp 00:00:07 is reached, the new ’replaced’ audio streams
play. - Once the new audio streams stops the original audio continues
playing.
Anyone that can help me solving this issue ? I’ve been trying with atrim without any result, but probably I am doing something wrong.
-