Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (60)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

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

Sur d’autres sites (4793)

  • Getting "TypeError : must be real number, not NoneType" whenever trying to run write_videofile to a clip in moviepy

    9 novembre 2024, par Sato

    Example code :

    


    from moviepy.editor import *
clip = VideoFileClip('video.mp4')
clip.write_videofile('video2.mp4', fps=30)


    


    After showing the following messages, showing that the video is being built and written,

    


    Moviepy - Building video video2.mp4.
Moviepy - Writing video video2.mp4


    


    The following error message occurs :

    


    Traceback (most recent call last):&#xA;  File "<stdin>", line 1, in <module>&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\decorator.py", line 232, in fun&#xA;    return caller(func, *(extras &#x2B; args), **kw)&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration&#xA;    return f(clip, *a, **k)&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\decorator.py", line 232, in fun&#xA;    return caller(func, *(extras &#x2B; args), **kw)&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\decorators.py", line 135, in use_clip_fps_by_default&#xA;    return f(clip, *new_a, **new_kw)&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\decorator.py", line 232, in fun&#xA;    return caller(func, *(extras &#x2B; args), **kw)&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB&#xA;    return f(clip, *a, **k)&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\video\VideoClip.py", line 300, in write_videofile&#xA;    ffmpeg_write_video(self, filename, fps, codec,&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 213, in ffmpeg_write_video&#xA;    with FFMPEG_VideoWriter(filename, clip.size, fps, codec = codec,&#xA;  File "C:\Users\User\Anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 88, in __init__&#xA;    &#x27;-r&#x27;, &#x27;%.02f&#x27; % fps,&#xA;TypeError: must be real number, not NoneType&#xA;</module></stdin>

    &#xA;

    This occurs whenever I try to perform write_videofile to any kinds of clip in moviepy. It is strange since the exact same code worked for me yesterday, but suddenly not anymore today. Are there any suggestions what the cause is and how to resolve this ?

    &#xA;

  • Controlling "Real-Time" sending rate in RTP Streaming with FFMpeg

    14 décembre 2020, par Robert_Ordis

    I'm trying to build an experimental audio telephony system with ffmpeg to talk some G.711 VoIP machine.

    &#xA;

    Then, I tried this command.

    &#xA;

    .\ffmpeg.exe -re -f dshow -i audio="CABLE Output (VB-Audio Virtual Cable)" -ac 1 -ab 64k -ar 8000 -f mulaw -f rtp "rtp://192.168.3.175:4449?fifo_size=240&amp;localrtpport=5100&amp;pkt_size=240"&#xA;

    &#xA;

    In WireShark capturing, the audio in each packets was actually divided in each around 30[ms].

    &#xA;

    However, 17- 18 packets was sent together once per 500[ms].

    &#xA;

    Sent audio was correct, but in this situation, an opponent machine can't treat this correctly.

    &#xA;

    How do I send these packets in per "UNDER 0.5 SEC" ?

    &#xA;

  • Decode android's hardware encoded H264 camera feed using ffmpeg in real time

    6 décembre 2017, par joebobfrank

    I’m trying to use the hardware H264 encoder on Android to create video from the camera, and use FFmpeg to mux in audio (all on the Android phone itself)

    What I’ve accomplished so far is packetizing the H264 video into rtsp packets, and decoding it using VLC (over UDP), so I know the video is at least correctly formatted. However, I’m having trouble getting the video data to ffmpeg in a format it can understand.

    I’ve tried sending the same rtsp packets to a port 5006 on localhost (over UDP), then providing ffmpeg with the sdp file that tells it which local port the video stream is coming in on and how to decode the video, if I understand rtsp streaming correctly. However this doesn’t work and I’m having trouble diagnosing why, as ffmpeg just sits there waiting for input.

    For reasons of latency and scalability I can’t just send the video and audio to the server and mux it there, it has to be done on the phone, in as lightweight a manner as possible.

    What I guess I’m looking for are suggestions as to how this can be accomplished. The optimal solution would be sending the packetized H264 video to ffmpeg over a pipe, but then I can’t send ffmpeg the sdp file parameters it needs to decode the video.

    I can provide more information on request, like how ffmpeg is compiled for Android but I doubt that’s necessary.

    Oh, and the way I start ffmpeg is through command line, I would really rather avoid mucking about with jni if that’s at all possible.

    And help would be much appreciated, thanks.