拆分和合并MP4视频 [英] Split and Merge MP4 video

查看:116
本文介绍了拆分和合并MP4视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个桌面应用程序(mfc),现在我必须实现MP4视频的拆分和合并。我搜索了很多,几乎没有在网上找到任何东西。请帮我提一下如何继续和使用什么的提示。拆分和合并应在时间轴上进行,而不是基于大小。代码在VC ++中



我能用Windows Video Encoder实现这个目标吗?如果是,如何了解WME中暴露的方法?

解决方案

首先,没有MP4这样的东西。这是一类用于音频和视频的压缩算法,并非全部:容器格式也是如此。我不想在这里解释一下;您可能想阅读维基百科上的相关主题;这将是几篇不同的文章。



我强烈建议使用开源多平台FFmpeg或libavcodec库和一组实用程序。请参阅:

http://en.wikipedia.org/wiki/Ffmpeg [< a href =http://en.wikipedia.org/wiki/Ffmpegtarget =_ blanktitle =New Window> ^ ],

http://ffmpeg.org/ [ ^ ],

http://en.wikipedia.org/wiki/Libavcodec [ ^ ],

http://libav.org/ [ ^ ]。



这个东西是用C语言编写的,所以你可以使用C ++代码中的库。这是我见过的最好的代码,它帮助我处理与处理媒体数据相关的许多最困难的情况。



微软?在支持各种标准方面,他们从未做过任何严肃的事情,无论是编码器还是Windows Media Player。在涉及广泛的算法和标准的情况下,开源是天生的赢家,因为这样的项目可以使用很多贡献者的帮助。



-SA

I have a desktop application (mfc) in which now I have to implement split and merge of MP4 videos. I have searched a lot and found almost nothing online. Please help me with some hints on how to proceed and what to use. Splitting and merging should be done on timeline basis and not based on size. Code is in VC++

Can I achieve this with Windows Video Encoder? If yes, how to know about the exposed methods in WME?

解决方案

First of all, there is no such thing as just MP4. This is a class of compression algorithms for both audio and video, and that's not all: there is also such thing a the container format. I don't want to explain it all here; you may want to read about related topics on Wikipedia; and it would be several different articles.

I would strongly advise to use open-source multi-platform FFmpeg or libavcodec libraries and set of utilities. Please see:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].

This stuff is written in C, so you can use the library from your C++ code. This is the best code I ever saw, it helped me in many most difficult situations related to processing media data.

Microsoft? In terms of support of variety of standards, they never did anything serious, be it their encoder or even Windows Media Player. In such cases where the wide sets of algorithms and standards are involved, open-source is a natural winner, because such project can use the help of very many contributors.

—SA


这篇关于拆分和合并MP4视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆