Hello,--anyone have updated OpenH264 wrapper for WebRTC?Currently I stuck on H264 fragmentation, in current wrapper there is a line:encoded_complete_callback_->Encoded(encoded_image_, NULL, NULL);Because arguments are NULL and rtp_sender_video.cc requires fragmentation regarding these lines:const RTPFragmentationHeader* frag = (videoType == kRtpVideoVp8) ? NULL : fragmentation;packetizer->SetPayloadData(data, payload_bytes_to_send, frag);And because of that RTPPacketizerH264 do not generate packets:void RtpPacketizerH264::GeneratePackets() {
for (size_t i = 0; i < fragmentation_.fragmentationVectorSize;) {
size_t fragment_offset = fragmentation_.fragmentationOffset[i];
size_t fragment_length = fragmentation_.fragmentationLength[i];
if (fragment_length > max_payload_len_) {
PacketizeFuA(fragment_offset, fragment_length);
++i;
} else {
i = PacketizeStapA(i, fragment_offset, fragment_length);
}
}
}
I know that other have this issue too, so maybe someone already solved it?
Thanks!
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [discuss-webrtc] OpenH264 wrapper update
The patches for libwebrtc are in need of love.
Whether implemented by the new H264?
在 2015年1月19日星期一 UTC+8下午8:53:40,Alexandre GOUAILLARD写道:The patches for libwebrtc are in need of love.
You might want to look at the version of libwebrtc used by FF. They maintain a local fork in their code base which has some modifications not ported back upstream.
anyone have updated OpenH264 wrapper for WebRTC?
Currently I stuck on H264 fragmentation, in current wrapper there is a line:
encoded_complete_callback_->Encoded(encoded_image_, NULL, NULL);
Because arguments are NULL and rtp_sender_video.cc requires fragmentation regarding these lines:
const RTPFragmentationHeader* frag = (videoType == kRtpVideoVp8) ? NULL : fragmentation;packetizer->SetPayloadData(data, payload_bytes_to_send, frag);
And because of that RTPPacketizerH264 do not generate packets:
void RtpPacketizerH264::GeneratePackets() {
for (size_t i = 0; i < fragmentation_.fragmentationVectorSize;) {
size_t fragment_offset = fragmentation_.fragmentationOffset[i];
size_t fragment_length = fragmentation_.fragmentationLength[i];
if (fragment_length > max_payload_len_) {
PacketizeFuA(fragment_offset, fragment_length);
++i;
} else {
i = PacketizeStapA(i, fragment_offset, fragment_length);
}
}
}
-- Randell Jesup randel...@jesup.org
The patches for libwebrtc are in need of love.