Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (47)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (5187)

  • Audiotrack noisy sound from UDP socket

    12 juin 2015, par Roval

    I would like to stream wav file from my PC to any Android device using ffmpeg and AudioTrack. This is how I start my stream :

    ffmpeg  -re -i test.wav -acodec pcm_s16le -f mpegts udp://192.168.0.255:5007?broadcast=1

    And stream values are :

    Stream #0:0: Audio: pcm_s16le, 8000 Hz, stereo, s16, 256 kb/s

    Now I just receive packets from socket and I is working fine but sound has got some "glitches". I mean it makes some periodic sound every half a second.

       @Override
       protected Void doInBackground(Void... params) {
           DatagramSocket socket;

           track = new AudioTrack( AudioManager.STREAM_MUSIC,
                   8000,
                   AudioFormat.CHANNEL_IN_STEREO,
                   AudioFormat.ENCODING_PCM_16BIT,
                   3000,
                   AudioTrack.MODE_STREAM );

           AudioManager audio = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
           audio.setSpeakerphoneOn(false);
           audio.setMode(AudioManager.MODE_NORMAL);

           track.play();

           try {

               //Keep a socket open to listen to all the UDP trafic that is destined for this port
               socket = new DatagramSocket(5007, getBroadcastAddress());
               socket.setBroadcast(true);

               while (true) {
                   //Receive a packet
                   byte[] recvBuf = new byte[BUF_SIZE*2];
                   DatagramPacket packet = new DatagramPacket(recvBuf, recvBuf.length);
                   socket.receive(packet);

                   track.write(packet.getData(), 0, packet.getLength());

               }


           } catch (IOException ex) {}
           return null;
       }

    When I read the same file inside Android via BufferedImputStream from assets everything works fine, so I assume it might be some header or trash data inside packets but I don’t know what is it.

  • avcodec/h2645_sei : loosen up min luminance requirements

    25 mai 2024, par Niklas Haas
    avcodec/h2645_sei : loosen up min luminance requirements
    

    The H.265 specification is quite clear on this case :

    > When min_display_mastering_luminance is not in the range of 1 to
    > 50000, the nominal maximum display luminance of the mastering display
    > is unknown or unspecified or specified by other means not specified in
    > this Specification.

    And so the current code is correct in marking luminance data as invalid
    if min luminance is set to 0. However, this breaks playback of at least
    several real-world Blu-ray releases, for example La La Land, Planet of
    the Apes, and quite possibly a lot more. These come with ostensibly
    valid max_luminance tags (1000 nits), but min_luminance set to 0.

    Loosen up this requirement by guarding it behind FF_COMPLIANCE_STRICT.
    We still reject blatantly invalid metadata (wrong value range on
    luminance, max set to 0, max below min, min above 50 nits etc.), so this
    shouldn't cause any unintended regressions.

    Fixes : https://github.com/mpv-player/mpv/issues/14177

    • [DH] libavcodec/h2645_sei.c
  • ffmpeg - Overlay a text over an image

    1er mai 2020, par ark1974

    The following command line for encoding audio with an image works fine.

    



    ffmpeg -y -loop 1 -framerate 15 -i  "/storage/emulated/0/Download/Kites.jpg" -i "/storage/emulated/0/Download/myaudio.mp3"  -c:v libx264 -vf format=yuv420p -c:a aac -shortest "/storage/emulated/0/Download/Out.mp4"


    



    I want to overlay text over an image in the video frame. Based on this link, I added an overlay text like so. Since I want to use the default font, I skip the drawtext="fontfile=" command deliberately like so. But now no video frames are visible, not even the background image. How can I do it ? Thanks.

    



    ffmpeg -y -loop 1 -framerate 15 -i  "/storage/emulated/0/Download/Kites.jpg" -i "/storage/emulated/0/Download/myaudio.mp3"  -c:v libx264 -vf format=yuv420p -vf drawtext="text='Hello World': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2"   -c:a aac -shortest "/storage/emulated/0/Download/Out.mp4"