Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (80)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7520)

  • disable post processing in YOUTUBE-DL

    9 février 2020, par user3515562

    I want to disbale post process in youtube-dl(2020.01.24).
    My batch file contains

    set /p ytlink=Enter the link of Youtube Video:-    
    youtube-dl -x -o D:\%%(title)s.%%(ext)s %ytlink%  
    pause  

    The youtube-dl first downloads webm file or any other file than use post process ffmpeg.exe to convert it.
    I want to disable post process.Their must be no post process happening after youtube-dl download.

    - x is the option to only download audio file of the YouTube video in webm format .There is no post processing involved.But youtube-dl by default tries to convert the webm file to some other format, which is post processing.Post processing of audio file by default is one that i want to disable
    OS=Windows 10

  • Python, Youtube-video-downloader-merger Can i inproove this script run faster ?

    31 janvier 2020, par robotiaga

    I created script which one downloading video and sound from Youtube, and after that merging sound and video with ffmpeg, i wondering is another way to make same result but in faster way ? Because this script takes about 7 min depends on Video quality and duration. My code bellow :

    from pytube import YouTube
    import sys
    import ffmpeg
    import os


    class Downloader(YouTube):

       def __init__(self, link):
           self.link = YouTube(link)
           self.hq = []
           self.best_video = []
           self.best_sound = []


       def stream_objects(self):
           q = [self.hq.append(x) for x in self.link.streams.all()]
           self.best_video.append(str(self.hq[1]).split()[1].split('\"')[1])
           self.best_sound.append(str(self.hq[-1]).split()[1].split('\"')[1])
           return self.best_video, self.best_sound

       def downloady(self):
           vid = self.link.streams.get_by_itag(str(self.best_video).strip("['']"))
           audio = self.link.streams.get_by_itag(str(self.best_sound).strip("['']"))
           self.vid_title = (f"{vid.title}"+".mp4")

           vid.download(filename='video')
           audio.download(filename='audio')
           print('Downloaded, Now Starting Merge \n\n\n\n\n')
           print(f'{self.vid_title}'+'\n')

       def merge(self):
           ffmpeg.output(ffmpeg.input('video.mp4'), ffmpeg.input('audio.webm'), self.vid_title).run()
           os.remove('video.mp4')
           os.remove('audio.webm')



    if __name__=='__main__':
       a = Downloader(link = sys.argv[1])
       a.stream_objects()
       a.downloady()
       a.merge()

    OKE UPDATE :
    Now code looks like that..Second problem is slow downloading mp4 files from YouTube server, i have 10Gb/s internet. Good connection with YT servers, but why so poor downloading ? ? ? :)

    from pytube import YouTube
    import sys
    import ffmpeg
    import os
    import subprocess

    class Downloader(YouTube):

       def __init__(self, link):
           self.link = YouTube(link)
           self.hq = []


       def stream_objects(self):
           self.best = self.link.streams.filter(file_extension='mp4')
           q = [self.hq.append(x) for x in self.best.all()]
           self.best_vid_itag = str(self.best.all()[1]).split()[1].split('\"')[1]
           self.best_audio_itag = str(self.best.all()[-1]).split()[1].split('\"')[1]

       def downloader(self):
           vid = self.link.streams.get_by_itag(self.best_vid_itag)
           aud = self.link.streams.get_by_itag(self.best_audio_itag)
           print('Donwloading Video file...\n')
           vid.download(filename='video')
           print('Video file downloaded... Now Trying download Audio file..\n')
           aud.download(filename='audio')
           print('Audio file downloaded... Now Trying to merge audio and video files...\n')

       def merger(self):
           lin = str(self.link.title).rstrip()
           lin2 = (lin+'.mp4')
           subprocess.run(f'ffmpeg -i video.mp4 -i audio.mp4 -c copy "{lin2}"', shell=True)
           os.remove('video.mp4')
           os.remove('audio.mp4')
           print('Done....\n')

    if __name__=='__main__':
       a = Downloader(link = sys.argv[1])
       a.stream_objects()
       a.downloader()
       a.merger()
  • FFMPEG & YouTube Live - "Bad Video Settings" - Please use a keyframe frequency of four seconds or less

    28 janvier 2020, par John Doe

    Trying to live stream to YouTube and from my perspective, everything seems to be working fine. However YouTube keeps giving me the following message :

    Bad Video Settings

    Please use a keyframe frequency of four seconds or less. Currently, keyframes are not being sent often enough, which will cause buffering. The current keyframe frequency is 8.4 seconds. Note that ingestion errors can cause incorrect GOP (group of pictures) sizes.

    I’ve dug around for hours and so far nothing seems to be making any difference. I added -g 60 and as I didn’t fully understand I also tried adding -g 2 but neither worked. Here is the command I’m currently using :

    ffmpeg -re -f concat -safe 0 -i "concat.txt" -c copy -preset veryfast -maxrate 1200k -bufsize 2400k -framerate 30 -g 60 -f flv rtmp://a.rtmp.youtube.com/live2/XXXX-XXXX-XXXX-XXXX