Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (15305)

  • for loop from two values in list of dicts with python and ffmpeg

    30 décembre 2019, par Brendon Rathbone

    I’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+1

    My 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.

  • FFMPEG Combine a list of jpg with mo3 audios to sepatated videos on batch [closed]

    20 septembre 2020, par Francisco Barrod

    i have a big list of jpg and mp3 files. each of them have identical names but they not enumerated. example cat.jpg and cat.mp3 pig.jpg and pig.jpg i want to make videos cat.mp4 pig.mp4

    


    i have a code to do this manually but i want to make it on batch. heres my code

    


    ffmpeg -loop 1 -i cat.jpg -i cat.mp3 -threads 8 -shortest -c:v libx264 -c:a copy cat.mp4  


    


    its simple but works for my need.

    


    need help to make it on batch-

    


    thanks in advance.

    


  • 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