原创 Windows下使用Cygwin編譯安裝FFmpeg

一、Cygwin環境搭建 首先下載Cygwin,下載地址爲https://cygwin.com/install.html,根據Windows具體是32位還是64位的選擇下載。 下載好之後就是進行安裝,安裝過程就是一直點擊下一步就好

原创 FFmpeg音頻編碼示例

#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <libavcodec/avcodec.h> #include <libavutil/ch

原创 Windows下CLion搭建FFmpeg開發環境

1.ffmpeg下載地址:https://ffmpeg.zeranoe.com/builds/,選擇4.2.2 Windows 32-bit shared版本和4.2.2 Windows 32-bit dev版本進行下載。 2.

原创 FFmpeg使用RTMP拉流示例

#include <stdio.h> #include "libavformat/avformat.h" #include "libavutil/time.h" #define USE_H264BSF 0 int main(i

原创 FFmpeg視頻解碼示例

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <libavformat/avformat.h> #include <libavcodec/

原创 FFmpeg從流媒體文件中抽取出音頻

#include <stdio.h> #include <libavutil/log.h> #include <libavformat/avio.h> #include <libavformat/avformat.h> #def

原创 FFmpeg音頻解碼示例

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <libavutil/time.h> #include <libavutil/frame.h

原创 FFmpeg使用RTMP推流示例

#include <stdio.h> #include <libavformat/avformat.h> #include <libavutil/mathematics.h> #include <libavutil/time.h>

原创 FFmpeg實現pcm播放器示例

#include <stdio.h> #include <SDL.h> #include <stdlib.h> #define BLOCK_SIZE 4096000 static Uint8 *audio_buf = NULL

原创 FFmpeg從流媒體文件中抽取出視頻

#include <stdio.h> #include <libavutil/log.h> #include <libavformat/avio.h> #include <libavformat/avformat.h> #if

原创 FFmpeg視頻編碼示例

#include <stdio.h> #include <stdlib.h> #include <libavcodec/avcodec.h> #include <libavutil/opt.h> #include <libav

原创 最大堆MaxHeap

最大堆MaxHeap 二叉堆是一顆完全二叉樹,完全二叉樹就是把元素排序排列成樹的形狀,最大堆中某個節點的值總是不大於其父節點的值。 最大堆的實現 public class MaxHeap<E extends Comparable<

原创 映射Map

映射Map 映射是存儲(鍵,值)數據對的數據結構 根據鍵(Key),尋找值(Value) 非常容易使用鏈表或者二分搜索樹實現 public interface Map<K,V> { void add(K key,V va

原创 二分搜索樹BinarySearchTree

二叉樹 二叉樹和鏈表一樣,是動態數據結構 class Node{ E e; Node left;//左孩子 Node right;//右孩子 二叉樹具有唯一根節點 二叉樹每個節點最多有兩個孩子 左右孩子均爲空的節點稱爲葉子

原创 鏈表LinkedList

鏈表LinkedList 真正的動態數據結構,也是最簡單的動態數據結構,有助於我們更加深入的理解引用(指針),遞歸 數據存儲在“節點”(Node)中 Class Node{ E e; Node next; } 優點:真正的動