Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (97)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9406)

  • FFMPEG G711ulaw Rhythmic Distortion [closed]

    8 juillet 2024, par nsd123

    I am using ffmpeg take audio in from my microphone, rtp stream it to a multicast address as g711ulaw audio, and then play that audio through various devices.

    


    In my network I have other workstations, as well as a digital telephone type device.
My workstations are using Windows.

    


    I am taking the microphone input with this ffmpeg command :
ffmpeg -f dshow -i audio="" -pcm_mulaw -ab 64k -ac 1 -ar 8000 -f rtp rtp :// : ?localaddr=

    


    This command transmits the microphone data successfully to other workstations on the network, where I can use ffplay or other means to listen to the rtp stream and hear clear audio.

    


    On the telephone device, when it gets converted to analog to play, it's picking up this strange, rhythmic burp/clicking/noise, like every time its getting information, its interpreting the header as voice data or something.

    


    The output of the ffmpeg command says the pcm_s16le codec is the native one, and seems to convert it just fine.

    


    Is there any kind of option I should be using in my ffmpeg command that sounds like it could resolve this issue ? Or does this kind of interference typically occur for a specific reason ?

    


    Its not the hardware, I've tested that (other audio able to play clearly).
I've tried a few other codecs to no success.
I've tried a few ffmpeg options, but there are so many options, they've just been successful stabs in the dark

    


  • ffmpeg randomly stops recording rtmp stream

    14 novembre 2022, par M9A

    I am trying to record a rtmp stream using ffmpeg. On the whole it records the stream fine but every so often it stops recording the stream and when I then go to record it again, it will only record around a second or 2 before it stops again. This usually goes on for like 10-15mins. In this time if I want to record the stream, I would have to manually record 1-2 seconds each time. This sounds like it is a server issue - perhaps there is a mechanism that cuts off the stream every few seconds.

    


    In the case where the stream cuts off, is there a way to keep trying and recording all of these 1-2 second segments rather than me doing it manually ? Doing it manually creates gaps in the recording due to the time taken to connect and record the stream. I even tried running the command in a loop but even with that there are gaps in the video.

    


    The code I am using to record the stream is as follows :

    


    ffmpeg -i "rtmp://example.com/stream?id=12345" -vcodec copy -acoded copy "output.mp4"


    


    When it is recording fine and cuts off the first time, there is no error given. It's like the stream came to an end so it stops recording. The subsequent times where I can only record 1-2 seconds are the same - there is no error

    


    As there are no error messages such as timeout or connection errors, I cannot even run flags on the command to retry recording.

    


  • Sending keystrokes to subprocess using Python's popen

    10 avril 2018, par Paul Vincent Craven

    I have a Python 3.6 program that is calling ffplay from the ffmpeg library using the Popen command.

    I want to send ffplay keystrokes so I can control the playback. But nothing seems to happen. Take this example :

    import subprocess
    import time

    # Array with the command in it
    my_command = ("ffplay", "-nodisp", "-autoexit", "examples/sounds/Fantascape_Looping.mp3")

    # Open a subprocess
    my_subprocess = subprocess.Popen(my_command,
                                    stdin=subprocess.PIPE,
                                    stdout=subprocess.PIPE,
                                    stderr=subprocess.PIPE)

    # Wait 2 seconds
    time.sleep(2)

    # Try to send an escape:
    print("Attempt to send and 'escape' to stop the sound")
    my_subprocess.stdin.write(b'\x1b')

    # Wait and see what happens
    print("Should no longer hear anything")
    time.sleep(5)

    I hear music for 7 seconds, rather than 2 seconds. What is wrong with the code ?