Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (57)

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

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (12333)

  • How can I save local video file to django FileField ?

    11 janvier 2021, par Nina deRossi

    I create a local video file (.mp4) by adding a logo to an existing video with the following code :

    


            logo_path = os.path.join(MEDIA_ROOT, 'logo.png')

        logo = (mp.ImageClip(logo_path)
                .set_duration(video.duration)
                .resize(height=50)  # if you need to resize...
                .margin(right=8, top=8, opacity=0)  # (optional) logo-border padding
                .set_pos(("right", "top")))

        video_path = os.path.join(MEDIA_ROOT, 'test7.mp4')
        audio_path = os.path.join(MEDIA_ROOT, 'temp-audio.m4a')

        final = mp.CompositeVideoClip([video, logo])
        final.write_videofile(video_path, codec='libx264',
                              audio_codec='aac',
                              temp_audiofile=audio_path,
                              remove_temp=True
                              )


    


    I want to save the new video to a FileField of my model.
Here is the code :

    


       f = open(video_path)
   flick.videoWithWatermark.save("videoWithWaterMark.mp4", File(f))


    


    I keep getting the error :
'ascii' codec can't decode byte 0xd1 in position 42 : ordinal not in range(128)

    


    How can I save the video to a FileField ?

    


  • Anomalie #2142 (Nouveau) : Balise #SET - espace ajouté lors de l’affectation d’une variable

    1er juillet 2011, par Severo Lipari

    Le code suivant : #SETtoto, a "#GETtoto" rend "a " J’imagine que ca serait mieux si ca rendait "a" sans espace final...

  • FFMPEG sidechaincompress not working as it should ?

    23 octobre 2017, par Taapo

    I have been trying to get sidechaining to work with FFMPEG, but my complex filter skills are lacking.

    I’m running two aif files into ffmpeg, hoping the voice would "duck" the background music when the voice-over is speaking. But I get an error with this command-line (on Windows, with latest FFMPEG binary) :

    ffmpeg.exe -i temp_music.aif -i temp_voice.aif \
    -filter_complex "[1:a]asplit=2[sc][mix];[0:a] \
    [sc]sidechaincompress=threshold=0.1:ratio=5[bg]; \
    [bg][mix]amerge[fin‌​al]" -map [final] final.mp3

    Everything decodes fine :

       ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 76.100 / 55. 76.100
     libavcodec     57.106.101 / 57.106.101
     libavformat    57. 82.101 / 57. 82.101
     libavdevice    57.  8.101 / 57.  8.101
     libavfilter     6.105.100 /  6.105.100
     libswscale      4.  7.103 /  4.  7.103
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, aiff, from 'temp_music.aif':
     Duration: 00:01:26.68, start: 0.000000, bitrate: 1536 kb/s
       Stream #0:0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, aiff, from 'temp_voice.aif':
     Duration: 00:01:26.68, start: 0.000000, bitrate: 1536 kb/s
       Stream #1:0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
    Output with label 'final' does not exist in any defined filter graph, or was already used elsewhere.

    But then I receive an error :

    Output with label ’final’ does not exist in any defined filter graph,
    or was already used elsewhere.

    Anybody knows why ?