Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (44)

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

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (8670)

  • 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