Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (61)

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (11030)

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


    


  • How can I play .g726 file with ffplay ?

    29 août 2017, par user8531025

    I have encoded sound file in .g726 file format. Now I want to play this sound file in my windows 10 (64bit) pc. For that, I have downloaded the ffmpeg for windows and try to play it using ffplay command. I don’t get the options to play it with .g726 audio file. However, I have pcm (raw buffer file) audio file. For that, I have execute ffplay command as per below. But I cant hear any voice.

    ffplay -f s16le -ar 16k -ac 1 console.pcm

    So please, Can anybody tell me why I cant hear voice ?

    What command should be executed to play .g726 audio file