Format (Byte) of UDP packets from VLC

3 visualizaciones (últimos 30 días)
Sugar Daddy
Sugar Daddy el 12 de Feb. de 2021
Respondida: Walter Roberson el 12 de Feb. de 2021
I am trying to read udp packets by streaming an mp3 from vlc player and receiving packets in matlab. I successfully received the packets but the problem is that i want to decode the packets.
Address in VLC is 127.0.0.1 and port is 1234. Now how to write a decoder, I cant find any Byte Information on Internet or VLC forums. Can some please help me with this. The code i used is given below and received packets are also attached.
u = udp('', 'LocalHost', '', 'LocalPort', 1234,'ByteOrder','littleEndian');
fopen(u);
packetData = zeros(512,100,'uint8');
tic;
for i = 1:100
% Receive a single UDP packet
packetData(:,i) = uint8(fread(u));
end
toc;
fclose(u);
The packet is attached.

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Feb. de 2021

Más respuestas (0)

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by