Recherche avancée

Médias (91)

Autres articles (106)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8971)

  • Deprecation error when using imageio.ffmpeg.download()

    29 novembre 2022, par SHASHIKUMAR B J

    I'm trying to merge the prerecorded videos using python Opencv.
But i'm getting the error while importing.

    



    "Traceback (most recent call last):&#xA;  File "video.py", line 4, in <module>&#xA;    from moviepy. editor import VideoFileClip,concatenate_videoclips &#xA;  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/moviepy/editor.py", line 26, in <module>&#xA;    imageio.plugins.ffmpeg.download()&#xA;  File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/imageio/plugins/ffmpeg.py", line 40, in download&#xA;    "imageio.ffmpeg.download() has been deprecated. "&#xA;RuntimeError: imageio.ffmpeg.download() has been deprecated. Use &#x27;pip install imageio-ffmpeg&#x27; instead.&#x27;"&#xA;</module></module>

    &#xA;&#xA;

    would anyone please help to get out of this problem

    &#xA;&#xA;

    Here is the code :

    &#xA;&#xA;

    import cv2 &#xA;import os &#xA;import time &#xA;from moviepy.editor import VideoFileClip,concatenate_videoclips &#xA;def vidcapt():&#xA;    a = time.strftime("%H,%M,%S")&#xA;    cap = cv2.VideoCapture(0)&#xA;    fourcc = cv2.VideoWriter_fourcc(*&#x27;XVID&#x27;)&#xA;    out = cv2.VideoWriter(a&#x2B;&#x27;.avi&#x27;, fourcc, 24.0, (640,480))&#xA;    t1 = time.time()&#xA;    while(cap.isOpened()):&#xA;            ret, frame = cap.read() &#xA;            if ret == True:&#xA;                    out.write(frame)&#xA;                    cv2.imshow(&#x27;frame&#x27;,frame)&#xA;                    t2 = time.time()&#xA;                    time_diff = t2-t1&#xA;                    if time_diff >= 5:&#xA;                            break&#xA;            else:&#xA;                    break&#xA;    cap.release()&#xA;    out.release()&#xA;    cv2.destroyAllWindows()&#xA;&#xA;while True:&#xA;        vidcapt()&#xA;&#xA;&#xA;clip1 = VideoFileClip("11,05,42.avi")&#xA;clip2 = VideoFileClip("11,05,47.avi").subclip(50,60)&#xA;final_clip = concatenate_videoclips([clip1,clip2])&#xA;final_clip.write_videofile("merged.avi")&#xA;

    &#xA;

  • download part youtube video with ffmpeg ?

    1er août 2020, par testoflow

    I can't get this right
    &#xA;ffmpeg works well so can you help me ?

    &#xA;

    #I can't get this right

    &#xA;

    #!/bin/bash&#xA;var=$(xclip -o)&#xA;&#xA;if [ -z $var ]; then  &#xA;    echo &#x27;copia url a descargar al portapapeles&#x27;  &#xA;fi  &#xA;&#xA;printf "(1) download part of video without audio\n"&#xA;printf "(2) download part of audio\n"&#xA;echo&#xA;echo -n &#x27;opcion: &#x27;&#xA;read opcion&#xA;case $opcion in&#xA;    "1") c=$(youtube-dl -g $var | awk &#x27;{ if(NR==1) print $0 }&#x27; | sed &#x27;s/^/"/;s/$/"/&#x27;)  &amp;&amp; echo -n &#x27;start time: &#x27; &amp;&amp; read segundos &amp;&amp; echo -n &#x27;duration: &#x27; &amp;&amp; read duration &amp;&amp;  ffmpeg -i $c -ss $segundos -t $duration probe.mp4;;  &#xA;    "2") b=$(youtube-dl -g $var | awk &#x27;{ if(NR==2) print $0 }&#x27; | sed &#x27;s/^/"/;s/$/"/&#x27;)  &amp;&amp; echo $b &amp;&amp; ffmpeg -ss 0 -i $b  -t 10 probe.mp3;;  &#xA;esac  &#xA;

    &#xA;

  • Unable to download a file using youtube_dl

    22 octobre 2020, par perkymaster

    I am trying to play music from a bot using ffmpeg and youtube_dl by making using of discord.py but it seems that I am unable to download the file

    &#xA;

    Here is my code :

    &#xA;

    voice = get(client.voice_clients, guild=ctx.guild)&#xA;&#xA;ydl_opts={&#xA;    &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;    &#x27;noplaylist&#x27;: &#x27;True&#x27;,&#xA;    &#x27;postprocessors&#x27;: [{&#xA;        &#x27;key&#x27;: &#x27;FFmpegExtractAudio&#x27;,&#xA;        &#x27;preferredcodec&#x27;:&#x27;mp3&#x27;,&#xA;        &#x27;preferredquality&#x27;:&#x27;192&#x27;,&#xA;    }],&#xA;}&#xA;&#xA;with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;    print("Downloading audio now \n")&#xA;    ydl.download([url])&#xA;&#xA;for file in os.listdir("./"):&#xA;    if file.endswith(".mp3"):&#xA;        name=file&#xA;        print(f"Renamed File: {file}\n")&#xA;        os.rename(file, "song.mp3")&#xA;&#xA;voice.play(discord.FFmpegPCMAudio(&#x27;song.mp3&#x27;), after=lambda e: print(f"{name} has finished playing"))&#xA;voice.is_playing()&#xA;voice.source=discord.PCMVolumeTransformer(voice.source)&#xA;voice.source.volume= 0.7&#xA;&#xA;nname = name.rsplit("-", 2)&#xA;await ctx.send(f"Playing {nname}")&#xA;print("Playing \n")&#xA;

    &#xA;

    Nothing seems to happen, the bot is not playing any music.

    &#xA;

    I am new to this, can anyone help ?

    &#xA;