有人知道如何在Android上使用FFMPEG将YUV420帧转换为H.264吗?
我已经用NDK在Android上移植了FFMPEG,我只是不知道如何使用它.赞赏源代码.
测试温度B.h
#ifndef TESTTEMPB_H_
#define TESTTEMPB_H_
#include <string>
using namespace std;
namespace ddl_lib {
class TestTempB {
public:
TestTempB();
virtual ~TestTempB();
template<class ... Args>
void callCommandB(const string&, const uint32_t*, Args ...);
template<class ... Args>
void callCommandA(const string&, Args ...);
};
} /* namespace ddl_lib */
#endif /* TESTTEMPB_H_ */
Run Code Online (Sandbox Code Playgroud)
TestTempB.cpp
#include "TestTempB.h"
#include "TestTempA.h"
#include "stdint.h"
#include <iostream>
namespace ddl_lib {
TestTempB::TestTempB() {
// TODO Auto-generated constructor stub
}
TestTempB::~TestTempB() {
// TODO Auto-generated destructor stub
}
template<class ... Args>
void …
Run Code Online (Sandbox Code Playgroud)