[FFmpeg-trac] #2579(avformat:open): Data stream from UAV video reported as "Unknown" type
FFmpeg
trac at avcodec.org
Fri May 17 16:41:22 CEST 2013
#2579: Data stream from UAV video reported as "Unknown" type
-------------------------------------+-------------------------------------
Reporter: mleotta | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: mpegts | Blocked By:
regression | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by mleotta):
The patch I have attached provides one possible solution. It partially
reverts the change from e78d1a59 for the case where the media type was
previously unknown.
The resulting output becomes
{{{
Stream #0:1[0x1f1]: Data: none ([21][0][0][0] / 0x0015)
}}}
I think this comes down to a design decision. If a stream type is unknown
do you treat it as "Unknown" and allow no access to the data, or do you
treat it as "Data" of an unknown format. I prefer the latter because it
allows the downstream developer to have access to the data and make use of
it if they know how.
Another solution to this problem is to "register" this particular type of
data stream so that it is not unknown. I don't know enough about the
stream type or how the code works to suggest such a patch. However, I can
say that this encoding appears to be common for KLV data streams prior to
the more recent standards.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2579#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list