Recherche avancée

Médias (91)

Autres articles (28)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

Sur d’autres sites (4472)

  • Tkinter window and script freeze when filedialog is used

    11 décembre 2020, par RandomInternetPerson

    Im developing a audio player for python. Unfortunately, it appears as if after a modification, the file dialog portion of the script ceased working. The code below is a minimum reproducible example of the offending bit.

    


    # -----------------------Setup-----------------------
# Imports
from tkinter import * 
from tkinter.ttk import * 
from tkinter import filedialog

import simpleaudio
import subprocess

# GUI
root = Tk() 
root.title("CupPlayer") 
menubar = Menu(root)
file = Menu(menubar, tearoff = 0)
root.config(menu = menubar)
# ----------------------Functions---------------------
def file_selector(): 
    filename = filedialog.askopenfilename()
    
    root.update()
    if filename.endswith('.mp3'):
            subprocess.call(['ffmpeg', '-i', filename,
                                'audio.wav'])
btn = Button(root, text = 'search file !', bd = '5', 
                          command = file_selector) 

mainloop() 


    


  • RTSP to RTMP using FFMPEG on Raspberry Pi to YouTube Livestream ends prematurely (and sometimes doesn't start)

    12 mars 2021, par user203875

    I have been running a program from my raspberry pi 4 that converts a RTSP network camera feed to RTMP for YouTube. The stream used to run non-stop every day. I didn't have to do anything. I have a program in place that would restart if the feed died.

    


    Nothing has changed with that program in 2 years. About a month ago, the feed stopped working. I just started into trying to figure out why. Maybe someone has some ideas on what is going on ?

    


    In order for me to start the feed, I must also start a studio.youtube.com browser session showing the feed information. If that web page is up and running, the live stream will start. While I can't say for certain that it NEVER starts without this session running, it seems that way.

    


    Usually the stream lasts for an hour or two. Rarely more than four hours.

    


    When I start up a studio.youtube.com session after the stream dies the "Dimiss" or "Edit in Studio" message is on the page. I have to hit "dismiss" before I can start up the stream again.

    


    Is there a solution to this ?

    


    Again, my program didn't change, so I'm at a loss for what I can do to fix this.

    


  • FFMPEG not working as intended in a bash script

    9 mai 2024, par rcp

    I'm trying to get the mean volume of a recording and the echo the expected value. When I do it line by line, everything works fine, but as soon as I execute it in a bash script, I have a problem with the FFMPEG line. I identified the problem, which is that &> analysis is not doing anything for some reason and instead of saving the output in a file it prints it in the shell.

    


    I don't know how to fix it since it works fine when not in a script.

    


    #!/bin/bash

# Record sound
sh aud2.sh

# Run ff.sh in the background to analyze volume and save results
ffmpeg -i test.wav -af "volumedetect" -vn -sn -dn -f null - &> analysis.vol

# Extract mean_volume and save to mean.vol
grep "mean_volume" analysis.vol > mean.vol

# Extract numerical value and save to val.vol
sed -n 's/^.*mean_volume: \([-0-9.]*\) dB.*/\1/p' < mean.vol > val.vol

# Read the value from val.vol into the variable volume
volume=$(code>

    


    Expected output when line by line

    


    Actual output in bash script

    


    I expected the shell output to be saved in a file.