Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (58)

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

Sur d’autres sites (7846)

  • Audio Downloader from YouTube with youtube-dl and ffmpeg [closed]

    22 janvier 2021, par Um9vdAo

    I am trying to make an audio downloader with youtube-dl and ffmpeg which will :

    


    

      

    1. Download the best format of audio available on YouTube
    2. 


    3. Embed thumbnail in the file.
    4. 


    5. Convert the file to mp3.
    6. 


    7. Delete everything from the folder except the converted mp3 file.
    8. 


    


    


    Below is the code I've come up with :

    


    @echo off
cls
set /p playlist="Enter YouTube Link: " 
youtube-dl --cookies cookies.txt -f bestaudio[ext=m4a] -i --write-thumbnail --embed-thumbnail --max-sleep-interval 30 --min-sleep-interval 10 -o "%%(title)s.%%(ext)s" %playlist% --exec "ffmpeg -i {} -codec:a libmp3lame -qscale:a 0 {}.mp3 && del {}"


    


    The issues I've been facing with my code :

    


      

    1. The converted file is not renamed correctly. It's named Filename.m4a.mp3 where I want it to be named Filename.mp3
    2. 


    3. Video thumbnail is saved as Filename.jpg and youtube-dl creates a file named cookies.txt. Those are not deleted automatically.
    4. 


    5. Lastly, this error shows up : ffmpeg error
    6. 


    


    


    [swscaler @ 00000143e0a4ffc0] deprecated pixel format used, make sure you did set range correctly
[mp3 @ 00000143e09f0340] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2

    


    


    I'd really appreciate it if you helped me fix those issues. Thanks !

    


  • 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()
  • Watch My Hero Academia Heroes Rising Full Movie Online FREE #2019

    6 juillet 2020, par sarahlburke58

    Watch My Hero Academia : Heroes Rising (2018) Full Movie Online HD Streaming Free Unlimited Download, Watch My Hero Academia : Heroes Rising (2018) Full Series 2017 Online Movie for Free DVD Rip Full HD With English Subtitles Ready For Download.

    


    Watch My Hero Academia : Heroes Rising Full MOVIE HD ►► [1]

    


    Watch My Hero Academia : Heroes Rising (2018) Movie Free 2017 1080p, 720p, BrRip, DvdRip, CapRip, Telesyc, High Quality, My Hero Academia : Heroes Rising (2018) Movie Online, My Hero Academia : Heroes Rising (2018) Movie Full HD Free.

    


    Watch My Hero Academia : Heroes Rising (2018) Online Download My Hero Academia : Heroes Rising (2018) Movie, My Hero Academia : Heroes Rising (2018) Movie Full Online, My Hero Academia : Heroes Rising (2018) Movie Online BluRay, My Hero Academia : Heroes Rising (2018) Movie Full HD Streaming, My Hero Academia : Heroes Rising (2018) Movie Free 2017 Torrent, My Hero Academia : Heroes Rising (2018) Movie Download HD Streaming Free.

    


    Title : My Hero Academia : Heroes Rising
Release : 2019-12-20
Runtime : 104 min
Genre : Animation, Action
Stars : Daiki Yamashita, Nobuhiko Okamoto, Kenta Miyake, Ayane Sakura, Aoi Yuki, Yuki Kaji

    


    Overview : Class 1-A visits Nabu Island where they finally get to do some real hero work. The place is so peaceful that it's more like a vacation … until they're attacked by a villain with an unfathomable Quirk ! His power is eerily familiar, and it looks like Shigaraki had a hand in the plan. But with All Might retired and citizens' lives on the line, there's no time for questions. Deku and his friends are the next generation of heroes, and they're the island's only hope.