Recherche avancée

Médias (91)

Autres articles (60)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (12345)

  • Is it incorrect to use multiple 'split' filters down the FFmpeg's filter_complex tree ?

    26 octobre 2020, par ed22

    Is it better to use the split filter only once per input (say once per [0:v]) or is it OK to split "down the line" again, like below ?

    


    [0:v]split=2[0v_1][0v_2];&#xA;[0v_1]<do sth="sth" here="here">[result1];&#xA;[0v_2]<do sth="sth" here="here">[result2];&#xA;[result1]split=2[result1_1][result1_2];&#xA;[result1_1]<do some="some" more="more" here="here">[final_result_1];&#xA;[result1_2]<and also="also" something="something" here="here">[final_result_2]&#xA;</and></do></do></do>

    &#xA;

  • How to monitor volume level during ffmpeg capture

    7 septembre 2018, par Virkom

    I capture sound from soundcard, convert it to mp3 and stream to multicast IP.
    Command looks like :

    ffmpeg -f alsa -i hw:0 -async 1 -vn -acodec libmp3lame -ac 1 -ar 44100 -b:a 128k -flush_packets 0 -f mpegts -pes_payload_size 426 -mpegts_start_pid 0x44 udp://233.21.215.101:1234?pkt_size=1316

    But I need to monitor volume level of capturing. If there is no sound (or noise only) I need to switch to another (reserve) channel.

    Can I get volume level in ffmpeg output ? How I can do it ?

    P.S : I can get volume level by "volumedetect" filter but it’s not in realtime. I need realtime monitoring.

    P.P.S : I run ffmpeg programmatically from my application and can’t monitor additional windows (like video frame when I use showvolume filter).

  • Python convert binary data (str) to match multiple of float32 size

    15 avril 2016, par Kendall Weihe

    I’m working on a tensorflow project, and I’m working with raw data from a mp3 file. I’m using FFMPEG and capturing STDOUT. FFMPEG outputs binary data in type str but it doesn’t capture the data in a multiple of the size of a float32 ...or apparently that’s what I am assuming from the error I get from the following code...

    import subprocess as sp
    command = ["ffmpeg",
           '-i', image_file,
           '-f', 's16le',
           '-acodec', 'pcm_s16le',
           '-ar', '44100', # ouput will have 44100 Hz
           '-ac', '2', # stereo (set to '1' for mono)
           '-']
    pipe = sp.Popen(command, stdout=sp.PIPE, stderr=sp.STDOUT, stdin=sp.PIPE)
    raw_audio, _  = pipe.communicate(str(88200*4).encode())
    audio_array = np.fromstring(raw_audio, dtype="float32") //ERROR

    dataset = np.append(dataset,audio_array)

    Error

    File "main.py", line 68, in maybe_pickle
     audio_array = np.fromstring(raw_audio, dtype="float32")
    ValueError: string size must be a multiple of element size

    raw_audio is in the form :

    ...7k\x01t\xf9\xc3\x01\xe3\xfa\x11\x02\xfb\xfb~\xff\x90\xfb\xbb\xfc\x83\xfa\xb4\xfd\xde\xfb\xab\xff\x01\xff\xd4\xfe:\x00T\xfd\xe0\xff\xae\xfdV\x01\xd8\xfd\x1a\x04\x0f\xfcR\x05,\xfaG\x05\xb1\xfaD\x05\xa1\xfdP\x04e\x00\xbc\x01\xe6\x00\xdf\xfe`\x00\x16\xfd\xae\x00\xec\xfc\xb7\x00\x7f\...

    Is there a way I can truncate the data ? Or maybe capture the string in an entirely different way ?