Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (111)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

Sur d’autres sites (12848)

  • cbs : Add padding to slice data allocations

    9 novembre 2017, par Mark Thompson
    cbs : Add padding to slice data allocations
    

    These may be read by the bitstream reader, so they should include the
    necessary padding for overreads.

    • [DBH] libavcodec/cbs_h2645.c
    • [DBH] libavcodec/cbs_mpeg2.c
  • 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.

  • How to convert a ffmpeg command to work with ffmpy ?

    8 juillet 2021, par Daveguy

    I am trying to extract a certain audio segment from an entire audio file using ffmpy, which I haven't really worked with before. So far, I have looked into extracting a certain time range, which suggests to use a command like this :

    &#xA;

    ffmpeg -ss 00:01:00 -i input.mp3 -to 00:02:00 -c copy output.mp3

    &#xA;

    In my case, I am trying to write a Python script to do this over multiple audio files. Since I am reading from a csv and all that, I am storing important information in variables. However, being a first time user of ffmpy and ffmpeg I'm really not sure how I'm supposed to do that.

    &#xA;

    Below is the code that I have so far (including what I attempted to do to so far to extract the audio bits) :

    &#xA;

    for line in reader:&#xA;        # Get access to the stored file as found in the audio_files dir&#xA;        print(line)&#xA;        folder_name = line[1].split("/")[len(line[1].split("/")) - 2]&#xA;        file_name = line[1].split("/")[len(line[1].split("/")) - 1]&#xA;&#xA;        &#xA;        audio_file_path = "./audio_files/" &#x2B; folder_name &#x2B; "/" &#x2B; file_name.split(".")[0] &#x2B; ".mp3"&#xA;        print(audio_file_path)&#xA;&#xA;        start_time = line[2]&#xA;        end_time = line[3]&#xA;&#xA;        # Use ffmpy/ffmpeg to extract the audio bits&#xA;        ff = FFmpeg(inputs={file_name &#x2B; ".mp3": "None"}, outputs={file_name &#x2B; "_truncated.mp3": "None"})&#xA;        ff.cmd = &#x27;ffmpeg -i "&#x27; &#x2B; audio_file_path &#x2B; &#x27;" -ss &#x27; &#x2B; start_time &#x2B; &#x27; -to &#x27; &#x2B; end_time &#x2B; &#x27; -async 1 &#x27; &#x2B; &#x27;"./audio_files/&#x27; &#x2B; folder_name &#x2B; &#x27;/&#x27; &#x2B; file_name.split(".")[0] &#x2B; &#x27;_cut.mp3"&#x27;&#xA;        print(ff.cmd)&#xA;        ff.run()&#xA;

    &#xA;

    The main issue which I am currently facing is I am having issues running with ff.run(). Even though running the same command on command line (using ffmpeg) seems to go flawlessly, when trying to run with ffmpy it gives me "FFRuntime Exited With Status Code 1", and I'm not sure what could be causing this. As I have only just started using ffmpy and ffmpeg I'm not entirely sure what I'm doing is right, so any help would be greatly appreciated.

    &#xA;