Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (68)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7830)

  • Hide ffmpeg's console window when running YoutubeDL in GUI application

    27 février 2021, par Božo Stojković

    I'm developing a basic application which can download YouTube videos. Throughout the development, I had several quirks, including issues with formats.

    



    I decided to use a hopefully foolproof format syntax that youtube-dl will happily download for me in almost any case.

    



    Part of my YoutubeDL options look like this :

    



    self.ydl_opts = {
    'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
    'quiet': True,
    'progress_hooks': [self.ydl_progress],
    'outtmpl': None
}


    



    The outtmpl is inserted later on when output folder is chosen by the user.

    



    Since I'm using this format string, youtube-dl uses ffmpeg to merge(?) the audio and video if they are downloaded separately.

    



    When it does that, it opens very annoying console windows that capture the focus and interrupt other things I might be doing while the videos are downloading.

    



    My question is, how can I prevent ffmpeg or youtube-dl from creating those console windows from appearing, aka. how can I hide them ?

    



    EDIT :

    



    I'll provide bare bones script that reproduces the problem :

    



    from __future__ import unicode_literals
from PyQt4 import QtGui, QtCore
import youtube_dl, sys

def on_progress(info):
    print info.get("_percent_str", "Finished")

ydl_opts = {
    'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
    'progress_hooks': [on_progress],
    'quiet': True,
    'outtmpl': "C:/Users/Raketa/Desktop/%(title)s.%(ext)s"
}

ydl = youtube_dl.YoutubeDL(ydl_opts)

class DownloadThread(QtCore.QThread):
    def __init__(self):
        super(DownloadThread, self).__init__()
        self.start()

    def __del__(self):
        self.wait()

    def run(self):
        print "Download start"
        ydl.download(["https://www.youtube.com/watch?v=uy7BiiOI_No"])
        print "Download end"

class Application(QtGui.QMainWindow):
    def __init__(self):
        super(Application, self).__init__()
        self.dl_thread = DownloadThread()

    def run(self):
        self.show()

def main():
    master = QtGui.QApplication(sys.argv)

    app = Application()
    app.run()

    sys.exit(master.exec_())

if __name__ == '__main__':
    main()


    



    2(?) consoles appear at start of each download and 1 longer lasting console appears when both video and audio are downloaded. When downloading longer videos, the last console becomes unbearable.

    



    Is it possible to get rid of those ?

    


  • How to Extract Mp3 from M3u8 Native Audio stream in php using FFMPEG ?

    9 septembre 2023, par Narendhiran vignesh

    I'm trying to extract mp3 links from the cdn sites. But some of the links have m3u8 format. I cannot able to simply download mp3 songs from it. I tried using ffmpeg but i'm failing to do correctly. I simply want is to a piece of code to convert the m3u8 links into mp3 using ffmpeg in php and store in a folder and generate download link to the mp3 file.

    


    Thank You, Code for your reference.

    


    "display_id": "673125230",
"upload_date": "20190830",
"requested_subtitles": null,
"url": "https://cf-hls-media.sndcdn.com/playlist/HGJ7NsKV3qQm.128.mp3/playlist.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLWhscy1tZWRpYS5zbmRjZG4uY29tL3BsYXlsaXN0L0hHSjdOc0tWM3FRbS4xMjgubXAzL3BsYXlsaXN0Lm0zdTgqIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjk0MjMwNjk1fX19XX0_&Signature=C27NdFLBJiiNrj3Th2bUJcPFgBMIqo2BTRkUA-OVrnbrmsbJDZ53AXLIzbPx7RxF5ox8QhnDaggPnkREcFbpTcAMTQKLD22bhO1KdTCkClqEJDesjQgwo-YjyZidEfPrz~c7z4uPBdshT2OjBgyWECcvtRc~9lR~CvgIJ-ahxR4V3RRohp9SfQG1I57eNz7rBfOp0ns9-MiAy~kXCGCcH0xDgw4QCzjnSgvxUphPnBUe5HOhPa1gLbkZylC-icwOXP60qfAaYlhSk7mmA3cuQez2eWlmzrISRnNK2pYoqC9iGV9MYvb0TW5krdfyf2140auCSu8u59OYkyZTFzt8SA__&Key-Pair-Id=APKAI6TU7MMXM5DG6EPQ",
"ext": "mp3",
"abr": 128,
"format_id": "hls_mp3_128",
"protocol": "m3u8_native",```


    


  • Revision 78002 : Mise a jour de la librairie OpenID : https://github.com/openid/php-openid ...

    6 novembre 2013, par cedric@… — Log

    Mise a jour de la librairie OpenID :
    https://github.com/openid/php-openid n’a plus de tag depuis la version 2.2.2 qui date de 4 ans, mais le master contient un certain nombre de bugfixes (notamment les passages par reference qui font une erreur 500 en PHP 5.4). On retient le master revision ee669c6 et on la stocke sur http://contrib.spip.net/IMG/zip/openid-php-openid-master-ee669c6.zip