Recherche avancée

Médias (91)

Autres articles (106)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (11512)

  • Downloading m3u8 as mp3

    21 avril 2022, par chocojunkie

    Trying to download an m3u8 stream into a playable .mp3 file. I've used the following code :

    


    url = 'https://cs2-1v4.vkuseraudio.net/s/v1/ac/q9UcCVoA_zxE4698emgthLVq0j9JpliZ_sOrmtsLkZ4O6PivNxQC3Cunptncm4Uj9-_tI6dg3tr0At7qlsG2UzIXskjpVzPeSSBIl-ZOf_vxfh3GTWSHlObToDaeCi1ApD-dgDpi1SAZwlnzKbcWNFxkrvgqD1WTnII6K8FUNSzN7HA/index.m3u8'

subprocess.run(['ffmpeg', '-i', url, 'song.mp3'])


    


    But this only downloads parts of the stream stuck together. The stream is 4 minutes long, the file is 2. And you can hear breaks, e.g. at 0:25 of the mp3.

    


  • Error due to calling audio_loop in moviepy

    9 juin 2020, par Noster

    to have music play in the background of a video that has its own audio, and loop until the end of the video i am using the following code. however audio_loop is causing and error after the video is done writing. the song is 67 seconds long, and if i set duration = 66 or below I get no error but any time over causes an error.

    



    final_clip = concatenate_videoclips([*vidclip], method='compose')

count=0
for file in os.listdir(TO):
    if file.endswith('.mp4'):
        count+=1

finalClipName = "{}Final.mp4".format(count)
music = AudioFileClip('song.mp3')
audio_background = afx.audio_loop(music, duration = final_clip.duration)#ERROR
final_audio = CompositeAudioClip([final_clip.audio, audio_background])
final_clip = final_clip.set_audio(final_audio)
final_clip.write_videofile(finalClipName, fps=10)


    



    The error at question

    



    Exception ignored in: <function at="at" 0x0000026346d3baf8="0x0000026346d3baf8">&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Eric\Projects\Videdit\venv\lib\site-packages\moviepy\audio\io\readers.py", line 254, in __del__&#xA;    self.close_proc()&#xA;  File "C:\Users\Eric\Projects\Videdit\venv\lib\site-packages\moviepy\audio\io\readers.py", line 150, in close_proc&#xA;    self.proc.terminate()&#xA;  File "C:\Users\Eric\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1314, in terminate&#xA;    _winapi.TerminateProcess(self._handle, 1)&#xA;OSError: [WinError 6] The handle is invalid&#xA;</function>

    &#xA;

  • Convert audio to video ffmpeg with a gif as the background but keep the audio length

    22 janvier 2018, par akiva

    I used this to combine a JPG and MP3 into a video :

    ffmpeg -loop 1 -i 1.jpg -i song.mp3 -strict -2 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4

    I’m trying to change the .jpg to a .gif, but the gif should loop to the MP3 length