google-code-export / flvmeta

Automatically exported from code.google.com/p/flvmeta
GNU General Public License v2.0
2 stars 0 forks source link

Fixup FMS generated zero size audio data tags #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
FLV video files recorded with Adobe Flash Media Server 3 (and earlier
versions) adds a corrupt audio data tag (0x08) to the file header, which in
turn makes many editing tools choke on the files (flvtool2, flvtool++ (not
the Facebook one) etc.). Now, while flvmeta does take on these files
without warning, it still passes the corrupt tag on to the output. It would
great if flvmeta could take this into account and skip these tags from
getting added to the output video.

Basically in abstract what I would like to see added to the tag parser loop
is something like:

if tag.type == 0x08 and tag.size < 1 then skip next

The detailed description of this rather old problem is detailed here:
http://www.genarorocha.com/FLVfix.pdf

Original issue reported on code.google.com by saltst...@gmail.com on 28 Oct 2008 at 7:34

GoogleCodeExporter commented 9 years ago
I'd like to know what makes you believe that this tag is corrupt.

According to the PDF file, the first audio tag has a timestamp of 0, and the 
second
one has a timestamp of 1, which may mean that the first tag must act as a
coordination mark of some sort in order to avoid having an offset between the 
video
and audio data.

If flvtool2 and flvtool++ choke on those files, I'd tend to say that the problem
comes from these tools, therefore I don't have a reason to remove the tag as 
long as
the resulting FLV file plays correctly in Flash player and in other video 
players.
On the other hand, if this tag causes playback issues, I think I will get rid 
of it.

Original comment by marc.noi...@gmail.com on 29 Oct 2008 at 5:03

GoogleCodeExporter commented 9 years ago
This issue hasn't been updated for more than six months, I hereby declare it 
closed.

Original comment by marc.noi...@gmail.com on 14 Apr 2009 at 9:45