Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (88)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

Sur d’autres sites (11912)

  • Can NGINX RTMP code be modified to split audio from video without FFMPEG ?

    19 novembre 2022, par Nav

    I have an NGINX RTMP server running, which uses an exec ffmpeg command to extract audio from a video call, and then stream the audio to a server.

    


    Problem :

    


      

    1. There's a delay of few seconds.
    2. 


    3. It consumes extra CPU, becoming costly.
    4. 


    


    Is there a way I can modify the NGINX RTMP code to directly extract audio and stream it to a server ? I did see that NGINX has mux and demux capability. Alternatively, any other C++ or C program would do.

    


    addendum : I tried using OBS to stream a video and used NGINX RTMP with exec ffmpeg to extract audio. Approximately 30% of CPU was consumed. Then, while OBS continued to do the streaming, I stopped NGINX sudo /usr/local/nginx/sbin/nginx -s quit, and there was almost no drop in CPU usage. Does this mean that it would be a wasted effort to try to modify the RTMP code to reduce CPU consumption ?

    


  • Returned non-zero exit status 1 / error code 1 : b''

    26 août 2015, par pufAmuf

    I’m trying to extract the video height via ffprobe into python, however I am having issues (with some videos).

    Here is my ffprobe command : ffprobe -v quiet -print_format compact=print_section=0:nokey=1:escape=csv -show_entries stream=height "some video here(bla)_25.mp4"

    It returns something like this

    720
    (empty-line)
    N/A

    Here is the code I used to extract the output for later processing :

    executecommand = 'ffprobe -v quiet -print_format compact=print_section=0:nokey=1:escape=csv -show_entries stream=height "' + CurrentVideoToBeProcessed + '"'

    VideoHeight = subprocess.check_output(executecommand)

    This is the error that came about :

    subprocess.CalledProcessError : Command ’...’ returned non-zero exit
    status 1

    So when I modified the code to this :

    try:
       VideoHeight = subprocess.check_output(executecommand,shell=True,stderr=subprocess.STDOUT)
    except subprocess.CalledProcessError as e:
       raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output))

    This is the error I get :

    RuntimeError : command ’...’ return with error (code 1) : b’’

    I assumed at first the issue was with the file names, but certain videos work and certain don’t, irregardless of the file name.
    This is the output I get in python for videos that work :

    b’360\r\n\r\n’

    Any idea what’s going on ? Thanks !

    Edit
    It turns out the problem is in the file names after all. From what I gather so far at least, numbers in file-names seem to be causing the error.
    Edit2
    I re-ran the code after I closed several cmd instances and I am not getting the error anymore. I don’t know why. I am sure, however that if I were to convert hundreds of videos again I’ll get the error eventually as it has always happened eventually.

  • cbs_mpeg2 : Rearrange start code search

    29 juillet 2019, par Andreas Rheinhardt
    cbs_mpeg2 : Rearrange start code search
    

    1. Currently, cbs_mpeg2_split_fragment uses essentially three variables
    to hold the start code values found by avpriv_find_start_code. By
    rearranging the code, one of them can be omitted.
    2. The return value of avpriv_find_start_code points to the byte after
    the byte containing the start code identifier (or to the byte after the
    last byte of the fragment's data if no start code was found), but
    cbs_mpeg2_split_fragment needs to work with the pointer to the byte
    containing the start code identifier ; it already did this, but in a
    clumsy way. This has been changed.
    3. Also use the correct type for the variable holding the
    CodedBitstreamUnitType.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/cbs_mpeg2.c