johnnyb
V2EX  ›  编程

如何通过编程调用libffmpeg实现mp4合并?

  •  
  •   johnnyb · Aug 1, 2013 · 4202 views
    This topic created in 4694 days ago, the information mentioned may be changed or developed.
    ffmpeg 命令行合并 mp4 很简单,只需两个步骤:

    a.mp4 --> a.ts
    b.mp4 --> b.ts

    a.ts b.ts --> c.mp4

    但是如何编程实现?那些 codec/filter/frame 该怎么设置?参考网上的代码编了一个测试程序,转出来的.ts音频不同步,还有些爆音。我把代码和错误信息都发在 http://stackoverflow.com/questions/17979237/how-to-concat-mp4-files-using-libffmpeg-in-c-program 了,哪位有空帮忙看看(原谅我的chinglish吧)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1302 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:14 · PVG 01:14 · LAX 10:14 · JFK 13:14
    ♥ Do have faith in what you're doing.