[FFmpeg-trac] #466(undetermined:open): Does FFMPEG support MPEGTS + H.264?

FFmpeg trac at avcodec.org
Sat Oct 1 15:24:01 CEST 2011


#466: Does FFMPEG support MPEGTS + H.264?
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  sunshine_uyl                       |                   Status:  open
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  reopened => open
 * version:  unspecified => git-master
 * reproduced:  0 => 1


Comment:

 The file contains two programs: 59352, low resolution, works fine and is
 ~26 seconds long.
 The problematic program is 59328, high definition (1920x1080), it contains
 ~26 seconds audio starting with timestamps ~34616. Audio can be played
 with ffplay -vn, mplayer -demuxer lavf -novideo and can be converted with
 ffmpeg.
 Video is ~24 seconds, and start with 34618 when played with mplayer
 -demuxer mpegts -nosound (and seek back).
 FFmpeg initially sees video timestamps of 1317472613.58 leading to startup
 delay and failure because of too high drop count. (The wrong timestamps
 are not reproducible with ffprobe.)
 {{{
 $ ffmpeg -i Brazil.ts -qscale 2 out.avi
 ffmpeg version N-33192-gfe70c1f, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Oct  1 2011 12:36:37 with gcc 4.3.2 [gcc-4_3-branch revision
 141291]
   configuration: --enable-libopenjpeg
   libavutil    51. 18. 0 / 51. 18. 0
   libavcodec   53. 19. 0 / 53. 19. 0
   libavformat  53. 13. 0 / 53. 13. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 43. 6 /  2. 43. 6
   libswscale    2.  1. 0 /  2.  1. 0
 [h264 @ 0x8d449a0] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x8d449a0] non-existing PPS referenced
 [h264 @ 0x8d449a0] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x8d449a0] non-existing PPS 0 referenced
 [h264 @ 0x8d449a0] decode_slice_header error
 [h264 @ 0x8d449a0] no frame!

 ...

 [h264 @ 0x8d449a0] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x8d449a0] non-existing PPS referenced
 [h264 @ 0x8d449a0] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x8d449a0] non-existing PPS 0 referenced
 [h264 @ 0x8d449a0] decode_slice_header error
 [h264 @ 0x8d449a0] no frame!
 [h264 @ 0x8d449a0] mmco: unref short failure
 [h264 @ 0x8d86640] non-existing SPS 32 referenced in buffering period
 [h264 @ 0x8d86640] non-existing PPS referenced
 [h264 @ 0x8d86640] non-existing SPS 32 referenced in buffering period
 [h264 @ 0x8d86640] non-existing PPS 0 referenced
 [h264 @ 0x8d86640] decode_slice_header error
 [h264 @ 0x8d86640] no frame!
 [mpegts @ 0x8d3faa0] probed stream 5 failed
 [mpegts @ 0x8d3faa0] probed stream 8 failed
 [mpegts @ 0x8d3faa0] parser not found for codec none, packets or times may
 be invalid
 .
     Last message repeated 1 times
 [NULL @ 0x8d46140] start time is not set in estimate_timings_from_pts
 [NULL @ 0x8d46920] start time is not set in estimate_timings_from_pts
 [NULL @ 0x8d8c8a0] start time is not set in estimate_timings_from_pts
 [mpegts @ 0x8d3faa0] PES packet size mismatch

 Seems stream 0 codec frame rate differs from container frame rate: 59.94
 (60000/1001)
  -> 59.94 (60000/1001)

 Seems stream 7 codec frame rate differs from container frame rate: 29.97
 (30000/1001)
  -> 29.97 (30000/1001)
 Input #0, mpegts, from 'Brazil.ts':
   Duration: 06:05:53.98, start: 12688.943522, bitrate: 35 kb/s
   Program 59328
     Metadata:
       service_name    : ?Record HD
       service_provider:
     Stream #0:0[0x111]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 148.90 fps, 59.94 tbr, 90k tbn,
 59.94 tbc
     Stream #0:1[0x112]: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000
 Hz, stereo, s16
     Stream #0:2[0x113]: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000
 Hz, stereo, s16
     Stream #0:3[0x384]: Unknown: none ([11][0][0][0] / 0x000B)
     Stream #0:4[0x1f4]: Unknown: none ([5][0][0][0] / 0x0005)
     Stream #0:5[0x120]: Unknown: none ([6][0][0][0] / 0x0006)
   Program 59352
     Metadata:
       service_name    : ?Record 1Seg
       service_provider:
     Stream #0:7[0x281]: Video: h264 (Constrained Baseline) ([27][0][0][0]
 / 0x001B), yuv420p, 320x180 [SAR 1:1 DAR 16:9], 38.96 fps, 29.97 tbr, 90k
 tbn, 29.97 tbc
     Stream #0:6[0x283]: Audio: aac_latm ([17][0][0][0] / 0x0011), 48000
 Hz, 2 channels (FC), s16
     Stream #0:8[0x290]: Unknown: none ([6][0][0][0] / 0x0006)
 [buffer @ 0x8e0eba0] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1
 sws_param:
 Incompatible sample format 's16' for codec 'ac3', auto-selecting format
 'flt'
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf53.13.0
     Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1920x1080 [SAR
 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 tbn, 59.94 tbc
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, flt,
 128 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0 (h264 -> mpeg4)
   Stream #0.1 -> #0.1 (aac_latm -> ac3)
 Press [q] to stop, [?] for help
 [h264 @ 0x8d449a0] mmco: unref short failure
     Last message repeated 2 times
 frame=  194 fps=  3 q=2.0 size=     427kB time=00:00:26.27 bitrate=
 133.0kbits/s
 PES packet size mismatch
 [h264 @ 0x8d449a0] error while decoding MB 55 5, bytestream (-19)
 Error while decoding stream #0.1
 Too large number of skiped frames 1315522
 frame=  198 fps=  3 q=2.0 Lsize=     428kB time=00:00:26.36 bitrate=
 133.0kbits/s
 video:19722kB audio:412kB global headers:0kB muxing overhead -97.873377%
 }}}
 Cutting the file like this solves all problems:
 {{{
 dd if=Brazil.ts of=test.ts bs=1M skip=72
 }}}
 Cutting only 71M does not really help.

-- 
Ticket URL: <http://www.avcodec.org/trac/ffmpeg/ticket/466#comment:20>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list