
Recherche avancée
Autres articles (57)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (7182)
-
How to use sexagesimal syntax in arguments of FFmpeg or if impossible how to convert it in Windows CMD shell
6 décembre 2020, par Link-akroQuestion updated 2020-12-06 to enlarge the scope without discarding the prior answer which applies to both prior and larger cases.


I had trouble to provide a sexagesimal time (
HH:MM:SS.mm
) to a filter option that was not an expression. For instancetrim
filter.
It happens there is an escaping rule i did not know yet when i first asked, and was addressed in the first comment by @Gyan.

The problem is universal, but the solution may depend on the shell if we go the scripting route... and i am currently stuck with Windows's CMD.exe.


For instance the following skips one minute and 4 tenths of seconds in all streams as accurately as it can seek each, then invokes the trim filter to keep the segment between one and two minutes of the remaining duration, and do so with two different syntaxes. This example happens to be compatible with both CMD and BASH shells so no escaping hell.


ffmpeg -ss "1:00.4" -i INPUT -vf "trim=start='1\:00':end='120'" OUTPUT



Then how do we achieve the same in the expressions within the filters ?
If we cannot avoid using the scripting of the shell, i am looking for a Windows CMD solution.
I had posted one answer with a piece of script to convert a textual sexagesimal time to a textual decimal fractional time in seconds, which was not useful for the original case, but may apply to more generic cases and in particular to the expressions.


Example of failed attempt with one expression in the
select
filter.

ffmpeg -ss "1:00.4" -i INPUT -vf "select='between(t,1\:00',120)'" OUTPUT



The sexagesimal notation seems to not be supported by ffmpeg filter expressions as i found no reference of it in the documentation nor in SO/web.


I browsed through the list of functions defined in ffmpeg expression library but did not find any way to parse the sexagesimal input there yet, nor any way to use text in its semantics.


However i found some unrelated example that hard-coded some arithmetical expression to provide the numerical decimal amount of seconds equivalent to what was intended, such as
2*60+2
to mean2:02
.

The polynome used above to compute seconds may use preprocessing of shell variable, whichever shell it is, but we need to parse the components of
HH:MM:SS.mm
to put them in those variable first. You know, using bash$var
or cmd%var%
/%~1
styles. Otherwise we may compute the polynome completely in the shell instead of the expression but it is so much trouble for little gain.

So while CMD still exists like an undead and becomes really dead , and while i do not have the opportunity yet to replace it, i wish for an answer that either :


- 

- does not need the shell/script at all, OR
- provide a solution in Windows CMD, although relying on it as little as possible.






Reminder and clarification, the use case assumes that we are given a textual sexagesimal time as input and intend to use it in an expression of ffmpeg filter with as little shell dependency as possible or otherwise satisfy Windows CMD.


-
Revision 37456 : rha ... c’est vraiment du hack là
20 avril 2010, par kent1@… — Logrha ... c’est vraiment du hack là
-
Revision 32970 : On progresse doucement mais surement.
15 novembre 2009, par vxl@… — LogOn progresse doucement mais surement.