请高手帮忙分析ts码流???
两个码流:1.ts是ffmpeg mux出来的
2.ts是参照协议写的程序输出的
同时按照协议写了一个tsdemux ts流的解析,上面的两个流都可以解析出h264和aac的数据,解析出来都正常,但是1.ts可以用VLC或迅雷看看等软件播放,但是2.ts迅雷看看和VLC都不能正常播放。
2.ts用Elecard StreamEye也可以看数据。
请大家帮忙分析一下结构,谢谢!
【数据流1.ts2.ts文件 下载】
http://pan.baidu.com/s/1gd1JJvt
$ ffprobe -show_packets 2.ts
ffprobe version N-59597-g4ced5d7 Copyright (c) 2007-2014 the FFmpeg developers
built on Jan6 2014 16:13:57 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --enable-libx264 --enable-libmp3lame --enable-gpl --enable-libfaac --enable-nonfree --prefix=/usr/
libavutil 52. 62.100 / 52. 62.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.102 / 55. 22.102
libavdevice 55.5.102 / 55.5.102
libavfilter 4.0.103 /4.0.103
libswscale 2.5.101 /2.5.101
libswresample 0. 17.104 /0. 17.104
libpostproc 52.3.100 / 52.3.100
Could not detect TS packet size, defaulting to non-FEC/DVHS
max resync size reached, could not find sync byte
Last message repeated 2 times
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
max resync size reached, could not find sync byte
PES packet size mismatch
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
non-existing PPS referenced
non-existing PPS 0 referenced
decode_slice_header error
no frame!
PES packet size mismatch
Input #0, mpegts, from '2.ts':
Duration: 00:00:30.92, start: 92828.845844, bitrate: 2009 kb/s
Program 1
Stream #0:1: Video: h264 (Baseline) ( / 0x001B), yuv420p, 1920x1080, 30 fps, 62.50 tbr, 90k tbn, 60 tbc
Stream #0:0: Audio: aac ( / 0x000F), 32000 Hz, stereo, fltp, 40 kb/s
max resync size reached, could not find sync byte
这个是2里面的 谢谢指点,我知道该怎么做了:lol 楼主,我有h264和aac流数据 怎么封装成ts流,可以指点一下吗?
页:
[1]