Recherche avancée

Médias (91)

Autres articles (33)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To 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 (2881)

  • I want to generate frames from a CCTV video using FFMPEG and save the frames as the time that they represent

    6 décembre 2014, par Jason Harris

    I am using mac os x terminal.

    So far I have mananaged the following code :

    ffmpeg -i cctvfootage.flv -f image2 -vf fps=fps=1 frames/frame_04d.png    

    The above code creates a frame for every second of the video, but names each frame as frame_0001.png, frame_0002.png, and so on. Although this is helpful, it is not the correct naming structure that I want.

    The date and time that the video footage starts from is 20th November 2014 at 13:46:12.

    The output name I want will be something like frames_20112014_134612.png (frames_DDMMYYYY_HHMMSS) for the first, frames_20112014_134613.png for the second, ect.

    This will then identify each frame as the day and time that the image is taken from.

  • 'ffmpy' cannot find 'ffmpeg' when running in PyCharm on Mac using conda env

    5 janvier 2020, par user12448123

    When I ran the following piece of code in PyCharm on MacOS Catalina within conda environment :

    import ffmpy

    ff = ffmpy.FFmpeg(
        inputs={'download/v_5c80f6ac3e28a_7BumyNgu/video.m3u8': ['-protocol_whitelist', 'crypto,file,http,https,tcp,tls']},
        outputs={'download/ffmpy_test.mp4': None}
    )
    print(ff.cmd)
    ff.run()

    I got this error :

    Traceback (most recent call last):
     File "/Users/myname/.conda/envs/xiaoetong/lib/python3.7/site-packages/ffmpy.py", line 95, in run
       stderr=stderr
     File "/Users/myname/.conda/envs/xiaoetong/lib/python3.7/subprocess.py", line 800, in __init__
       restore_signals, start_new_session)
     File "/Users/myname/.conda/envs/xiaoetong/lib/python3.7/subprocess.py", line 1551, in _execute_child
       raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg': 'ffmpeg'


    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "/Users/myname/Documents/Projects/xiaoetong/ffmpy_test.py", line 8, in <module>
       ff.run()
     File "/Users/myname/.conda/envs/xiaoetong/lib/python3.7/site-packages/ffmpy.py", line 99, in run
       raise FFExecutableNotFoundError("Executable '{0}' not found".format(self.executable))
    ffmpy.FFExecutableNotFoundError: Executable 'ffmpeg' not found

    Process finished with exit code 1
    </module>

    The traceback info above literally implies that either ffmpeg is not installed or command is not added to path. However, I did install it, and I could call ffmpeg command successfully in terminal. I could even run that python script without error in zsh terminal within exactly the same conda environment (and using exactly the same python interpreter).

    (Some information that might be useful :

    1. The same code could also be run without error within the same conda environment in PyCharm on Windows 10.

    2. python==3.7.5, ffmpeg==4.2, ffmpy==0.2.2 )

    This error is just so weird that I have no clue. Someone please help, I would appreciate.

  • Play the last minute of an mp3 file in Linux [closed]

    29 mai 2021, par Jörg

    I have got a number of audiobooks with play times beyond 30h. I noticed that a handful are corrupted towards the end. I have been trying to find ways to play only the last couple of minutes. ffplay -ss <seconds></seconds> doesn't seem to be able to do it since the files are too big.

    &#xA;

    I'm able to jump ahead to position 50000 but any higher value, such as 98000, and that ffplay gets stuck.

    &#xA;

    ffplay -ss 50000  bigfoo.mp3

    &#xA;

    Does anyone know a fix or an terminal based alternative ? I also had a look into Python but didn't find any relevant packages that can start playing in the middle of an audio file.

    &#xA;