Recherche avancée

Médias (91)

Autres articles (11)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (2198)

  • "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;

  • avformat/hls : don't propagate deprecated "user-agent" AVOption

    28 avril 2018, par wm4
    avformat/hls : don't propagate deprecated "user-agent" AVOption
    

    This code will print a warning if any user agent is set - even if the
    API user used the proper non-deprecated "user_agent" option.

    This change should not even break anything, because even if the user
    sets the deprecated "user-agent" option, http.c copies it to the
    "user_agent" option anyway.

    • [DH] libavformat/hls.c
  • ffmpeg throwing "errorMessage" : "spawn ffmpeg ENOENT"

    4 juin 2024, par ian

    My ffmpeg function thats running as a shell command isnt working. I think its because 'ffmpeg' isnt really referring to anything. I have the ffmpeg node module in my bundle, but i dont know the execFile command is referring to it here.

    &#xA;&#xA;

    Im following aws-lambda-ffmpeg as an example of how to call this particular function. They are referring to 'ffmpeg' as a 64-bit linux build they created from John Vansickle's static FFMPEG builds in their gulp function.

    &#xA;&#xA;

    I want to know how to replace 'ffmpeg' with something that will just recognize it like a node_module without having to do the whole gulp static build process. To my understanding the only reason they are doing that is to get the latest build which i really dont need.

    &#xA;&#xA;

    If I am wrong and a static build using gulp is needed for another reason please let me know.

    &#xA;&#xA;

    function ffmpegProcess(description, cb) {&#xA;console.log(&#x27;Starting FFmpeg&#x27;);&#xA;&#xA;child_process.execFile(&#xA;    &#x27;ffmpeg&#x27;,&#xA;    [&#xA;        &#x27;-y&#x27;,&#xA;        &#x27;-loglevel&#x27;, &#x27;warning&#x27;,&#xA;        &#x27;-i&#x27;, &#x27;download&#x27;,&#xA;        &#x27;-c:a&#x27;, &#x27;copy&#x27;,&#xA;        &#x27;-vf&#x27;, scaleFilter,&#xA;        &#x27;-movflags&#x27;, &#x27;&#x2B;faststart&#x27;,&#xA;        &#x27;-metadata&#x27;, &#x27;description=&#x27; &#x2B; description,&#xA;        &#x27;out.&#x27; &#x2B; config.format.video.extension,&#xA;        &#x27;-vf&#x27;, &#x27;thumbnail&#x27;,&#xA;        &#x27;-vf&#x27;, scaleFilter,&#xA;        &#x27;-vframes&#x27;, &#x27;1&#x27;,&#xA;        &#x27;out.&#x27; &#x2B; config.format.image.extension&#xA;    ],&#xA;    {&#xA;        cwd: tempDir&#xA;    },&#xA;    function(err, stdout, stderr) {&#xA;        console.log(&#x27;FFmpeg done.&#x27;);&#xA;        return cb(err, &#x27;FFmpeg finished:&#x27; &#x2B; JSON.stringify({ stdout: stdout, stderr: stderr}));&#xA;    }&#xA;);&#xA;}&#xA;

    &#xA;