深入理解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. Windows禁止启动某个程序!偷偷禁止,别人就打不开。。。比如,微信 LOL 吃鸡 爱奇艺
  2. Meshlab和CloudCompare截图时去除“旋转圈”
  3. 命令查看多线程所有线程ID
  4. 微软MVP社区夏日巡讲诚邀您的参与: 北京,上海,西宁,成都,西安
  5. angularJS 修改操作select回显选中的数据
  6. ASP.NET 多环境下配置文件web.config的灵活配置---转
  7. arm 开发工具比较(ADS vs RealviewMDK vs RVDS)
  8. Python深度学习:Python数据处理及可视化(读书笔记)
  9. Unity3D 下载与安装
  10. java计算机毕业设计随心淘网管理系统源代码+数据库+系统+lw文档
  11. 20155313 杨瀚 《网络对抗技术》实验三 免杀原理与实践
  12. 一台显示器分成双屏_双屏办公,用起来到底有多爽
  13. vue 找回密码_密码系统
  14. Oracle中字符串截取最全方法总结
  15. 数论概论笔记 第3章 勾股数组与单位圆
  16. 设计师:设计师之家装材料知识之家装八项(吊顶材料、门窗材料、五金材料、墙面材料、地面材料、胶粘材料、油漆材料、水电材料等)之详细攻略
  17. 他们是公众号界的一股清流!
  18. Linux 内核配置项详解 myimx6
  19. Python之数据爬取数据可视化
  20. python语言画成圆相切_在python中如何使用循环结构画四个相切的圆

热门文章

  1. 如何个性化的设置自己的博客
  2. 前端html-部件模板收集(附源码)
  3. Adobe Aquire Macromedia
  4. atom编辑器Linux中文版,linux atom 怎么支持中文 Linux下Atom编辑器不支持中文解决方法...
  5. Swoft 踩坑笔记六 - 代码调试
  6. Rust中的引用计数Arc与Rc
  7. 频域、频谱等知识普及
  8. android studio 开发实用插件
  9. OneNote安装代码高亮插件-NoteHightlight(2010-2013-2016)
  10. 用python实现todolist_todolist项目