Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (105)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (7568)

  • "fmpeg" has no attribute "input"

    2 mai 2024, par Robin Singh

    I had previously built this youtube downloader but when I tested it recently ; it stopped working.

    


    from pytube import YouTube
import ffmpeg
import os

raw = 'C:\ProgramData\ytChache'

path1 = 'C:\ProgramData\ytChache\Video\\'
path2 = 'C:\ProgramData\ytChache\Audio\\'

file_type = "mp4"

if os.path.exists(path1 and path2):
    boo = True
else:
    boo = False

while boo:

    url = str(input("Link : "))
    choice = int(input('Enter 1 for Only Audio and Enter 2 For Both Audio and Video \n: '))

    video = YouTube(url)
    Streams = video.streams

    if choice == 1:
        aud = Streams.filter(only_audio=True).first().download(path2)

    elif choice == 2:
        resol = str(input("Resolution : "))
        vid = Streams.filter(res=resol, file_extension=file_type).first().download(path1)
        aud = Streams.filter(only_audio=True).first().download(path2)

        file = video.title + '.mp4'
        # location = path1
        # location2 = path2
        rem = os.path.join(path1, file)
        rm = os.path.join(path2, file)

        video_stream = ffmpeg.input(path1, video.title + '.mp4')
        audio_stream = ffmpeg.input(path2, video.title + '.mp4')
        ffmpeg.output(audio_stream, video_stream, video.title + '.mp4').run()
        os.remove(rem)
        os.remove(rm)

    else:
        print('Invalid Selection')

if not boo:
    os.mkdir(raw)
    os.mkdir(path1)
    os.mkdir(path2)


    


    so it gives an error saying :

    


    Traceback (most recent call last):&#xA;  File "E:\dev files\YouTube Video Downloader\Video Downloader.py", line 39, in <module>&#xA;    video_stream = ffmpeg.input(path1 &#x2B; video.title &#x2B; &#x27;.mp4&#x27;)&#xA;AttributeError: module &#x27;ffmpeg&#x27; has no attribute &#x27;input&#x27;&#xA;</module>

    &#xA;

    I can't figure out what happened. I think it may have something to do about the versions of ffmpeg or something ??

    &#xA;

  • FFMPEG creating mp3 with "Junk" at the end

    13 juillet 2022, par Johnaras

    I have a web application which converts WebM files to mp3 using FFMPEG.js in the Client-Side. Once the mp3 conversion finishes, users are prompted to download their file.

    &#xA;

    Lately, I realized that a lot of mp3 files which I tried to converted have a different duration value than the original WebM file. The duration is usually longer. For instance, a WebM file with duration of 2:16 gets converted to an mp3 file with a duration of 2:29. Once the player reaches at 2:16 it just goes back to the start.

    &#xA;

    I have tried to open the file in Audacity but it keeps saying that this MP3 file seems to be "Malformed".

    &#xA;

    I also tried to use MP3val and it says the file has junk at the end.

    &#xA;

    Code Snippets :

    &#xA;

    const worker = new Worker("/ffmpeg-worker-mp4.js");&#xA;import { fetchFile } from "@ffmpeg/ffmpeg"; // https://www.npmjs.com/package/@ffmpeg/ffmpeg&#xA;&#xA;const convertSong = async (title, id, bitrate) => {&#xA;    setProgress("Initializing...")&#xA;    ffmpegVars = [title]&#xA;    &#xA;    worker.postMessage({&#xA;      type: "run",&#xA;      arguments: ["-i", `input.webm`, "-c:a", "libmp3lame",  "-vn", "-ab", `${bitrate ? bitrate : 256}k`, "-ar", "44100", "-f", "mp3", `output.mp3`],&#xA;      MEMFS: [{ name: "input.webm", data: await fetchFile(`/api/download/stream?video=${id}`) }]&#xA;    });&#xA;}&#xA;&#xA;convertSong(data.title, data.id, data.bitrate)&#xA;

    &#xA;

    I'm literally willing to pay anyone who helps me fix this.

    &#xA;

  • 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