Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:10:10+00:00 2026-06-06T23:10:10+00:00

Recently I had chance to work with two devices that are streaming the H264

  • 0

Recently I had chance to work with two devices that are streaming the H264 through RTSP.
And I’ve ran into some problem trying to decompress this stream using FFmpeg library.

Every time the “avcodec_decode_video2” is called – FFmpeg just says something like:

[h264 @ 00339220] no frame!

My raw H264 stream I frame data starts like this: “65 88 84 21 3F F8 F8 0D…”
(as far as I understand this 0x65 indicates that it’s a IDR frame?)

Other frames for one device starts like: “41 9A 22 07 F3 4E 48 CC….”

and for other device – like this: “61 9A 25 C1 1C 45 62 39….”

  • Am I missing some frame data here?
  • Does FFmpeg needs to have some extra parameters set up?

I was expecting at least “00 00 00 01” bytes at the start for the frame data… but this is what I’ve got..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:10:12+00:00Added an answer on June 6, 2026 at 11:10 pm

    Ok, managed to make things working.

    • I needed to include the sequence (SPS) and picture parameter sets
      (PPS) for my frame data before sending frame to the FFmpeg.
    • I needed to add 4 extra bytes “00 00 00 01” after SPS and PPS data.

    Here is a little picture showing what I mean:
    enter image description here

    Bytes “65 88…” is where my original frame data begins.

    This SPS and PPS information was not included in RTP packet. I’m using Live555 library for RTSP streaming, so I’ve used subsessions “fmtp_spropparametersets” function to get what I need. This information was Base64 encoded. (Sample: Something like this “Z0KAKNoC0EkQ,aM48gA==”) Note that there are two “parameters” SPS and PPS seperated by “,” and those parameters doesn’t have a “00 00 00 01” included, so you need to add them.

    Some code sample (I’m using Qt library here):

    QByteArray        ba          = pSubSession->fmtp_spropparametersets();
    QList<QByteArray> recordsList = ba.split(',');
    
    for (int i = 0; i < recordsList.size(); i++)
    {
       mExtraData.append(char(0x00));
       mExtraData.append(char(0x00));
       mExtraData.append(char(0x00));
       mExtraData.append(char(0x01));
    
       mExtraData += QByteArray::fromBase64(recordsList.at(i));
    }
    

    Now for every frame I do something like this:

    QByteArray ba = QByteArray(4, 0); // Prepare the "00 00 00 01"
               ba[3] = 0x01;
    
    mpTrackVideo->buffer.insert(0, mExtraData);
    mpTrackVideo->buffer.insert(mExtraData.size(), ba);
    

    Year ago I thought I had H264 stream support integrated in my project till I’ve had chance to test it with some other devices…
    So you need to keep in mind that some devices might send SPS and PPS data for every I frame… and some might not!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently had some issues implementing a zooming feature into a painting application. Please
We recently split our current work into two different VS solutions, one which contains
I recently saw some code from a college teacher where he had something like
Recently we had an encoding problem in our system : If we had the
I just recently had a chance to take a look at web2py framework and
I had a developer work on integrating Foursquare into my app (which makes me
I recently solved a jquery problem I had by switching all the '$'s in
I've recently been writing some code for a research project that I'm working on,
Summary I recently had a conversation with the creator of a framework that one
I recently had my first encounter with PHP (5) through a Drupal application for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.