@Override public void pushVideo(byte[] payload, long ts, boolean hasMarker) throws IOException { int nalType = payload[0] & 0x1f; }
2013/2/25 Artyom Horuzhenko <akhor...@gmail.com> > Could you send me how do you get nalType? I want to check myself. > 25.02.2013 17:46 пользователь "Тимур Тлеукенов" <timur.tleuke...@gmail.com > > > написал: > > > > No. I just check nalType and print packets to trace. > > > > 2013/2/25 Artyom Horuzhenko <akhor...@gmail.com> > > > > > Do you also try to rewrite that python code on java? We seem to do same > > > work. > > > 25.02.2013 17:02 пользователь "Тимур Тлеукенов" < > timur.tleuke...@gmail.com > > > > > > > написал: > > > > > > > > I did the following: > > > > 1) start red5sip > > > > 2) put breakpoint in if(nalType == 5) { ... > > > > 3) call from jitsi to conference > > > > 4) click button in jitsi, that enables video. > > > > 5) third RTP packet triggers breakpoint at nalType=5 > > > > > > > > I also try to run two jitsi and saw that when second jitsi connects, > it > > > > start displays video by square pieces. So it also do not receive IDR > > > frame. > > > > > > > > 2013/2/25 Artyom Horuzhenko <akhor...@gmail.com> > > > > > > > > > I tried to run jitsi before and after red5sip and I never got > > > > > nalType=5. What do you use for tests? > > > > > > > > > > 2013/2/25 Тимур Тлеукенов <timur.tleuke...@gmail.com>: > > > > > > If red5sip is connected before other SIP-devices, after Jitsi > > > connected > > > > > and > > > > > > start translate video, red5sip receive nalType=5. > > > > > > If red5sip connects after Jitsi, it will never receive IDR. > > > > > > > > > > > > 2013/2/25 Artyom Horuzhenko <akhor...@gmail.com> > > > > > > > > > > > >> I captured Jitsi traffic and didn't find any FIR request from > Jitsi. > > > > > >> > > > > > >> 2013/2/25 Тимур Тлеукенов <timur.tleuke...@gmail.com>: > > > > > >> > Hello! > > > > > >> > > > > > > >> > As I understand nalType=5 means we received IDR picture > > > (Intra-frame > > > > > or > > > > > >> > Keyframe), nalType=1 - non-IDR picture. > > > > > >> > > > > > > >> > In fact I receive from SIP only non-IDR and both SPS and PPS. > > > > > >> > I was found this: "If no infra frames are received for 5 > seconds, > > > > > then we > > > > > >> > send a fast-intra-update (FIR) request to the SIP/RTP side, so > > > that it > > > > > >> > triggers the SIP phone to send an intra frame." > > > > > >> > > > > > > >> > So, I guess we should add FIR request. > > > > > >> > > > > > > >> > > > > > > >> > 2013/2/25 Artyom Horuzhenko <akhor...@gmail.com> > > > > > >> > > > > > > >> >> Hello everybody! > > > > > >> >> > > > > > >> >> I try to implement rtp to rtmp video convertation and I use > this > > > > > >> article: > > > > > >> >> > > > > > >> >> > > > > > >> > > > > > > > > > > > > > http://p2p-sip.blogspot.ru/2012/01/translating-h264-between-flash-player.html > > > > > >> >> and this code: > > > > > >> >> > http://code.google.com/p/rtmplite/source/browse/trunk/siprtmp.py > > > . > > > > > >> >> You can see that the data are sended when nalType=5, but in > my > > > case I > > > > > >> >> never receive nalType=5. I receive only nalType=1, 6, 7 and > 8. I > > > > > there > > > > > >> >> anybody who can comment this situation? > > > > > >> >> > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > -- > > > > > >> > Timur Tleukenov > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Timur Tleukenov > > > > > > > > > > > > > > > > > > > > > -- > > > > Timur Tleukenov > > > > > > > > > > > -- > > Timur Tleukenov > -- Timur Tleukenov