-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore SPS that contains scaling lists #20
Comments
Hi Julian, An alternative could be to use h264bitstream if it could parse the SPS of your source. Regards, Michel. |
Hi :) Thank you, I saw http://www.live555.com/liveMedia/faq.html#testRTSPClient-how-to-decode-data And with live555 say '' Fuctions like MediaSubsession::fmtp_spropparametersets()
parseSPropParameterSets() Parse before, and then send to onData callback. Maybe work? What do you think? Thank you so much. |
Hi,
Regards, |
Hi @mpromonet Thank you so much, I get an error so I sent a issue to h264bitstream #19 Regards, |
Hi @mpromonet The problem was when I built with h264bitstream, the commit 62261fcc1715174216cb07f0c0c38173f4cf48bb not allow build like v4l2rtspclient h264bitstream/h264_stream.c h264bitstream/h264_nal.c h264bitstream/h264_sei.c .... I built h264bitstream and in the Makefile I added LDFLAGS += h264bitstream/.libs/libh264bitstream.a I view the video, but now I always get NOTIFY failed from void RTSPConnection::SessionSink::afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicrose\
conds)
{
if (numTruncatedBytes != 0)
{
delete [] m_buffer;
envir() << "buffer too small " << (int)m_bufferSize << " allocate bigger one\n";
allocate(m_bufferSize*2);
}
else if (m_callback)
{
if (!m_callback->onData(this->name(), m_buffer, frameSize+m_markerSize, presentationTime))
{
envir() << "NOTIFY failed\n";
}
}
this->continuePlaying();
} onData webrtc::EncodedImage input_image(buffer, size, 2*size);
int res = m_decoder->Decode(input_image, false, NULL);
return (res == 0); This is a problem? or it is Normal? What do you think? Thank you so much!! |
Hi juvasquezg, In this commit 3927b59, I improved usage of SPS/PPS, ffmpeg that is under the hood to decode don't like to receive SPS, PPS alone, it expected to get it with an I frame. If I understood well, h264bitstream is not able to decode your special SPS ? Best Regards, |
Hi @mpromonet Thank you, No. h264bitstream decodes my special SPS, the problem was when compile it, but I resolved it when I added LDFLAGS += h264bitstream/.libs/libh264bitstream.a in Makefile. I will try new commit. Thank you!! |
Hi @mpromonet With h264bitstream I decode my special SPS but now when I run the program, I get #
# Fatal error in ../../webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc, line 305
# last system error: 0
# Check failed: input_image._size >= input_image._length + EncodedImage::GetBufferPaddingBytes(kVideoCodecH264) (12 vs. 14)
#
# I comment else {
LOG(INFO) << "===========================" << nalu_type;
//webrtc::EncodedImage input_image(buffer, size, 2*size);
//res = m_decoder->Decode(input_image, false, NULL);
} But I get NOTIFY failed Thank you so much!! |
Hi, As it is reported in the assert the encoded image size should be : size + webrtc::EncodedImage::GetBufferPaddingBytes(webrtc::VideoCodecType::kVideoCodecH264) Best Regards, |
Hi,
I have a source that delivers SPS with scaling list and I get a problem in
line 85 - rtspvideocapturer.cpp
I get:
My sprop-parameter-sets is
The problem is in the file webrtc/common_video/h264/sps_parser.cc
I want to skip sps with scaling list but I don't a master in H.264. Maybe you could help me.
Before going to the stackoverflow I want to ask you :)
Thank you so much.
The text was updated successfully, but these errors were encountered: