Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (81)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7143)

  • Unable to get a continuous video of last N seconds using ffmpeg [duplicate]

    28 juin 2021, par trycatch22

    I am trying to create a dashcam from an RTSP streaming device using ffmpeg (in Python). I have it working, but I am losing a small bit of video between stopping a file and starting a new file.

    


    My pseudocode looks like this :

    


    Start recording in 5s increments
while True:
   now = get current time
   if now > split:
       stop recording
       start recording with new file name


    


    At any point when I send a trigger, I wait (up to 5s) for the current file to be written to disk, and then I stitch the required number of files to get a video of the desired length. The issue is that I am losing time between the stop and the start.

    


    I am starting a new file like so :

    


    process_cmd = "ffmpeg -y -loglevel panic -i rtsp://{}:{}@{} -vf scale={}:{} -t {} {}".format(self._rtsp_login, self._rtsp_pwd, self._rtsp_server, self._width, self._height,self._rtsp_video_duration,output_file)
self._process_handle = subprocess.Popen(process_cmd, shell=True)


    


    I am waiting for the video to be done recording by :

    


    self._process_handle.wait()


    


    What's a cleaner way to do this ? One option would be to write a longer file and then use ffmpeg to extract the desired N seconds from it.

    


    proc = subprocess.Popen("ffmpeg -y -i rtsp://admin:ambi1234@192.168.1.200 -profile:v high -pix_fmt nv12 -b:v 15M -acodec aac out.mp4", stdin=subprocess.PIPE,shell=True)


    


    This requires me to stop the recording first by sending 'q' to the process and then :

    


    subprocess.Popen("ffmpeg -y -sseof -00:00:3 -i out.mp4 -vcodec copy -acodec copy test.mp4", shell=True)


    


    But that source file (out.mp4) would have to be cleaned up every so often and if an event happens at that point, then I won't be able to capture the data.

    


  • ffmpeg command does not work when run from .sh file

    19 novembre 2020, par Felipe Hurtado

    I am trying to run an ffmpeg command from a shell file but I am getting the following error :

    


    'NULL @ 0x343e9c0] Unable to find a suitable output format for '


    


     : Invalid argument

    


    Below the ffmpeg commnad

    


    ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 


    


    and this is the content of the shell file :

    


    #!/bin/bash
#script streaming
ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 
        


    


    the command works if I run it manually in a terminal

    


  • FFMpeg : Stream desktop to another network

    7 octobre 2019, par A Person

    I hope you can help me in this quest :

    I have been trying to stream my desktop through direct show or inbuilt screen grabber. i want to be able to send it to another network so i can view the stream lets say my home desktop from work. The aim is to be able to stream a monitoring station from my setup from the the network (home) and view on WIFI (Work).

    I have done the following so far :

    ffmpeg -f dshow -i video="screen-capture-recorder":audio="virtual-audio-capturer" -vcodec h264_nvenc -f mpegts udp://10.1.0.0:1234

    However, the issue is that I can only view the stream on the same network.

    I tried passing the public IP of the network as the udp/rtp link but still doesn’t work.

    when i tried changing the udp to rtp I get the error saying sdp required, but again I am not sure this will stream to another network rather than same network.

    My aim is this.

    Have my desktop stream over some IP or anything and either use ffplay or vlc to view it from another network.