
Recherche avancée
Autres articles (21)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4282)
-
Android and FFMpeg. How to add more codecs is build sh script
25 janvier 2014, par bukka.whI built ffmpeg library for my Android project and now I want to add more codecs for my libs. I have build_android.sh script, where are defined encoders-decoders, muxers-demuxers, for example
--enable-decoder=flv \
--enable-encoder=flv \
--enable-demuxer=flv \
--enable-muxer=flv \And I want to add there codecs for bink, avi, smacker and some others.
https://help.ubuntu.com/community/FFmpeg#Multiverse - here I have found list of codecs.
So, if I need to add for example smacker codec I need to put in my sh script following lines :--enable-decoder=smackvid \
--enable-encoder=smackvid \
--enable-demuxer=smackvid \
--enable-muxer=smackvid\And the same for all other codecs...
Am I right, or I am wrong ? Thank You ! -
How do I integrate the FFMPEG commands with Python Script ?
12 janvier 2021, par Sukhada DeshpandeI am trying to extract the frames when the scene changes in an .mp4 video.
The package that I am using is FFMPEG.
FFMPEG predominantly works on the CLI and I am trying to integrate it with Python3.x


The command I am using in the CLI is :


ffmpeg -i {0} -vf "select=gt(scene\,0.5), scale=640:360" -vsync vfr frame%d.png



The output comes out just fine with the CLI execution.


But I want to use same command in a Python script, how do I do that and what should be the code ?


Being an amateur in the field, currently grappling with this !


-
How to concat all ffmpeg inputs without mapping them in the filter using windows batch script ?
1er juin 2019, par fredsbendI’m running multiple runs of the ffmpeg concat filter on multiple files using Windows batch file script. I don’t always know how many files exactly need to be concatenated and the problem is that ffmpeg doesn’t automatically concatenate the inputs unless you map them all. For example, if I have to join eight files, I use the following filter mapping scheme :
-filter_complex "[0][1][2][3][4][5][6][7]concat=n=8:v=1:a=0"
If I have to join only 4 files later in the script, I have to change it to :
-filter_complex "[0][1][2][3]concat=n=4:v=1:a=0"
I had hoped not entering any mapping would automatically take all the inputs in order. I’m disappointed to find that it only takes the first two and ignores the rest. I tried simply :
-filter_complex "concat"
and it "guessed" the mapping according to warnings, but completely ignored all inputs after the second.
There is no way to do this with ffmpeg alone, so I’m seeking a way to do this with the Windows batch script.
An example of a complete and working command is :
set commands=-filter_complex "[0][1][2][3][4][5][6][7]concat=n=8:v=1:a=0","crop=1064:800" /
-crf 30 -an -movflags +faststart -loglevel quiet -stats
ffmpeg -ss 00:00:36.737 -t 00:13:33.630 -i 1201.avi /
-ss 00:00:00.000 -t 00:13:51.397 -i 1202.avi /
-ss 00:00:00.033 -t 00:13:06.052 -i 1203.avi /
-ss 00:00:00.000 -t 00:17:31.617 -i 1204.avi /
-ss 00:17:31.551 -t 00:00:00.067 -i 1204.avi /
-ss 00:00:00.000 -t 00:15:07.907 -i 1205.avi /
-ss 00:15:07.840 -t 00:00:00.067 -i 1205.avi /
-ss 00:00:00.000 -t 00:02:36.990 -i 1206.avi /
%commands% 12-concat.mp4My goal here is that I can set
commands
(and/or other variables) once in the script, instead of having to change it each time the command has more or less inputs.