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 8427445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:47:04+00:00 2026-06-10T04:47:04+00:00

I have an issue with FLV stream generating. I’ve developed DVR system, an it

  • 0

I have an issue with FLV stream generating. I’ve developed DVR system, an it should be able to stream video in FLV format (to play it on Actionscript NetStream). I receive video from encoder in raw H264 NAL units (0x00 0x00 0x00 0x01 ), also I can recognize is encoded frame IDR or non-IDR.

My solution to create FLV stream (based on Adobe spec: Video File Format Specification Version 10) was:

  1. wait for IDR frame;
  2. put FLV header
  3. put PrevTagSize(0)
  4. put FLV tag with video tag VIDEODATA with AVCVIDEODATA
  5. put PrevTagSize
  6. repeat steps 4,5 till end of streaming.

Stream looks good, and can be playable by ffplay, mplayer, vlc, etc.
But not played by player based on Actionscript NetStream.

So, I’ve get raw h264 data and convert it to FLV using ffmpeg:

ffmpeg -f h264 -i d1.h264 -vcodec copy -f flv d1.flv

and try to compate both flv’s my and ffmpeg’s.

First of all I see that ffmpeg adds AVC sequence header, immediately after FLV header.
I’ve started to do the same, but NetStream still not support my stream, and also another players ceased to play it.

Ok, then I’ve continue to compare flv’s.
Now I see that NAL unit headers in ffmpeg’s coded FLV a bit changed, but I can’t understand what the meaning of the changes. I read many specs, but nothing helpful.
Did anybody can clarify me this?

Fo example my NAL units looks so:
00 00 00 01 XX XX … – for all units

FFmpeg NALs:
00 00 [14 BA] 61 9A … – non IDR (two bytes variable)
00 00 [7A 02] 65 88 … – IDR (two bytes variable)
00 00 00 40 06 05 … – SEI

Is there added some counter or anything else?

Will be happy to see any ideas, links, etc.

  • 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-10T04:47:05+00:00Added an answer on June 10, 2026 at 4:47 am

    There are two common H.264 bitstream packing formats.

    1. Annex B contains start codes: 00 00 01
    2. MP4 is length prefixed XX XX XX XX

    You are creating annex B but it seems like you need mp4 packing format (length prefixed) for FLV.
    You have to remove (00) 00 00 01 and add the length as prefix.

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

Sidebar

Related Questions

I have created a player that loads video FLV files and plays them in
I am having a strange issue in my flex app. I have a Video
I have issue with a value that should have just work, however, it seem
I have issue with displaying AlertDialog from Service. I am able to display custom
I have issue with: <form:checkboxes path=roles cssClass=checkbox items=${roleSelections} /> If previous line is used
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
We are new to ROR, We have issue in creating Login/Logout process in ROR
Share your ideas please! I have issue to check the folder and convert a
Have an issue with marshall and unmarshall readers and writers. So here it is.
I have an issue with jquery and history.back(): I got a link: <a href=#

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.