Recherche avancée

Médias (91)

Autres articles (32)

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

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

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

  • Python ffmpeg won't accept path, why ?

    16 février, par Messaoud dhia

    everytime i launch the code and set the correct path it gives me this error, I tried including ffmpeg path, uninstalling and installing the library back but no luck. I've also tried using diffrent ways to set the path like putting it directly without saving it to a variable, this is getting me crazy please help me with a solution .

    



    

                                                         Code


    



    

    from pytube import *
import ffmpeg

global str
userurl = (input("Enter a youtube video URL : "))
q = str(input("Which quality you want ?  360p,480p,720p,1080p,4K,Flh :")).lower()
yt = YouTube(userurl)
print ("Title of the video : ",yt.title)


def hd1080p():
    print("Downloading a HD 1080p video...")
    v = yt.streams.filter(mime_type="video/mp4", res="1080p", adaptive = True).first().download(filename = "HD1080P.mp4")
    print("Video downloaded")
    yt.streams.filter(mime_type="audio")
    a = yt.streams.get_audio_only()
    print("Downloading audio")
    a.download(filename = "audio.mp4")
    print("audio downloaded")
    input_video = ffmpeg.input("HD1080P.mp4")
    added_audio = ffmpeg.input("audio.mp4").audio.filter('adelay', "1500|1500")

    merged_audio = ffmpeg.filter([input_video.audio, added_audio], 'amix')

    (
        ffmpeg
        .concat(input_video, merged_audio, v=1, a=1)
        .output("mix_delayed_audio.mp4")
        .run(overwrite_output=True)
    )
    

if q == "1080" or q == "1080p":
    hd1080p()
elif q == "720" or q == "720p":
    hd720p()
elif q == "480" or q == "480p":
    l480p()
elif q == "360" or q == "360p":
    l360p()
elif q ==  "4" or q == "4k":
    hd4k()
else:
    print("invalid choice")


    



    

                                                      THE ERROR


    



    

    Traceback (most recent call last):&#xA;  File "c:\Users\messa\Desktop\upcoming project\videodownloader.py", line 65, in <module>&#xA;    hd1080p()&#xA;  File "c:\Users\messa\Desktop\upcoming project\videodownloader.py", line 26, in hd1080p&#xA;    ffmpeg&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 313, in run&#xA;    process = run_async(&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 284, in run_async&#xA;    return subprocess.Popen(&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;</module>

    &#xA;

  • How to convert multiple video files in a specific path outputvideo with the same video name

    31 janvier, par Oussama Gamer

    The following code to converts a one video from mp4 to avi using ffmpeg

    &#xA;

    ffmpeg.exe  -i "kingman.mp4"  -c copy "kingman.avi"

    &#xA;

    I need to convert multiple videos in a specific path. "outputvideo" with the same video name

    &#xA;

    This is the my code that needs to be modified.

    &#xA;

    from pathlib import Path&#xA;import subprocess&#xA;from glob import glob&#xA;&#xA;all_files = glob(&#x27;./video/*.mp4&#x27;)&#xA;&#xA;for filename in all_files:&#xA;     videofile = Path(filename)&#xA;     outputfile = Path(r"./outputvideo/")&#xA;     codec = "copy"&#xA;     ffmpeg_path = (r"ffmpeg.exe")&#xA;&#xA;outputfile = outputfile / f"{videofile.stem}"&#xA;&#xA;outputfile.mkdir(parents=True, exist_ok=True)&#xA;&#xA;command = [&#xA;    f"{ffmpeg_path}",&#xA;    "-i", f"{videofile}",&#xA;    "-c", f"{codec}",&#xA;    "{outputfile}",]&#xA;&#xA;process = subprocess.Popen(&#xA;    command,&#xA;    stdout=subprocess.PIPE,&#xA;    stderr=subprocess.PIPE,&#xA;    text=True,&#xA;    bufsize=1,&#xA;    universal_newlines=True)&#xA;process.communicate()&#xA;

    &#xA;

  • avcodec/opus/parser : remove duplicate failure path code

    3 janvier, par James Almer
    avcodec/opus/parser : remove duplicate failure path code
    

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/opus/parser.c