• FFmpeg合并多个ts视频文件


    方法一:

    新建file.txt文档

    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-16.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-17.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-18.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-19.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-20.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-21.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-22.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-23.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-24.ts'
    file 'F:ReleaseStreamMediaServerhtmlhd3402000000131000070134020000001310000701_live-25.ts'

    执行ffmpeg命令

    # -safe 0: 防止Operation not permitted
    ffmpeg.exe -f concat -safe 0 -i file.txt -c copy out.mp4

    方法二:

    直接写ffmpeg命令,通过“|”来分隔文件名

    ffmpeg -i "concat:34020000001310000701_live-16.ts|34020000001310000701_live-17.ts|" -c copy output.mp4

    参考链接:https://blog.csdn.net/jiuaiwo1314/article/details/106100781

  • 相关阅读:
    第一次作业
    第五次作业
    第三次作业
    第六次作业
    第二次作业
    scikitlearn学习 决策树
    [阅读]Think Python CH3 Functions
    [阅读]Think Python CH2 Variables, Expressions, and Statements
    [阅读]Think Python CH1 The Way of the Program
    Hive操作符和函数
  • 原文地址:https://www.cnblogs.com/nihaorz/p/14701637.html
Copyright © 2020-2023  润新知