Advanced search

Medias (91)

Other articles (76)

  • MediaSPIP version 0.1 Beta

    16 April 2011, by

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 September 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 June 2013, by

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1); Installation des dépendances pour Smush; Installation de MediaInfo et FFprobe pour la récupération des métadonnées; On n’utilise plus ffmpeg2theora; On n’installe plus flvtool2 au profit de flvtool++; On n’installe plus ffmpeg-php qui n’est plus maintenu au profit de (...)

On other websites (8120)

  • Revision b8e027989f: Remove buffer-to-buffer copy logic This is the first in a series of commits to

    14 January 2013, by John Koleszar

    Changed Paths: Modify /vp9/common/vp9_alloccommon.c Modify /vp9/common/vp9_onyxc_int.h Modify /vp9/decoder/vp9_decodframe.c Modify /vp9/decoder/vp9_onyxd_if.c Modify /vp9/encoder/vp9_bitstream.c Modify /vp9/encoder/vp9_onyx_if.c Remove buffer-to-buffer copy logic This is the first (...)

  • How to Download YouTube Videos in 1080p with English Subtitles Using yt-dlp with Python 3

    30 July 2024, by edge selcuk

    I am trying to download YouTube videos using yt-dlp in Python 3.9. I want to download videos in 1080p quality and if 1080p is not available, it should download the best available quality. The audio and video files should be merged into a single MP4 file, and I have ffmpeg installed to handle the merging process.

    


    Here is my script:

    


    import os
import sys
from yt_dlp import YoutubeDL

def download_video(url):
    output_dir = r"/path"  # Update this path

    # Ensure the output directory exists
    if not os.path.exists(output_dir):
        os.makedirs(output_dir)
    
    ydl_opts = {
        'format': '(bestvideo[height<=1080][ext=mp4]/bestvideo)+bestaudio/best',
        'merge_output_format': 'mp4',
        'write_auto_sub': True,
        'writesubtitles': True,
        'subtitleslangs': ['en'],
        'subtitlesformat': 'vtt',
        'embedsubtitles': True,
        'outtmpl': os.path.join(output_dir, '%(title)s.%(ext)s'),
        'postprocessors': [{
            'key': 'FFmpegVideoConvertor',
            'preferedformat': 'mp4',
        }],
    }

    with YoutubeDL(ydl_opts) as ydl:
        ydl.download([url])

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("Usage: python download_video.py ")
        sys.exit(1)

    youtube_url = sys.argv[1]
    download_video(youtube_url)


    


    This script successfully downloads the video in 1080p quality or the best available quality and merges the audio and video files as intended. However, it does not download the subtitles as intended.

    


    I have ffmpeg installed for merging the video and audio files. How can I modify this script to ensure that English subtitles are downloaded and embedded in the video file?

    


  • FFmpeg overlay a series of animated gifs onto a video using a filter_complex script text file [closed]

    1 March 2024, by Massimo Papi

    I am trying to overlay some animated gifs over a video with this command:

    


    ffmpeg -y -i 002_meteo.mp4 -/filter_complex graph.txt -s 1920x1080 -r 25 -b:v 5M -c:v h264_qsv -   flags +ilme+ildct -field_order tt -c:a aac -ar 48000 -b:a 192k 003_meteo.mp4


    


    My graph.txt (part of) looks like

    


    movie='./ICONS/pioggia_debole1.png'[1];    
movie='./ICONS/pioggia_debole1_notte.png'[2];    
movie='./ICONS/pioggia_debole1.png'[3];    
movie='./ICONS/pioggia_debole1_notte.png'[4];    
movie='./ICONS/coperto.png'[5];
[0][1]overlay=x=310:y=350:enable=between(t\,0\,10)[0-1];
[0-1][2]overlay=x=310:y=710:enable=between(t\,0\,10)[0-2];
[0-2][3]overlay=x=950:y=350:enable=between(t\,0\,10)[0-3];
[0-3][4]overlay=x=950:y=710:enable=between(t\,0\,10)[0-4];
[0-4][5]overlay=x=1580:y=350:enable=between(t\,0\,10)


    


    If I use this line, I can accomplish loop:
ffmpeg -y -i 002_meteo.mp4 -ignore_loop 0 -i coperto.gif -filter_complex "overlay=x=310:y=350:shortest=1" -codec:a copy -codec:v libx264 output.mp4

    


    If I put the filter_complex parameters into my text file gifs loop only for the time of gif duration and only the first time, after that they are not animated anymore.
Any help would be appreciated. Thanks.