Recherche avancée

Médias (91)

Autres articles (68)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5170)

  • How to upload files to Azure Blob Stotage like FTP ?

    25 janvier 2016, par CG-Guy

    I am able to upload files from my ffmpeg app to an FTP using this path :

    ftp://[user:password]@server[:port]/MyFolder/video/video.flv

    How do I achieve the same thing in Azure Blob ? I have tried this path :

    https://[account-name].blob.core.windows.net/video/video.flv /DestKey:[account-storage-key]

    But that doesn’t seem to work. TCP connection shows the app is making a connection with the Azure account to the remote address 104.208.XXX.XX and remote port 443. However, it drops the connection and starts attempts to reconnect repeatedly. It will then time out after countless attempts and crash the app. I have also tried /> without success. The same thing happens. It attempts connecting to the remote address and port 80.

    The FFMPEG app has full access to firewall ports and the app communication shell show files are published without errors. System is a Server 2008 R2 unit on-site, not VM.

  • Path to publish FFMPEG video files to Azure Blob Storage ?

    25 janvier 2016, par CG-Guy

    Please kindly help me get out of a bad situation with a very very unhappy client. I am using FFMPEG based app to publish video files to Azure Blob storage, but the files are not going through the network. FFMPEG app has full access to firewall ports. FFMPEG communication shell show files are published without errors. A look at TCP connections shows the app is making connection with Azure account remote address 104.208.XXX.XX and remote port 443. However, it drops the connection and starts repeating attempts over and over. It will then time out after countless attempts and crash the app. Here is my publish point. Is this the correct publish point for this kind of connection ? What is the proper connection string ? :

    https://account-name.blob.core.windows.net/video/video.flv /DestKey :account-storage-key

    I have also tried http:// without success. Same thing happens. It attempts connecting to remote address and port 80. Again, after several attempts it will timeout and crash. System is a Server 2008 R2 unit on-site, not VM. Your help is much appreciated. Thanks a lot !

  • Trying to convert an mp3 file to a Numpy Array, and ffmpeg just hangs

    5 juillet 2016, par Rich

    I’m working on a music classification methodology with Scikit-learn, and the first step in that process is converting a music file to a numpy array.

    After unsuccessfully trying to call ffmpeg from a python script, I decided to simply pipe the file in directly :

    FFMPEG_BIN = "ffmpeg"
    cwd = (os.getcwd())
    dcwd = (cwd + "/temp")
    if not os.path.exists(dcwd): os.makedirs(dcwd)

    folder_path = sys.argv[1]
    f = open("test.txt","a")

    for f in glob.glob(os.path.join(folder_path, "*.mp3")):
       ff = f.replace("./", "/")
       print("Name: " + ff)
       aa = (cwd + ff)

       command = [ FFMPEG_BIN,
           '-i',  aa,
           '-f', 's16le',
           '-acodec', 'pcm_s16le',
           '-ar', '22000', # ouput will have 44100 Hz
           '-ac', '1', # stereo (set to '1' for mono)
           '-']

       pipe = sp.Popen(command, stdout=sp.PIPE, bufsize=10**8)
       raw_audio = pipe.proc.stdout.read(88200*4)
       audio_array = numpy.fromstring(raw_audio, dtype="int16")
       print (str(audio_array))
       f.write(audio_array + "\n")

    The problem is, when I run the file, it starts ffmpeg and then does nothing :

    [mp3 @ 0x1446540] Estimating duration from bitrate, this may be inaccurate
    Input #0, mp3, from '/home/don/Code/Projects/MC/Music/Spaz.mp3':
     Metadata:
       title           : Spaz
       album           : Seeing souns
       artist          : N*E*R*D
       genre           : Hip-Hop
       encoder         : Audiograbber 1.83.01, LAME dll 3.96, 320 Kbit/s, Joint Stereo, Normal quality
       track           : 5/12
       date            : 2008
     Duration: 00:03:50.58, start: 0.000000, bitrate: 320 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Output #0, s16le, to 'pipe:':
     Metadata:
       title           : Spaz
       album           : Seeing souns
       artist          : N*E*R*D
       genre           : Hip-Hop
       date            : 2008
       track           : 5/12
       encoder         : Lavf56.4.101
       Stream #0:0: Audio: pcm_s16le, 22000 Hz, mono, s16, 352 kb/s
       Metadata:
         encoder         : Lavc56.1.100 pcm_s16le
    Stream mapping:
     Stream #0:0 -> #0:0 (mp3 (native) -> pcm_s16le (native))
    Press [q] to stop, [?] for help

    It just sits there, hanging, for far longer than the song is. What am I doing wrong here ?,