Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (74)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (10535)

  • libavutil/hwcontext_qsv : Align width and heigh when download qsv frame

    6 avril 2022, par Wenbin Chen
    libavutil/hwcontext_qsv : Align width and heigh when download qsv frame
    

    The width and height for qsv frame to download need to be
    aligned with 16. Add the alignment operation.
    Now the following command works :
    ffmpeg -hwaccel qsv -f rawvideo -s 1920x1080 -pix_fmt yuv420p -i \
    input.yuv -vf "hwupload=extra_hw_frames=16,format=qsv,hwdownload, \
    format=nv12" -f null -

    Signed-off-by : Wenbin Chen <wenbin.chen@intel.com>
    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] libavutil/hwcontext_qsv.c
  • Making youtube-dl download mp3's faster

    12 novembre 2017, par sciencelord

    It takes a long time to download mp3 songs using youtube-dl, and it takes even longer when downloading a bunch of mp3 songs. Is there a way to make it significantly faster ? I don’t mind reducing quality. I’ve been using the command below.

    youtube-dl --extract-audio --audio-format "mp3" --output "%(title)s.%(ext)s" "https://www.youtube.com/watch?v={videoid}

    I also took a look at this post :
    ffmpeg command for faster encoding at a decent bitrate with smaller file size

    But I wasn’t sure how to change the above command using the ffmpeg modifications.

    Thanks !

  • Getting Error while trying to download youtube video by using python

    23 octobre 2024, par Aditya Kumar

    Code

    &#xA;

    I'm working on a script that allows users to manually select and download separate video and audio streams from YouTube using yt-dlp. The script lists the available video and audio formats, lets the user choose their desired formats, and then merges them using FFmpeg.

    &#xA;

    Here’s the complete code :

    &#xA;

    import yt_dlp&#xA;import os&#xA;import subprocess&#xA;&#xA;# Function to list and allow manual selection of video and audio formats&#xA;def download_and_merge_video_audio_with_selection(url, download_path):&#xA;    try:&#xA;        # Ensure the download path exists&#xA;        if not os.path.exists(download_path):&#xA;            os.makedirs(download_path)&#xA;&#xA;        # Get available formats from yt-dlp&#xA;        ydl_opts = {&#x27;listformats&#x27;: True}&#xA;&#xA;        with yt_dlp.YoutubeDL(ydl_opts) as ydl:&#xA;            info_dict = ydl.extract_info(url, download=False)&#xA;            formats = info_dict.get(&#x27;formats&#x27;, [])&#xA;&#xA;        # List available video formats (video only)&#xA;        print("\nAvailable video formats:")&#xA;        video_formats = [f for f in formats if f.get(&#x27;vcodec&#x27;) != &#x27;none&#x27; and f.get(&#x27;acodec&#x27;) == &#x27;none&#x27;]&#xA;        for idx, f in enumerate(video_formats):&#xA;            resolution = f.get(&#x27;height&#x27;, &#x27;unknown&#x27;)&#xA;            filesize = f.get(&#x27;filesize&#x27;, &#x27;unknown&#x27;)&#xA;            print(f"{idx}: Format code: {f[&#x27;format_id&#x27;]}, Resolution: {resolution}p, Size: {filesize} bytes")&#xA;&#xA;        # Let user select the desired video format&#xA;        video_idx = int(input("\nEnter the number corresponding to the video format you want to download: "))&#xA;        video_format_code = video_formats[video_idx][&#x27;format_id&#x27;]&#xA;&#xA;        # List available audio formats (audio only)&#xA;        print("\nAvailable audio formats:")&#xA;        audio_formats = [f for f in formats if f.get(&#x27;acodec&#x27;) != &#x27;none&#x27; and f.get(&#x27;vcodec&#x27;) == &#x27;none&#x27;]&#xA;        for idx, f in enumerate(audio_formats):&#xA;            abr = f.get(&#x27;abr&#x27;, &#x27;unknown&#x27;)  # Audio bitrate&#xA;            filesize = f.get(&#x27;filesize&#x27;, &#x27;unknown&#x27;)&#xA;            print(f"{idx}: Format code: {f[&#x27;format_id&#x27;]}, Audio Bitrate: {abr} kbps, Size: {filesize} bytes")&#xA;&#xA;        # Let user select the desired audio format&#xA;        audio_idx = int(input("\nEnter the number corresponding to the audio format you want to download: "))&#xA;        audio_format_code = audio_formats[audio_idx][&#x27;format_id&#x27;]&#xA;&#xA;        # Video download options (based on user choice)&#xA;        video_opts = {&#xA;            &#x27;format&#x27;: video_format_code,  # Download user-selected video format&#xA;            &#x27;outtmpl&#x27;: os.path.join(download_path, &#x27;video.%(ext)s&#x27;),  # Save video as video.mp4&#xA;        }&#xA;&#xA;        # Audio download options (based on user choice)&#xA;        audio_opts = {&#xA;            &#x27;format&#x27;: audio_format_code,  # Download user-selected audio format&#xA;            &#x27;outtmpl&#x27;: os.path.join(download_path, &#x27;audio.%(ext)s&#x27;),  # Save audio as audio.m4a&#xA;        }&#xA;&#xA;        # Download the selected video format&#xA;        print("\nDownloading selected video format...")&#xA;        with yt_dlp.YoutubeDL(video_opts) as ydl_video:&#xA;            ydl_video.download([url])&#xA;&#xA;        # Download the selected audio format&#xA;        print("\nDownloading selected audio format...")&#xA;        with yt_dlp.YoutubeDL(audio_opts) as ydl_audio:&#xA;            ydl_audio.download([url])&#xA;&#xA;        # Paths to the downloaded video and audio files&#xA;        video_file = os.path.join(download_path, &#x27;video.webm&#x27;)  # Assuming best video will be .mp4&#xA;        audio_file = os.path.join(download_path, &#x27;audio.m4a&#x27;)  # Assuming best audio will be .m4a&#xA;        output_file = os.path.join(download_path, &#x27;final_output.mp4&#x27;)  # Final merged file&#xA;&#xA;        # FFmpeg command to merge audio and video&#xA;        ffmpeg_cmd = [&#xA;            &#x27;ffmpeg&#x27;, &#x27;-i&#x27;, video_file, &#x27;-i&#x27;, audio_file, &#x27;-c&#x27;, &#x27;copy&#x27;, output_file&#xA;        ]&#xA;&#xA;        # Run FFmpeg to merge audio and video&#xA;        print("\nMerging video and audio...")&#xA;        subprocess.run(ffmpeg_cmd, check=True)&#xA;&#xA;        print(f"\nDownload and merging complete! Output file: {output_file}")&#xA;&#xA;    except Exception as e:&#xA;        print(f"An error occurred: {e}")&#xA;&#xA;# Example usage&#xA;video_url = "https://www.youtube.com/watch?v=SOwk8FhfEZY"  # Replace with your desired video URL&#xA;download_path = &#x27;C:/Users/vinod/Downloads/VideoDownload&#x27;  # Replace with your desired download path&#xA;download_and_merge_video_audio_with_selection(video_url, download_path)&#xA;&#xA;

    &#xA;

    Explanation :

    &#xA;

    The script first lists all available video formats (video-only) and audio formats (audio-only) from a given YouTube URL.

    &#xA;

    It allows the user to manually select their preferred video and audio formats.

    &#xA;

    After downloading the selected formats, it merges the video and audio streams into a single file using FFmpeg.

    &#xA;

    Error

    &#xA;

    while trying to run above mentioned code , I am getting this error :

    &#xA;

    Merging video and audio...&#xA;An error occurred: [WinError 2] The system cannot find the file specified&#xA;

    &#xA;

    Requirements :

    &#xA;

    &#xA;

    yt-dlp : pip install yt-dlp

    &#xA;

    &#xA;

    &#xA;

    FFmpeg : Make sure you have FFmpeg installed and added to your system's PATH.

    &#xA;

    &#xA;