Recherche avancée

Médias (91)

Autres articles (99)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (4414)

  • Using Python script to cut long videos into chunks in FFMPEG

    23 février 2016, par Michael Hamilton

    Starting off by saying I’m not a programmer, but I really need the application this Python script I found says it can do.

    Auto-Splitting Script by Antarctic Nest of Icephoenix

    Basically I have a directory of long .MP4s that need to be cut into equal parts based on a total running time of 3 hours 15 minutes. For example, I would have an 8 hour video that needs to be cut into smaller parts each under 3:15:00.

    We’ve been manually crating FFMPEG codes to do this, but I found the Python script above that seems like it will do what we are needing. The issue is that I have no Python experience. I don’t know where in the script to enter in the folder path with the videos, or where to specify my codecs, or where to tell the program that the max time for each video chunk is 3:15:00.

    I’m on a 64-bit windows system working in command prompt

    Here’s what I have done :

    • Installed python 3
    • downloaded the script
    • I can click on the script to see the cmd window flash to indicate it’s running
    • I enter "C :\Python34\python.exe V :\ffmpeg\ffmpeg-split.py" into cmd
    • output is

      File "V :\ffmpeg\ffmpeg-split.py", line 16
      print "Split length can’t be 0"

       SyntaxError: Missing parentheses in call to 'print'

    I have no idea where to go from here. It seems like the script is loading properly, but I haven’t entered my variables. Any help with where to put the information would be appreciated.

    Here is the FFMPEG code we usually use :

    ffmpeg -i V :\ffmpeg\88518_63c392af.mp4 -vcodec libx264 -acodec copy -vf fps=fps=30000/1001 -ss 00:05:01.000 -t 02:43:49.000 V :\events\88518.mp4

    The ffmpeg codes we use :

    -i is a .mp4

    -vcodec h.264 codec

    -acodec should be “copy” or can be “libvo_aacenc”

    -vf fps=30000/1000 a forced fps of 29.97

    -ss is start time (we would use this to manually cut into parts along with -t)

    -t is duration (we would calculate the duration for each part as the total run time divided by the equal time under 3:15:00 be it two, three, or four parts)

    Thank you a million dollars

  • How to use concat-demuxer in ffmpeg-python ?

    21 août 2024, par user12355248

    I want to merge 2 or more videos in short time.

    


    I think that concat-demuxer is best, but it need TXT file.

    


    In python, is it possible to use ffmpeg concat-demuxer without TXT file ?

    


  • Systemd service (python loop -> ffmpeg stream)

    7 janvier 2019, par Kevitto

    I am currently running a stream with ffmpeg, through icecast2 through a python snippet (Fig1). I have created a systemd service to run said python script on boot (Fig2) and use a custom target (Fig3) to make sure it loads once every other service is loaded, mostly for icecast2.

    I’ve conducted multiple tests, and the stream works fine if launched either from the python code or if I restart the service attached to it.

    My problem is, on a (re)boot of the system, the service runs for approximately 15 seconds, then the stream dies. I’ve read so much on python and systemd, but I can’t for the life of me figure out where the problem lies. I’ve tried changing my python code, the unit load order and anything else I found online that could help, but found nothing.

    Fig1 (dxstream.py)

    import sys
    import time
    import subprocess

    def start():
       return subprocess.Popen(r’ffpmeg -re -f alsa -ac2 -i hw:1,0 -acodec mp3 -ab 320k -f mp3 icecast://sourcehackme@localhost:8000/stream', shell=True)

    testProcess = start()

    while True:

       res = testProcess.poll()
       if res is not None:
           testProcess = start()
       time.sleep(1)

    Fig2 (dxstream.service)

    [Unit]
    Description=ffmpeg stream starter
    After=multi-user.target
    [Service]
    Type=idle
    Execstart=/usr/bin/python /usr/local/bin/dxstream.py
    Restart=on-failure

    [Install]
    WantedBy=custom.target

    Fig3 (custom.target)

    [Unit]
    Description=Custom Target
    Requires=multi-user.target
    After=multi-user.target
    AllowIsolate=yes