最近使用ffmpeg合成mp4视频有了如下报错信息:

Non-monotonous DTS in output stream 0:0; previous: 21587350, current: 12740928; changing to 21587351. This may result in incorrect timestamps in the output file.


解决方法是如下:

for f in ./*.mp4; do ffmpeg -i $f -q 0 "${f%.*}.mts"; done

然后新建文本文档,可以用python新建

f=open('file.txt','w')
for i in range(30):f.write('file crypto1-1-'+str(i+2)+'.mts'+"\n")
f.close()

得到如下文件:

之后使用命令:

ffmpeg -f concat -i file.txt -c copy output.mp4

即可

解决ffmpeg报错Non-monotonous DTS in output stream 0:0;相关推荐

  1. linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls

    linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls 报错 解决 ...

  2. git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)....

    Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保 ...

  3. 解决Redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist

    解决Redis报错:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on ...

  4. 解决Python报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 658: illegal multibyte

    解决Python报错–UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 658: illegal multibyte ...

  5. 解决gcc报错:error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]

    此文首发于我的个人博客:解决gcc报错 error implicit declaration of function 'inet_addr' [-Werror=implicit-function-de ...

  6. 解决WAS报错SRVE0207E: servlet 创建了未捕获到的初始化异常

    解决WAS报错SRVE0207E: servlet 创建了未捕获到的初始化异常 参考文章: (1)解决WAS报错SRVE0207E: servlet 创建了未捕获到的初始化异常 (2)https:// ...

  7. vue解决启动报错cjs loader.js Error: Cannot find module ‘../config‘问题

    vue解决启动报错cjs loader.js Error: Cannot find module '../config'问题 参考文章: (1)vue解决启动报错cjs loader.js Error ...

  8. 解决tensorflow报错:AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘get_session‘ 问题

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 解决tensorflow报错:AttributeError: module 'tensorflow.keras.back ...

  9. 解决MySQL报错ERROR 2002 (HY000)【转】

    今天在为新的业务线搭架数据库后,在启动的时候报错 root@qsbilldatahis-db01:/usr/local/mysql/bin# ./mysql ERROR 2002 (HY000): C ...

  10. path manipulation怎么解决_PyCharm报错与解决方法一览

    报错: IndentationError:expected an indented block 分析: 缩进错误! 解决: 你只要在出现错误的那一行,按空格或Tab(但不能混用)键缩进就行.往往有的人 ...

最新文章

  1. iOS UICollectionView的实现
  2. linux网卡O I流量查询,查看linux server网络I/0流量的shell脚本
  3. C++线程池原理及创建(转)
  4. 如何处理错误消息Please install the Linux kernel header files
  5. python cookie使用_Python使用cookielib模块操作cookie的实例教程
  6. 测试 jdbc 中连接关闭的时机
  7. PB语言实现反射机制
  8. storm的核心组件,编程模型,一般机构图
  9. ZZULIOJ1097: 计算平均成绩(函数专题)
  10. 3个技巧教你做好微博号运营
  11. 网站服务器死机是什么意思,服务器宕机是什么意思?
  12. UEFI——UEFI Package Module
  13. 4kw机柜无通道封闭CFD模拟分析及优化(上篇) -孙长青
  14. Android 友盟推送收不到
  15. Matlab进行gnss用户坐标计算,论文推荐 | 嵇昆浦,沈云中:含缺值GNSS基准站坐标序列的非插值小波分析与信号提取...
  16. 垃圾分类查询管理系统
  17. linux 设置时区 东一区,关于时区的划分
  18. 教学|大神建模师提供建模思路,建模步骤详细
  19. 坦克世界登录服务器未响应,笔者详解win7系统坦克世界登录连接不上服务器的解决方案...
  20. 移动端免费可用的BaaS接入方案

热门文章

  1. linux marvell 网卡驱动,linux下安装Marvell Yukon网卡驱动
  2. Python 计算思维训练——公式计算
  3. matplotlib显示宋体和Times New Roman
  4. eclipse修改自定义皮肤
  5. matlab emd功率谱密度,【脑电信号分类】脑电信号提取PSD功率谱密度特征
  6. 8年开发,连登陆接口都写这么烂...
  7. UE4 后处理材质 镜头光晕(Lensflare)效果
  8. SAP ABAP MOVE-CORRESPONDING ... TO ...的使用
  9. 没有 本地计算机策略组,本地组策略编辑器没有mmc
  10. 后端程序员必会:并发情况下redis-lua保证原子操作