Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (53)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (3333)

  • Very basic Moviepy script failing to run

    1er juillet 2018, par cem akbulut

    So, I have this very basic script that concatenates two videos, and adds a background sound.

    def intro():

       voiceoverIntro = AudioFileClip(audio[3]) #get path for intro.mp3


       introVideo = []
       temp = p1vid + p2vid + p3vid

       for x in temp: # add product videos to introVideo if they are longer than intro.mp3
           x = VideoFileClip(x)

           if x.duration >= voiceoverIntro.duration:
               introVideo.append(x)


       if len(introVideo) >= 1:

           #Get the video and turn off its volume
           introBg = introVideo[0].volumex(0).resize((1280,720))
           introBg = introBg.set_audio(voiceoverIntro).set_duration(voiceoverIntro.duration)


           introBg.reader.close()
           introBg.audio.reader.close_proc()

           return introBg

    And this function creates the second clip

    def productThreeOpener(productName):
       opener3 = VideoFileClip("media/number3.mp4").volumex(0).resize((1280,720))



       text = TextClip(productName,fontsize=60,color='white', font="Dekar")\
           .set_pos(("right", "center"))\
           .set_duration(3)\
           .set_start(2)\
           .crossfadein(1)\
           .crossfadeout(1)\
           .margin(right=200,opacity=0)

       opener3 = CompositeVideoClip([opener3, text])

       return opener3

    Now we just concatenate the two outputs

    final_clip = concatenate_videoclips([intro, productThreeOpener], method="compose")

    final_clip.resize((1280, 720)).write_videofile("output/intro.mp4", threads=8, fps=24, progress_bar=False)

    Running the code above returns this error ;

    Traceback (most recent call last):
    [MoviePy] >>>> Building video output/intro.mp4
     File "C:/Users/Akbulut/PycharmProjects/youtubeVideoEditor/vidEditor/sandbox.py", line 145, in <module>
    [MoviePy] Writing audio in introTEMP_MPY_wvf_snd.mp3
       final_clip.write_videofile("output/intro.mp4", threads=8, fps=24, progress_bar=False)
     File "", line 2, in write_videofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "", line 2, in write_videofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 137, in use_clip_fps_by_default
       return f(clip, *new_a, **new_kw)
     File "", line 2, in write_videofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB
       return f(clip, *a, **k)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 318, in write_videofile
       progress_bar=progress_bar)
     File "", line 2, in write_audiofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\AudioClip.py", line 213, in write_audiofile
       progress_bar=progress_bar)
     File "", line 2, in ffmpeg_audiowrite
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 165, in ffmpeg_audiowrite
       ffmpeg_params=ffmpeg_params)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 71, in __init__
       self.proc = sp.Popen(cmd, **popen_params)
     File "C:\Program Files\Python36\lib\subprocess.py", line 594, in __init__
       _cleanup()
     File "C:\Program Files\Python36\lib\subprocess.py", line 205, in _cleanup
       res = inst._internal_poll(_deadstate=sys.maxsize)
     File "C:\Program Files\Python36\lib\subprocess.py", line 1025, in _internal_poll
       if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
    OSError: [WinError 6] İşleyici geçersiz
    Exception ignored in: <bound method="method" of="of" object="object" at="at" 0x0000000a885019b0="0x0000000a885019b0">>
    Traceback (most recent call last):
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 134, in __del__
       self.close()
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 122, in close
       if self.proc:
    AttributeError: 'FFMPEG_AudioWriter' object has no attribute 'proc'

    Process finished with exit code 1
    </bound></module>

    I strictly followed MoviePY installation guide, installed it and all of its dependencies about 2 days ago. I work on a 64b Windows machine. Python version 3.6.1

    I’ve been stuck with this error for over a day now, and I don’t know what to try.. Any help/advice is highly appreciated.

    Thanks.

  • Revision 33331 : simplifier les petitions : le tableau des signatures utilise les classe ...

    27 novembre 2009, par cedric@… — Log

    simplifier les petitions : le tableau des signatures utilise les classe generiques table.spip et autre qui lui permet d’etre par defaut dans le theme. Les class specifiques sur chaque element restent utilisables pour affiner si (...)

  • FFMPEG convert videos using Automator [closed]

    8 janvier, par FilipPro

    I'm trying to use Apple Automator (v2.10, Sonoma 14.7.1, Apple M1) to select a folder and convert all MP4 files to WMV files using FFMPEG. The user is supposed to export files from Final Cut Pro in MP4, put them in a folder of their choice and then start the automation by having to select the folder where MP4 files are saved.

    &#xA;

    FFMPEG is installed via Homebrew and the installation folder was found via "which ffmpeg" ( /opt/homebrew/bin/ffmpeg ).

    &#xA;

    This is the worklow I currently have : Full Automator Workflow

    &#xA;

      &#xA;
    1. Run AppleScript

      &#xA;

        &#xA;
      1. &#xA;
        on run {input, parameters}&#xA;&#xA;  tell application "System Events"&#xA;    activate&#xA;    return text returned of (display dialog "Enter administrator password" default answer "" with hidden answer)&#xA;  end tell&#xA;&#xA;  return input&#xA;end run&#xA;

        &#xA;

      2. &#xA;

      &#xA;

    2. &#xA;

    3. Run Shell script (/bin/zsh, no input required)

      &#xA;

        &#xA;
      1. &#xA;
        sudo -S id -u&#xA;

        &#xA;

      2. &#xA;

      &#xA;

    4. &#xA;

    5. Ask for Finder elements

      &#xA;

        &#xA;
      1. Select folder, starting from "Downloads" folder, no multiple selection
      2. &#xA;

      &#xA;

    6. &#xA;

    7. Run Shell script (/bin/zsh, input as arguments)

      &#xA;

        &#xA;
      1. &#xA;
        cd "$1"&#xA;&#xA;for f in *.mp4; do&#xA;  osascript -e "display notification \"Converting file: $f \" with title \"Video Conversion\""&#xA;  sudo /opt/homebrew/bin/ffmpeg -i "$f" -c:v wmv2 -b:v 3000k -c:a wmav2 -b:c 192k "${f%.*}.wmv"&#xA;  if [ $? -eq 0 ]; then&#xA;      osascript -e "display notification \"Converted file: $f \" with title \"Video Conversion\""&#xA;  else&#xA;      osascript -e "display notification \"Error converting file: $f \" with title \"Video Conversion\""&#xA;  fi&#xA;done&#xA;

        &#xA;

      2. &#xA;

      &#xA;

    8. &#xA;

    &#xA;

    The actual script (step 4) works perfectly if handtyped in Terminal but FFMPEG return "Error opening output files : Invalid argument" when run within the Automator workflow.

    &#xA;

    This is the output of step 4 (I added *REDACTED FOR PRIVACY* instead of actual filenames) :

    &#xA;

    ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers&#xA;built with Apple clang version 16.0.0 (clang-1600.0.26.4)&#xA;configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;libavutil      59. 39.100 / 59. 39.100&#xA;libavcodec     61. 19.100 / 61. 19.100&#xA;libavformat    61.  7.100 / 61.  7.100&#xA;libavdevice    61.  3.100 / 61.  3.100&#xA;libavfilter    10.  4.100 / 10.  4.100&#xA;libswscale      8.  3.100 /  8.  3.100&#xA;libswresample   5.  3.100 /  5.  3.100&#xA;libpostproc    58.  3.100 / 58.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;*REDACTED FOR PRIVACY*&#x27;:&#xA;Metadata:&#xA;major_brand     : mp42&#xA;minor_version   : 1&#xA;compatible_brands: isommp41mp42&#xA;creation_time   : 2024-12-30T17:06:35.000000Z&#xA;Duration: 00:00:15.00, start: 0.000000, bitrate: 5122 kb/s&#xA;Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 5119 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24k tbn (default)&#xA;Metadata:&#xA;creation_time   : 2024-12-30T17:06:35.000000Z&#xA;handler_name    : Core Media Video&#xA;vendor_id       : [0][0][0][0]&#xA;Trailing garbage at the end of a stream specifier: c&#xA;Error opening output file *REDACTED FOR PRIVACY*.&#xA;Error opening output files: Invalid argument”&#xA;

    &#xA;