Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2013-11-16 23:11:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c621be2247f07239bb419d76661691fc83b6bfac
c621be22
1 parent
732b2bbc
add ts_info.cpp for HLS research
隐藏空白字符变更
内嵌
并排对比
正在显示
17 个修改的文件
包含
50 行增加
和
0 行删除
trunk/players/index.html → trunk/research/players/index.html
trunk/players/jwplayer5/index.html → trunk/research/players/jwplayer5/index.html
trunk/players/jwplayer5/jwplayer.js → trunk/research/players/jwplayer5/jwplayer.js
trunk/players/jwplayer5/player5.swf → trunk/research/players/jwplayer5/player5.swf
trunk/players/jwplayer6/index.html → trunk/research/players/jwplayer6/index.html
trunk/players/jwplayer6/jwplayer.flash.swf → trunk/research/players/jwplayer6/jwplayer.flash.swf
trunk/players/jwplayer6/jwplayer.html5.js → trunk/research/players/jwplayer6/jwplayer.html5.js
trunk/players/jwplayer6/jwplayer.js → trunk/research/players/jwplayer6/jwplayer.js
trunk/players/osmf/AdobeFlashPlayerInstall.swf → trunk/research/players/osmf/AdobeFlashPlayerInstall.swf
trunk/players/osmf/StrobeMediaPlayback.swf → trunk/research/players/osmf/StrobeMediaPlayback.swf
trunk/players/osmf/index.html → trunk/research/players/osmf/index.html
trunk/players/osmf/swfobject.js → trunk/research/players/osmf/swfobject.js
trunk/players/rtmp/AdobeFlashPlayerInstall.swf → trunk/research/players/rtmp/AdobeFlashPlayerInstall.swf
trunk/players/rtmp/RtmpPlayer.swf → trunk/research/players/rtmp/RtmpPlayer.swf
trunk/players/rtmp/index.html → trunk/research/players/rtmp/index.html
trunk/players/rtmp/rtmp.player.js → trunk/research/players/rtmp/rtmp.player.js
trunk/research/ts_info.cpp
trunk/players/index.html → trunk/
research/
players/index.html
查看文件 @
c621be2
trunk/players/jwplayer5/index.html → trunk/
research/
players/jwplayer5/index.html
查看文件 @
c621be2
trunk/players/jwplayer5/jwplayer.js → trunk/
research/
players/jwplayer5/jwplayer.js
查看文件 @
c621be2
trunk/players/jwplayer5/player5.swf → trunk/
research/
players/jwplayer5/player5.swf
查看文件 @
c621be2
不能预览此文件类型
trunk/players/jwplayer6/index.html → trunk/
research/
players/jwplayer6/index.html
查看文件 @
c621be2
trunk/players/jwplayer6/jwplayer.flash.swf → trunk/
research/
players/jwplayer6/jwplayer.flash.swf
查看文件 @
c621be2
不能预览此文件类型
trunk/players/jwplayer6/jwplayer.html5.js → trunk/
research/
players/jwplayer6/jwplayer.html5.js
查看文件 @
c621be2
trunk/players/jwplayer6/jwplayer.js → trunk/
research/
players/jwplayer6/jwplayer.js
查看文件 @
c621be2
trunk/players/osmf/AdobeFlashPlayerInstall.swf → trunk/
research/
players/osmf/AdobeFlashPlayerInstall.swf
查看文件 @
c621be2
不能预览此文件类型
trunk/players/osmf/StrobeMediaPlayback.swf → trunk/
research/
players/osmf/StrobeMediaPlayback.swf
查看文件 @
c621be2
不能预览此文件类型
trunk/players/osmf/index.html → trunk/
research/
players/osmf/index.html
查看文件 @
c621be2
trunk/players/osmf/swfobject.js → trunk/
research/
players/osmf/swfobject.js
查看文件 @
c621be2
trunk/players/rtmp/AdobeFlashPlayerInstall.swf → trunk/
research/
players/rtmp/AdobeFlashPlayerInstall.swf
查看文件 @
c621be2
不能预览此文件类型
trunk/players/rtmp/RtmpPlayer.swf → trunk/
research/
players/rtmp/RtmpPlayer.swf
查看文件 @
c621be2
不能预览此文件类型
trunk/players/rtmp/index.html → trunk/
research/
players/rtmp/index.html
查看文件 @
c621be2
trunk/players/rtmp/rtmp.player.js → trunk/
research/
players/rtmp/rtmp.player.js
查看文件 @
c621be2
trunk/research/ts_info.cpp
0 → 100644
查看文件 @
c621be2
/**
g++ -o ts_info ts_info.cpp -g -O0 -ansi
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
/**
ISO/IEC 13818-1:2000(E)
Introduction
SECTION 1 ¨C GENERAL
SECTION 2 ¨C TECHNICAL ELEMENTS
2.4 Transport Stream bitstream requirements
2.5 Program Stream bitstream requirements
2.6 Program and program element descriptors
2.7 Restrictions on the multiplexed stream semantics
Annex A ¨C CRC Decoder Model
*/
#define trace(msg, ...) printf(msg"\n", ##__VA_ARGS__);
int
main
(
int
/*argc*/
,
char
**
/*argv*/
)
{
const
char
*
file
=
"livestream-1347.ts"
;
int
fd
=
open
(
file
,
O_RDONLY
);
trace
(
"demuxer+read packet count offset P+0 P+1 P+2 P+x P+L2 P+L1 P+L0"
);
for
(
int
i
=
0
,
offset
=
0
;
;
i
++
)
{
unsigned
char
PES
[
188
];
memset
(
PES
,
0
,
sizeof
(
PES
));
int
ret
=
read
(
fd
,
PES
,
sizeof
(
PES
));
if
(
ret
==
0
)
{
trace
(
"demuxer+read EOF, read completed, offset: %07d."
,
offset
);
break
;
}
trace
(
"demuxer+read packet %04d %07d 0x%02x 0x%02x 0x%02x ... 0x%02x 0x%02x 0x%02x"
,
i
,
offset
,
PES
[
0
],
PES
[
1
],
PES
[
2
],
PES
[
185
],
PES
[
186
],
PES
[
187
]);
offset
+=
ret
;
}
close
(
fd
);
return
0
;
}
...
...
请
注册
或
登录
后发表评论