Recherche avancée

Médias (91)

Autres articles (46)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (4085)

  • Handling an arbitrary number of start and stop time pairings to cut a movie file down

    9 juin 2019, par Kieran

    I am writing a function that takes a list of tuples and a file path string as arguments and outputs a cut down video that only includes the frames that fall inside the start/stop pairings provided.

    I’m getting stuck because I am not sure whether the .trim() method of the ’infile’ object is altering the existing object or or creating a new one or doing something else entirely.

    the list of start/stop frame pairings can be arbitrarily long, every example I have found has been for a specific number of start and stop pairings and I can’t find anything describing what data structure needs to be passed back to ffmpeg.concat().

    My code is displayed below :

    import ffmpeg

    frameStamps = [(50,75),(120,700),(1250,1500)]
    videoFilePath = 'C:/Users/Kieran/Videos/testMovie.mp4'
    outputFolder = 'C:/Users/Kieran/Videos/'

    def slice_video(frameStamps, videoFilePath, outputFolder):

       originalFile = ffmpeg.input(videoFilePath)

       for stamp in frameStamps:
           ffmpeg.concat(originalFile.trim(start_frame=stamp[0], end_frame=stamp[1]))


       ffmpeg.output(outputFolder + 'testoutput.mp4')
       ffmpeg.run()

    slice_video(frameStamps, videoFilePath, outputFolder)

    Now I am able to get the following when I individually print out originalFile.trim() which are getting recognised in the console as "FilterableStream" objects

    trim(end_frame=75, start_frame=50)[None] <29b4fb0736ec>
    trim(end_frame=700, start_frame=120)[None] <c66c4e1a48f5>
    trim(end_frame=1500, start_frame=1250)[None] &lt;13e0697a5288>  
    </c66c4e1a48f5>

    and I have tried passing them back as a list, dictionary and tuple and haven’t been able to get it working

    Output Errors :

     File "C:/Users/Kieran/Example.py", line 21, in slice_video
    ffmpeg.output(outputFolder + 'testoutput.mp4')

     File "C:\ProgramData\Anaconda3\lib\site-packages\ffmpeg\_ffmpeg.py", line 94, in output
    return OutputNode(streams, output.__name__, kwargs=kwargs).stream()

     File "C:\ProgramData\Anaconda3\lib\site-packages\ffmpeg\nodes.py", line 282, in __init__
    kwargs=kwargs

     File "C:\ProgramData\Anaconda3\lib\site-packages\ffmpeg\nodes.py", line 170, in __init__
    self.__check_input_len(stream_map, min_inputs, max_inputs)

     File "C:\ProgramData\Anaconda3\lib\site-packages\ffmpeg\nodes.py", line 149, in __check_input_len
    raise ValueError('Expected at least {} input stream(s); got {}'.format(min_inputs, len(stream_map)))

    ValueError: Expected at least 1 input stream(s); got 0
  • Stacking 2 videos horizontal with x264

    1er août 2014, par Henrik

    I have two videos of the same length and dimension encoded and I want to combine them into one video in such way, that both videos are viewed next to each other in a single video file. I’m looking for a solution that makes use of the x264 encoder (+ Avisynth script)

  • iPhone recorded videos getting rotated on Windows systems [migrated]

    11 mars 2013, par Saurabh

    I am recording videos on iPhone and uploading them to my Linux server. Users can see these videos on website. If users are seeing videos on mac or iDevices the video is looking fine but when users are seeing that video on windows systems these videos are getting rotated.

    I am assuming this is because of some apple's flag in the recorded video which Windows systems are not able to read. Can I record videos in some way so they don't get rotated on Windows systems ? Or is there any way I can re-encode videos with proper interface orientation using FFmpeg ?

    I am open to both FFmpeg or iOS way.