Do you mean implement / invent a codec, or do you mean encode a video?
For encoding a video, use libavcodec from ffmpeg.
For implementing or developing a new codec, this is typically done over a series of years by a team of experts, and if you have to ask this general a question it may be a learning experience but would most likely be a waste of your time.
发布评论
评论(3)
使用 ffmpeg,然后从代码中调用可执行文件。
Use ffmpeg, then just call the executable from your code.
您是指实现/发明编解码器,还是指对视频进行编码?
要对视频进行编码,请使用 ffmpeg 中的 libavcodec。
对于实施或开发新的编解码器,这通常是由专家团队花费数年时间完成的,如果您必须问这个一般性问题,这可能是一次学习经历,但很可能会浪费您的时间。
Do you mean implement / invent a codec, or do you mean encode a video?
For encoding a video, use libavcodec from ffmpeg.
For implementing or developing a new codec, this is typically done over a series of years by a team of experts, and if you have to ask this general a question it may be a learning experience but would most likely be a waste of your time.
使用OpenCV。它有一个易于使用的包装器,围绕 Windows 中的本机 API 之一来执行此操作,也围绕 ffmpeg。
Use OpenCV. it has an easy to use wrapper around one of the native API's in windows for doing this and also around ffmpeg.