Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (82)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (11298)

  • Python : Error Combining Audio and Video Files using ffmpeg concat

    4 juillet 2022, par Aman

    I have a function that downloads videos using pytube. I have to download both the audio and the video files separately and then combine them using ffmpeg. This is what I have :

    


    def DownloadVideo(video_link,folder,maxres=None):
    if maxres==None:      
        print("Video Started")    
        video_file = YouTube(video_link).streams.order_by('resolution').desc().first().download()
        print("Video Done")
        
    else:
        print("Video Started")       
        video_file = YouTube(video_link).streams.filter(res=maxres).order_by('resolution').desc().first().download(output_path=folder)              
        print("Video Done", video_file)
       
    
    video_name = slugify(video_file.replace(".webm","").split("/")[-1])      
    print("Audio Started")

    audio_file = YouTube(video_link).streams.filter(only_audio=True).order_by('abr').desc().first().download(filename_prefix="audio_", output_path=folder)

    print("Audio Done")
    
    source_audio = ffmpeg.input(audio_file)
    source_video = ffmpeg.input(video_file)

    print("source audio: ", source_audio)
    print("source video: ", source_video)

    print("Concatenation Started")

    ffmpeg.concat(source_video, source_audio, v=1, a=1).output(f"{folder}/{video_name}.mp4").run()

    # Combine the video and audio
    
    print("Concatenation Done")
    return None


    


    However, this gives me the following error :

    


    ...&#xA;Video Started&#xA;Video Done D:/Data Projects/downloads/videos\The media.webm&#xA;Audio Started&#xA;Audio Done&#xA;source audio:  input(filename=&#x27;D:/Data Projects/downloads/videos\\audio_The media.webm&#x27;)[None] &lt;1792faaa507b>&#xA;source video:  input(filename=&#x27;D:/Data Projects/downloads/videos\\The media.webm&#x27;)[None] &lt;1f47beb69b93>&#xA;Concatenation Started&#xA;Traceback (most recent call last):&#xA;  File "<stdin>", line 4, in <module>&#xA;  File "<stdin>", line 20, in DownloadVideo&#xA;  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 313, in run&#xA;    process = run_async(&#xA;  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 284, in run_async&#xA;    return subprocess.Popen(&#xA;  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;</stdin></module></stdin>

    &#xA;

    But both The media.webm and audio_The media.webm exist in the folder.

    &#xA;

    What am I doing wrong and how can I fix this ?

    &#xA;

  • Evolution #4170 : Visibilité icônes des auteurs

    24 août 2018, par erational 鬼

    Voici un 1er essai :

    • ligne 1 : l’existant les auteurs 32
    • ligne 2 : la proposition pour des couleurs plus lisibles un peu à la mode "flat design"
  • Creating an MP4 video with ffmpeg from timestamped JPEG frames received by pipe

    16 août 2024, par Denis Fevralev

    I need to create a video with following conditions :

    &#xA;

      &#xA;
    1. It can only be made from a sequence of JPEG files, each having its timestamp (milliseconds) in the name. The images' durations are not the same, they differ, so i cannot just concat them all and use particular fps
    2. &#xA;

    3. There are several tar archives with the images sequences, the archives are kind of huge so I read them from a file storage as an async steam of data and cannot save them on the disk as files. The frames are read and right away put to ffmpeg running process stdin.
    4. &#xA;

    5. The images may have different aspect ratios so it's required to make a NxN square and scale the images to fit in with filling the empty space with pads
    6. &#xA;

    &#xA;

    My current solution :

    &#xA;

    ffmpeg -r $someFpsValue -i - -vf scale=w=$w:h=$h:force_original_aspect_ratio=1,pad=$w:$h:(((ow-iw)/2)):(((oh-ih)/2)) result.mp4&#xA;

    &#xA;

    As you can see, it doesn't let me concat the images with correct durations. I know that the concat demuxer can solve the problem of merging images with different durations but seemingly it doesn't work with pipe protocol. I have an idea of evaluating an average fps as (videoFramesCount) / (videoDurationInSeconds) for -r argument, or maybe even counting the fps for each video's second and then getting the avg, but maybe there is a more reliable solution (like some concat demuxer analogue) ?

    &#xA;

    Thanks in advance :)

    &#xA;