Re: Extra Byte in TCP Stream

Håkan Huss <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CA+fT_Jdq88vm=wRJ9ugcA+pjVb5uKekO-ebn_919E-851TPzoQ@mail.gmail.com>
Maybe
https://serverfault.com/questions/1034291/rtmp-tcp-extra-byte-in-packet can
provide the answer?

/Håkan

Den sön 29 aug. 2021 03:01Justin Wood <[email protected]> skrev:

> Hello List!
>
> I am in the process of building out an encoder/decoder for the RTMP
> protocol. I am testing my application with two clients. OBS[0] (this is
> considered the best client software to use for live streaming) and
> rtmpdump[1] (this is considered the best way to test your server
> implementation).
>
> My problem is that when using OBS, everything works as expected (or
> maybe I just haven't noticed it yet). When I use rtmpdump, I am getting
> an extra byte (195 or C3 in hex) placed in my TCP stream. Normally I
> would blame the implentation, but I am not seeing this byte when viewing
> traffic within wireshark. I have also tested this this on two machines.
> On both machines the extra byte is the same but the placement of it
> varies depending on which machine I am using but is always in the same
> place. Through the help of someone in IRC, it LOOKS like this is
> happening at a packet boundary, but I am not overly knowledgeable about
> this, so that may not be the case.
>
> I am using gen_tcp directly and am inspecting the data before it gets
> placed into my application and I am seeing this extra byte. So I am not
> somehow adding it myself.
>
> If anyone has any suggestions on how I may be able to go about
> diagnosing this, I would be greatly appreciated.
>
> Justin
>
> [0] - https://github.com/obsproject/obs-studio
> [1] - https://rtmpdump.mplayerhq.hu/
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.