深入理解pts,dts,time_base
http://blog.chinaunix.net/uid-20554957-id-5836134.html

视音频pts计算
https://blog.csdn.net/dancing_night/article/details/45972361

关于FFmpeg的pts转时基时的计算步骤(包括无输入流地址和有输入流地址)
https://blog.csdn.net/weixin_44517656/article/details/110559611
这里对第一步说明:
cal_duration是1000000/25,ffmpeg中的时间基是1.010-6 其实就是微妙,这里cal_duration就是1s占多少微妙,这样做好处就是没有s的小数了。
pts的计算可以转化一下 (n
cal_duration)/ 10000,这就是有转换成秒了,然后再乘以输入时间基,就成了按照输入基准计算出来的pts,这样就有了第三步转时基的操作。
关于时间基一般来说flv mp4等都是1000就是毫秒,摄像头采集90kHZ,ffmpeg1000000.

FFmpeg中的时间基(time_base), AV_TIME_BASE
https://www.cnblogs.com/yongdaimi/p/10684953.html

ffmpeg中tbr tbc tbn的含义解释
https://blog.csdn.net/xujaiwei/article/details/77773438

ffmpeg time_base
http://www.cnitblog.com/luofuchong/archive/2014/11/28/89869.html

拓展:时间基为什么是90KhZ?
the following sections describe the video encodings that are defined
in this memo and give their abbreviated names used for
identification. These video encodings and their payload types are
listed in Table 5.

All of these video encodings use an RTP timestamp frequency of 90,000
Hz, the same as the MPEG presentation time stamp frequency. This
frequency yields exact integer timestamp increments for the typical
24 (HDTV), 25 (PAL), and 29.97 (NTSC) and 30 Hz (HDTV) frame rates
and 50, 59.94 and 60 Hz field rates. While 90 kHz is the RECOMMENDED
rate for future video encodings used within this profile, other rates
MAY be used. However, it is not sufficient to use the video frame
rate (typically between 15 and 30 Hz) because that does not provide
adequate resolution for typical synchronization requirements when
calculating the RTP timestamp corresponding to the NTP timestamp in
an RTCP SR packet. The timestamp resolution MUST also be sufficient
for the jitter estimate contained in the receiver reports.

For most of these video encodings, the RTP timestamp encodes the
sampling instant of the video image contained in the RTP data packet.
If a video image occupies more than one packet, the timestamp is the
same on all of those packets. Packets from different video images
are distinguished by their different timestamps.

Most of these video encodings also specify that the marker bit of the
RTP header SHOULD be set to one in the last packet of a video frame
and otherwise set to zero. Thus, it is not necessary to wait for a
following packet with a different timestamp to detect that a new
frame should be displayed

比如:fps为25和30
1/25=x/90K
1/30=x/90k
这样都能整除,90k就是

ffmpeg关于dts和pts收集相关推荐

  1. ffmpeg中的时间 DTS、PTS、AV_TIME_BASE、AV_TIME_BASE_Q 介绍

    ffmpeg中的时间 DTS.PTS.AV_TIME_BASE.AV_TIME_BASE_Q等介绍  原文:http://www.cnblogs.com/yinxiangpei/articles/38 ...

  2. DTS和PTS的分析(FFMPEG、HLS相关)

    来在研究HLS(HTTP Live Streaming),以实现android上播放m3u8文件.由于TS段的切分不统一,每个视频网站给出的m3u8 playlists总有差别,在时间戳显示上有差异, ...

  3. H264中的时间戳(DTS和PTS)

    (1)Ffmpeg中的DTS 和 PTS H264里有两种时间戳:DTS(Decoding Time Stamp)和PTS(Presentation Time Stamp). 顾名思义,前者是解码的时 ...

  4. 音视频中的DTS、PTS

    写这个还是为了给自己保存啊   勿怪啊 内容肯定都是老的 只给粉丝看了  琢磨存取证视频时和这个题目关联 欢迎讨论 whaosoft aiot http://143ai.com I.P.B 帧 I 帧 ...

  5. 视频流中的DTS、PTS到底是什么

    视频流中的DTS.PTS到底是什么 I.P.B 帧 要搞懂 DTS 和 PTS ,首先要先了解一下 I.P.B 帧. I 帧 : 帧内编码帧 又称intra picture,I 帧通常是每个 GOP( ...

  6. I-frame、B-frame、P-frame及DTS、PTS的关系(转)

    基本概念: I frame :帧内编码帧 又称intra picture,I 帧通常是每个 GOP(MPEG 所使用的一种视频压缩技术)的第一个帧,经过适度地压缩,做为随机访问的参考点,可以当成图象. ...

  7. STC,PCR,DTS,PTS

    PTS和DTS是时标,每秒增加90k 这个在MPEG2文档中可以查到 The PTS/DTS flags in the packet header are set to indicate the pr ...

  8. 群晖DSM7.X Video Station结合FFMPEG支持DTS视频及EAC3音频编码

    群辉升级后不支持DTS\EA3音频编码,网上找了好多教程都不对,最后按这个教程成功了,特转发.原网址:群晖DSM7.X Video Station结合FFMPEG支持DTS视频及EAC3音频编码 - ...

  9. H.264的DTS、PTS、frame_num、poc

    DTS与PTS: 先盗一张网图,解释DTS和PTS. DTS和PTS是解码端或者说播放器的概念,DTS是解码的顺序,PTS是显示的顺序.H264中,如果码流中不包含B帧,码流中所有帧的PTS=DTS. ...

最新文章

  1. 无人驾驶汽车系统入门——基于Frenet优化轨迹的无人车动作规划方法
  2. C语言windows编程编写窗口
  3. c语言输入一段字符,C语言实现输入一个字符串后打印出该字符串中字符的所有排列...
  4. 程序员的3年之痒改变的不止薪水(转载)
  5. cpu倍频模式怎么调_CPU频率被锁定到800mhz怎么办?
  6. 理解Lucene/Solr的缓存
  7. 【uoj#142】【UER #5】万圣节的南瓜灯 乱搞+并查集
  8. pip 更新版本失败问题解决
  9. 快回家了,感觉什么事情都不想做,除了吃饭睡觉
  10. matlab 均值滤波实现
  11. 使用蛋白质和mRNA序列信息预测蛋白质亚线粒体定位
  12. Layui 文档(含镜像站资源)
  13. java restsharp_RestSharp使用总结
  14. python爬取网易云音乐评论并制作词云
  15. 如何将企业微信好友设置为外部联系人
  16. 数据库表及其字段变量命名神器之codeIf
  17. 华为交换机一端口网线一直拔插,导致端口被关闭锁死,网线接了灯不会亮
  18. 软件企业认定及软件产品登记申报表填报说明
  19. Enhancing Adversarial Training with Second-Order Statistics of Weights
  20. html设置弹性盒子分配自适应比例,移动端弹性布局flex,CSS3自适应

热门文章

  1. 各类通信协议归纳整理(偏硬件)
  2. 华为畅享6怎么找回计算机,华为荣耀畅玩6双清解屏幕锁格机恢复出厂设置方法...
  3. oracle的scn技术,Oracle SCN 深入研究
  4. 视频加配音用什么软件?视频配音软件大分享
  5. php和mysql 第4版下载_PHP和MySQL Web开发第4版下载_PHP和MySQL Web开发第4版官方下载-太平洋下载中心...
  6. MTCNN移植java_MTCNN移植安卓并检测视频中人脸
  7. 虚幻引擎进行世界场景构建的总览-学习UE4需要首先学习的部分
  8. 计算机虚拟现实主要学什么,虚拟现实计算机教学应用
  9. 魔兽模型路径查看更改工具
  10. c语言运行后tecplot云图,tecplot执行fluent后处理截面云图显示.pdf