Recherche avancée

Médias (91)

Autres articles (105)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (12101)

  • Command-line streaming webcam with audio from Ubuntu server in WebM format

    6 avril, par mjtb

    I am trying to stream video and audio from my webcam connected to my headless Ubuntu server (running Maverick 10.10). I want to be able to stream in WebM format (VP8 video + OGG). Bandwidth is limited, and so the stream must be below 1Mbps.

    



    I have tried using FFmpeg. I am able to record WebM video from the webcam with the following :

    



    ffmpeg -s 640x360 \
-f video4linux2 -i /dev/video0 -isync -vcodec libvpx -vb 768000 -r 10 -vsync 1 \
-f alsa -ac 1 -i hw:1,0 -acodec libvorbis -ab 32000 -ar 11025 \
-f webm /var/www/telemed/test.webm 


    



    However despite experimenting with all manner of vsync and async options, I can either get out of sync audio, or Benny Hill style fast-forward video with matching fast audio. I have also been unable to get this actually working with ffserver (by replacing the test.webm path and filename with the relevant feed filename).

    



    The objective is to get a live, audio + video feed which is viewable in a modern browser, in a tight bandwidth, using only open-source components. (None of that MP3 format legal chaff)

    



    My questions are therefore :
How would you go about streaming webm from a webcam via Linux with in-sync audio ? What software you use ?

    



    Have you succeeded in encoding webm from a webcam with in-sync audio via FFmpeg ? If so, what command did you issue ?

    



    Is it worth persevering with FFmpeg + FFserver, or are there other more suitable command-line tools around (e.g. VLC which doesn't seem too well built for encoding) ?

    



    Is something like Gstreamer + flumotion configurable from the command line ? If so, where do I find command line documentation because flumotion doc is rather light on command line details ?

    



    Thanks in advance !

    


  • MoviePy Error : The system cannot find the file specified

    4 juillet 2017, par JohnSmithy1266

    I’m getting the error in the title when trying to run the example code below on Windows 10/Python 3.6.1/Sublime Text Editor 3. I made sure to set my MAGICK_HOME environment variable to point to where I manually installed ImageMagick. I made sure to only have 1 version of ImageMagick installed. I made sure FFMPEG, Numpy, imageio, Decorator, and tqdm were all installed.

    Yes, the file "vidclip.mp4" exists. The desired behavior here is to simply clip the video and add text to the center as per the example on the github page, i.e. to simply run the code successfully.

    Does anyone know what might be wrong ?

    Example code from github :

    from moviepy.editor import *

    video = VideoFileClip("vidclip.mp4").subclip(7,64)

    # Make the text. Many more options are available.
    txt_clip = ( TextClip("Ken Block who?",fontsize=70,color='white')
                .set_position('center')
                .set_duration(10) )

    result = CompositeVideoClip([video, txt_clip]) # Overlay text on video
    result.write_videofile("vidclip_edited.webm",fps=25) # Many options...

    The full error trace :

    Traceback (most recent call last):
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 1220, in __init__
       subprocess_call(cmd, verbose=False )
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\tools.py", line 42, in subprocess_call
       proc = sp.Popen(cmd, **popen_params)
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in __init__
       restore_signals, start_new_session)
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
       startupinfo)
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\av\Desktop\Desktop\Projects\Youtube\blender\test\testMoviePy.py", line 6, in <module>
       txt_clip = ( TextClip("Ken Block who?",fontsize=70,color='white')
     File "C:\Users\av\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 1229, in __init__
       raise IOError(error)
    OSError: MoviePy Error: creation of None failed because of the following error:

    [WinError 2] The system cannot find the file specified.

    .This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or.that the path you specified is incorrect
    </module>
  • The system cannot find the file specified with ffmpeg

    15 mai 2024, par Samhita vempatti

    In the process of using the ffmpeg module to edit video files i used the subprocess module

    &#xA;&#xA;

    The code is as follows :

    &#xA;&#xA;

    #trim bit&#xA;&#xA;import subprocess&#xA;import os&#xA;seconds = "4"&#xA;mypath=os.path.abspath(&#x27;trial.mp4&#x27;)&#xA;subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;,mypath, &#x27;-ss&#x27;, seconds, &#x27;trimmed.mp4&#x27;])&#xA;

    &#xA;&#xA;

    Error message :

    &#xA;&#xA;

    Traceback (most recent call last):&#xA;  File "C:\moviepy-master\resizer.py", line 29, in <module>&#xA;    subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;,mypath, &#x27;-ss&#x27;, seconds, &#x27;trimmed.mp4&#x27;])&#xA;  File "C:\Python27\lib\subprocess.py", line 168, in call&#xA;    return Popen(*popenargs, **kwargs).wait()&#xA;  File "C:\Python27\lib\subprocess.py", line 390, in __init__&#xA;    errread, errwrite)&#xA;  File "C:\Python27\lib\subprocess.py", line 640, in _execute_child&#xA;    startupinfo)&#xA;WindowsError: [Error 2] The system cannot find the file specified&#xA;</module>

    &#xA;&#xA;

    After looking up similar problems i understood that the module is unable to pick the video file because it needs its path, so i took the absolute path. But in spite of that the error still shows up.&#xA;The module where this code was saved and the video file trial.mp4 are in the same folder.

    &#xA;