Effacer les filtres
Effacer les filtres

Format (Byte) of UDP packets from VLC

3 vues (au cours des 30 derniers jours)
Sugar Daddy
Sugar Daddy le 12 Fév 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 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');
packetData = zeros(512,100,'uint8');
for i = 1:100
% Receive a single UDP packet
packetData(:,i) = uint8(fread(u));
The packet is attached.

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Fév 2021

Plus de réponses (0)


En savoir plus sur Digital Input and Output dans Help Center et File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by