Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (39)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (4844)

  • "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 : Scale input image to be used in filter_complex

    26 septembre 2022, par peters675679

    I've got the following ffmpeg command used to find a specific frame within a specified video but I've found that if the resolutions differ ffmpeg won't compare them. So I'm looking to scale the input jpg before the filtering takes place.&#xA;The command :

    &#xA;

    ffmpeg -ss 0 -copyts -i "$video_input" -i "reference_frame.jpg" -filter_complex "[0]extractplanes=y[v];[1]extractplanes=y[i];[v][i]blend=difference,blackframe=0,metadata=select:key=lavfi.blackframe.pblack:value=93:function=greater,trim=duration=0.0001,metadata=print:file=-" -an -vsync 0 -f null -&#xA;

    &#xA;

    I tried introducing [1]scale=1280:720[w] at the beginning of the filter and assigning [w] to the second extractplanes but it extractplanes claims

    &#xA;

    &#xA;

    The following filters could not choose their formats : Parsed_extractplanes_2

    &#xA;

    &#xA;

  • FFmpeg : use absolute path in "metadata=print:file="

    27 octobre 2022, par Axel Herrmann

    I'm using FFmpeg to extract frames of a video and therefore I want to print the metadata of the video to a text file first (to get the scene\ value of each frame).

    &#xA;

    This already works for me with something like :

    &#xA;

    ffmpeg -i input.mp4 -vf "select=&#x27;gte(scene,0)&#x27;,metadata=print:file=scenescores.txt" -an -f null -&#xA;

    &#xA;

    Because I'm using all this inside of a Java application I want to pass an absolute path (of an temp directory) to print:file= instead of the currently relative one which will write it to the root directory of the project.

    &#xA;

    But when I try to specify an absolute path like D:\scenescores.txt I get the following error :

    &#xA;

    [metadata @ 00000203282ff0c0] Unable to parse option value "scenescores.txt" as boolean&#xA;[metadata @ 00000203282ff0c0] Error setting option direct to value scenescores.txt.&#xA;[Parsed_metadata_1 @ 00000203269bdf00] Error applying options to the filter.&#xA;[AVFilterGraph @ 0000020328020840] Error initializing filter &#x27;metadata&#x27; with args &#x27;print:file=D:\scenescores.txt&#x27;&#xA;

    &#xA;

    Is there any way to achieve printing to an absolute path ? Am I missing some escape rules or something ?

    &#xA;