我在哪里可以找到C/ c++ FFmpeg扩展教程?

时间:2022-04-18 15:06:08

I want to use ffmpeg (in its c library form) to split a video in more parts, recompose them and encode the final result. Something basic. But it's very difficult to find documentation or hints about this. Where should I look/ask for advice?

我想使用ffmpeg(在它的c库形式中)将一个视频分割成更多的部分,重新组合它们并对最终结果进行编码。基本的东西。但是很难找到相关的文档或提示。我应该到哪里去寻求建议?

2 个解决方案

#1


5  

You can learn a great deal from the source of the command-line utilities maintained by the FFmpeg project.

您可以从FFmpeg项目维护的命令行实用程序的源代码中学到很多东西。

In ffplay.c, the main() will show you how to get the library initialized. stream_component_open() demonstrates matching codecs to streams in the media, and get_video_frame() shows how to decode a packet and get its PTS (presentation time stamp). You'll need that to time your splits correctly.

在ffplay。c, main()将向您展示如何初始化库。stream_component_open()演示了如何将编解码器与媒体中的流匹配,get_video_frame()演示了如何解码包并获取其PTS(表示时间戳)。你将需要这个时间正确的分割。

That should get you started on the decode side. On the encode side, look at ffmpeg.c. It's larger and more complicated than ffplay, but the process of encoding a frame nearly mirrors the process of decoding it, so once you have decoding working, it should make more sense.

这样你就可以开始解码了。在编码方面,请看ffmpeg.c。它比ffplay更大、更复杂,但编码帧的过程几乎反映了解码的过程,因此,一旦解码工作完成,它应该更有意义。

#2


3  

i was searching for a FFmpeg tutorial and php but i found the following are the best places to learn it with any language a book i think it's the only book about FFmpeg FFmpeg Basics: Multimedia handling with a fast audio and video encoder

我在寻找一个FFmpeg教程和php,但我发现以下是用任何语言学习它的最好地方。我认为这是唯一一本关于FFmpeg FFmpeg基础的书:用快速音频和视频编码器进行多媒体处理

http://www.amazon.com/FFmpeg-Basics-Multimedia-handling-encoder/dp/1479327832/ref=sr_1_12?ie=UTF8&qid=1357356672&sr=8-12&keywords=ffmpeg

http://www.amazon.com/FFmpeg-Basics-Multimedia-handling-encoder/dp/1479327832/ref=sr_1_12?ie=UTF8&qid=1357356672&sr=8-12&keywords=ffmpeg

我在哪里可以找到C/ c++ FFmpeg扩展教程?

and the scond place is http://ffmpeg.org/documentation.html

scond的位置是http://ffmpeg.org/document.html

#1


5  

You can learn a great deal from the source of the command-line utilities maintained by the FFmpeg project.

您可以从FFmpeg项目维护的命令行实用程序的源代码中学到很多东西。

In ffplay.c, the main() will show you how to get the library initialized. stream_component_open() demonstrates matching codecs to streams in the media, and get_video_frame() shows how to decode a packet and get its PTS (presentation time stamp). You'll need that to time your splits correctly.

在ffplay。c, main()将向您展示如何初始化库。stream_component_open()演示了如何将编解码器与媒体中的流匹配,get_video_frame()演示了如何解码包并获取其PTS(表示时间戳)。你将需要这个时间正确的分割。

That should get you started on the decode side. On the encode side, look at ffmpeg.c. It's larger and more complicated than ffplay, but the process of encoding a frame nearly mirrors the process of decoding it, so once you have decoding working, it should make more sense.

这样你就可以开始解码了。在编码方面,请看ffmpeg.c。它比ffplay更大、更复杂,但编码帧的过程几乎反映了解码的过程,因此,一旦解码工作完成,它应该更有意义。

#2


3  

i was searching for a FFmpeg tutorial and php but i found the following are the best places to learn it with any language a book i think it's the only book about FFmpeg FFmpeg Basics: Multimedia handling with a fast audio and video encoder

我在寻找一个FFmpeg教程和php,但我发现以下是用任何语言学习它的最好地方。我认为这是唯一一本关于FFmpeg FFmpeg基础的书:用快速音频和视频编码器进行多媒体处理

http://www.amazon.com/FFmpeg-Basics-Multimedia-handling-encoder/dp/1479327832/ref=sr_1_12?ie=UTF8&qid=1357356672&sr=8-12&keywords=ffmpeg

http://www.amazon.com/FFmpeg-Basics-Multimedia-handling-encoder/dp/1479327832/ref=sr_1_12?ie=UTF8&qid=1357356672&sr=8-12&keywords=ffmpeg

我在哪里可以找到C/ c++ FFmpeg扩展教程?

and the scond place is http://ffmpeg.org/documentation.html

scond的位置是http://ffmpeg.org/document.html