
Recherche avancée
Autres articles (86)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (7921)
-
for loop from two values in list of dicts with python and ffmpeg
30 décembre 2019, par Brendon RathboneI’m having an issue figuring out how to do the last for loop in my first really useful python program. I am trying to split a video with ffmpeg based on a bunch of logic to figure out edit points.
I have a list of dictionaries ’cut_list’ that I have sorting figured out like this
[{'Cutstart': '01:00:00:00', 'CutEnd': '01:00:05:00'}, {'Cutstart': '01:00:10:01', 'CutEnd': '01:00:15:00'}, {'Cutstart': '01:00:20:01', 'CutEnd': '01:00:25:01'}]
I then am trying to feed these values to ffmpeg, iterating over the list of dicts like so :
cutcounter=1
for Cutstart & CutEnd in cut_list:
for k in Cutstart.items() & v in CutEnd.items() :
print(k)
print(v)
intime=Timecode(fps_real, k)
intime.set_fractional(True)
outtime=Timecode(fps_real, v)
outtime.set_fractional(True)
cutfile=str(cutcounter)+".mxf"
print(k)
print(v)
subprocess.call(['ffmpeg', '-i', "C:\\path\\to\\file\\BaseFile.mxf", '-ss', k, '-to', v, '-c:v', 'copy', '-c:a', 'copy', cutfile])
cutcounter=cutcounter+1My expected output is to iterate over the list and have chunks of the video split off at those specific timecodes and numbered 1.mxf and count up for every for loop to be recombined with inserted fixes to those timespans. I think after I figure out the for loop I will need to also feed the timecode values as HH:mm:ss:mss instead of HH:mm:ss:ff but that’s not the part that I’m having trouble figuring out yet. Right now I just can’t grok the logic of getting the cutstart and cutend for each timecode to feed into the ffmpeg script.
Current error as I bash my head against the wall trying to get smarter is :
Syntax Error: cannot assign to operator
I’m definitely inexperienced and have hacked this together from a lot of other helpful posts, but am struggling with sorting and lists vs list of dicts vs tuples etc. and where and when to use each one.
-
Revision 100423 : Éviter une erreur fatale PHP Fatal error : Cannot use empty list in ...
7 novembre 2016, par kent1@… — LogÉviter une erreur fatale
PHP Fatal error : Cannot use empty list in /Users/kent1/Sites/SPIP/_plugins_/fulltext/trunk/action/fulltext_convert_myisam.php on line 28 -
Revision 100423 : Éviter une erreur fatale PHP Fatal error : Cannot use empty list in ...
7 novembre 2016, par kent1@… — LogÉviter une erreur fatale
PHP Fatal error : Cannot use empty list in /Users/kent1/Sites/SPIP/_plugins_/fulltext/trunk/action/fulltext_convert_myisam.php on line 28