[FFmpeg-trac] #2579(avformat:new): Data stream from UAV video reported as "Unknown" type

FFmpeg trac at avcodec.org
Thu May 16 21:47:26 CEST 2013


#2579: Data stream from UAV video reported as "Unknown" type
-------------------------------------+-------------------------------------
             Reporter:  mleotta      |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  avformat     |                  Version:  git-
             Keywords:  KLV, Data    |  master
  Stream                             |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 In some older videos collected from a UAV (e.g. Predator drone), the KLV
 metadata stream is not recognized as a "Data" stream and is parsed as
 "Unknown".  I would like to be able to ready this data stream as "Data".

 In much older versions of FFmpeg (e.g. version 0.8 and before) the data
 stream was interpreted as "Data" and I could read the data correctly.  I
 used git bisect to determine that metadata stream is interpreted as
 "Unknown" after commit e78d1a59.

 I am actually using the APIs for libavformat, libavcodec, etc. to work
 with the video and metadata, but the bug can be determined by simply
 running ffmpeg and looking at the stream types.

 How to reproduce:
 {{{
 % ffmpeg -i old_klv_data_stream.mpg
 ffmpeg version N-53159-gd94c907 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on May 16 2013 14:15:13 with gcc 4.6 (Ubuntu/Linaro
 4.6.3-1ubuntu5)
   configuration:
   libavutil      52. 32.100 / 52. 32.100
   libavcodec     55.  9.100 / 55.  9.100
   libavformat    55.  7.100 / 55.  7.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 68.101 /  3. 68.101
   libswscale      2.  3.100 /  2.  3.100
   libswresample   0. 17.102 /  0. 17.102
 [mpegts @ 0x3371020] probed stream 1 failed
 [mpegts @ 0x3371020] max_analyze_duration 5000000 reached at 5003333
 microseconds
 [mpegts @ 0x3371020] Could not find codec parameters for stream 1
 (Unknown: none ([21][0][0][0] / 0x0015)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 0x3371020] PES packet size mismatch
 Input #0, mpegts, from 'old_klv_data_stream.mpg':
   Duration: 00:00:16.15, start: 0.909400, bitrate: 5072 kb/s
   Program 1
     Stream #0:0[0x1e1]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
 yuv420p, 720x480 [SAR 1:1 DAR 3:2], 29.97 fps, 59.94 tbr, 90k tbn, 59.94
 tbc
     Stream #0:1[0x1f1]: Unknown: none ([21][0][0][0] / 0x0015)
 At least one output file must be specified

 }}}
 I will be uploading the sample file specified above, and attaching a
 report generated by '''ffmpeg -v 9 -loglevel 99 -report -i
 old_klv_data_stream.mpg'''.

 I have hundreds video files that have these issues.  Video from newer UAVs
 seem to use a different stream type and the metadata is correctly reported
 as
 {{{
 Stream #0:1[0x90]: Data: klv (KLVA / 0x41564C4B)
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2579>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list