Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (106)

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

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (8953)

  • 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()
  • How to convert orginal video into multiple quality like youtube by using ffmpeg ? [closed]

    21 avril 2021, par rahulchanchardbabaji

    I am creating a streaming app like youtube while I am creating it I am facing many challenges related to different quality video converting.

    


      

    1. Should I convert orginal video file into multiple video file (like 240p, 480p and 720p) and storage them ? Or there is anyway where I can create a single video file can the same.

      


    2. 


    3. Which video format should I use MP4, HLS or DASH for fast streaming, support for every devices, take minimum space and support subtitles.

      


    4. 


    


  • FFMPEG screen regarding using gdi is working as expected when given offset, width and height on different screen size ?

    15 novembre 2018, par Mohsin Abbas

    I am working on an application that records the screen using ffmpeg. The recording works fine when I don’t specify offset, width and height.
    When I specify the offset, width and height on my device and records according to the area but when I run it on a big screen and it records smaller area than provided. I am using following command to record :

    ffmpeg -f gdigrab -framerate " + Framerate + " -offset_x " + OffsetX + " -offset_y " + OffsetY + " -video_size " + width + "x" + height + " -show_region 0 -i desktop " + FileName;

    I think ffmpeg don’t take screen resolution into account or something ?