Obtener bytes de la transmisión con php

I know that streaming flv with php is possible, there are libraries out there for that but my question is, is it possible to get bytes from flv stream and use them to draw sound wave shape and export is a jpg or png bitmap?

preguntado el 08 de noviembre de 11 a las 11:11

2 Respuestas

  1. Utilizan FFMPEG to extract the audio portion and convert to a temporary WAV file.
  2. Corral one of the many scripts available on this WAV to generate the wave print you want.

respondido 08 nov., 11:19

When receiving the data in PHP, it'll most likely be stored as a string. PHP strings are simply byte sequences. So $string[0] gives you the first byte of the string. That's all you need to do to get a byte in PHP.

respondido 08 nov., 11:15

Can I use sabreAMF or phpAmf to do this? - Vlad

To be honest, I don't know. Maybe you should open a more specific question about this. - deceze

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.