ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9273|回复: 3

请高手帮忙分析ts码流???

[复制链接]
发表于 2014-1-19 11:23:54 | 显示全部楼层 |阅读模式
两个码流:
1.ts是ffmpeg mux出来的
2.ts是参照协议写的程序输出的


同时按照协议写了一个tsdemux ts流的解析,上面的两个流都可以解析出h264和aac的数据,解析出来都正常,但是1.ts可以用VLC或迅雷看看等软件播放,但是2.ts迅雷看看和VLC都不能正常播放。
2.ts用Elecard StreamEye也可以看数据。


请大家帮忙分析一下结构,谢谢!


【数据流1.ts  2.ts文件 下载】
http://pan.baidu.com/s/1gd1JJvt

回复

使用道具 举报

发表于 2014-1-20 09:23:27 | 显示全部楼层

  1. [StevenLiu@localhost ts_fenxi]$ ffprobe -show_packets 2.ts
  2. ffprobe version N-59597-g4ced5d7 Copyright (c) 2007-2014 the FFmpeg developers
  3.   built on Jan  6 2014 16:13:57 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  4.   configuration: --enable-libx264 --enable-libmp3lame --enable-gpl --enable-libfaac --enable-nonfree --prefix=/usr/
  5.   libavutil      52. 62.100 / 52. 62.100
  6.   libavcodec     55. 47.100 / 55. 47.100
  7.   libavformat    55. 22.102 / 55. 22.102
  8.   libavdevice    55.  5.102 / 55.  5.102
  9.   libavfilter     4.  0.103 /  4.  0.103
  10.   libswscale      2.  5.101 /  2.  5.101
  11.   libswresample   0. 17.104 /  0. 17.104
  12.   libpostproc    52.  3.100 / 52.  3.100
  13. [mpegts @ 0x7fd882815200] Could not detect TS packet size, defaulting to non-FEC/DVHS
  14. [mpegts @ 0x7fd882815200] max resync size reached, could not find sync byte
  15.     Last message repeated 2 times
  16. [NULL @ 0x7fd882831000] non-existing PPS referenced
  17. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  18. [h264 @ 0x7fd882831000] decode_slice_header error
  19. [h264 @ 0x7fd882831000] no frame!
  20. [h264 @ 0x7fd882831000] non-existing PPS referenced
  21. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  22. [h264 @ 0x7fd882831000] decode_slice_header error
  23. [h264 @ 0x7fd882831000] no frame!
  24. [h264 @ 0x7fd882831000] non-existing PPS referenced
  25. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  26. [h264 @ 0x7fd882831000] decode_slice_header error
  27. [h264 @ 0x7fd882831000] no frame!
  28. [h264 @ 0x7fd882831000] non-existing PPS referenced
  29. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  30. [h264 @ 0x7fd882831000] decode_slice_header error
  31. [h264 @ 0x7fd882831000] no frame!
  32. [h264 @ 0x7fd882831000] non-existing PPS referenced
  33. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  34. [h264 @ 0x7fd882831000] decode_slice_header error
  35. [h264 @ 0x7fd882831000] no frame!
  36. [h264 @ 0x7fd882831000] non-existing PPS referenced
  37. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  38. [h264 @ 0x7fd882831000] decode_slice_header error
  39. [h264 @ 0x7fd882831000] no frame!
  40. [h264 @ 0x7fd882831000] non-existing PPS referenced
  41. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  42. [h264 @ 0x7fd882831000] decode_slice_header error
  43. [h264 @ 0x7fd882831000] no frame!
  44. [h264 @ 0x7fd882831000] non-existing PPS referenced
  45. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  46. [h264 @ 0x7fd882831000] decode_slice_header error
  47. [h264 @ 0x7fd882831000] no frame!
  48. [h264 @ 0x7fd882831000] non-existing PPS referenced
  49. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  50. [h264 @ 0x7fd882831000] decode_slice_header error
  51. [h264 @ 0x7fd882831000] no frame!
  52. [h264 @ 0x7fd882831000] non-existing PPS referenced
  53. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  54. [h264 @ 0x7fd882831000] decode_slice_header error
  55. [h264 @ 0x7fd882831000] no frame!
  56. [h264 @ 0x7fd882831000] non-existing PPS referenced
  57. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  58. [h264 @ 0x7fd882831000] decode_slice_header error
  59. [h264 @ 0x7fd882831000] no frame!
  60. [mpegts @ 0x7fd882815200] max resync size reached, could not find sync byte
  61. [mpegts @ 0x7fd882815200] PES packet size mismatch
  62. [h264 @ 0x7fd882831000] non-existing PPS referenced
  63. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  64. [h264 @ 0x7fd882831000] decode_slice_header error
  65. [h264 @ 0x7fd882831000] no frame!
  66. [h264 @ 0x7fd882831000] non-existing PPS referenced
  67. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  68. [h264 @ 0x7fd882831000] decode_slice_header error
  69. [h264 @ 0x7fd882831000] no frame!
  70. [h264 @ 0x7fd882831000] non-existing PPS referenced
  71. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  72. [h264 @ 0x7fd882831000] decode_slice_header error
  73. [h264 @ 0x7fd882831000] no frame!
  74. [h264 @ 0x7fd882831000] non-existing PPS referenced
  75. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  76. [h264 @ 0x7fd882831000] decode_slice_header error
  77. [h264 @ 0x7fd882831000] no frame!
  78. [h264 @ 0x7fd882831000] non-existing PPS referenced
  79. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  80. [h264 @ 0x7fd882831000] decode_slice_header error
  81. [h264 @ 0x7fd882831000] no frame!
  82. [h264 @ 0x7fd882831000] non-existing PPS referenced
  83. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  84. [h264 @ 0x7fd882831000] decode_slice_header error
  85. [h264 @ 0x7fd882831000] no frame!
  86. [h264 @ 0x7fd882831000] non-existing PPS referenced
  87. [h264 @ 0x7fd882831000] non-existing PPS 0 referenced
  88. [h264 @ 0x7fd882831000] decode_slice_header error
  89. [h264 @ 0x7fd882831000] no frame!
  90. [mpegts @ 0x7fd882815200] PES packet size mismatch
  91. Input #0, mpegts, from '2.ts':
  92.   Duration: 00:00:30.92, start: 92828.845844, bitrate: 2009 kb/s
  93.   Program 1
  94.     Stream #0:1[0x1011]: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 30 fps, 62.50 tbr, 90k tbn, 60 tbc
  95.     Stream #0:0[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp, 40 kb/s
  96. [mpegts @ 0x7fd882815200] max resync size reached, could not find sync byte
复制代码
这个是2里面的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-2-19 11:55:04 | 显示全部楼层
谢谢指点,我知道该怎么做了
回复 支持 反对

使用道具 举报

发表于 2014-7-2 09:45:58 | 显示全部楼层
楼主,我有h264和aac流数据 怎么封装成ts流,可以指点一下吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-25 18:14 , Processed in 0.050991 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表