我正在制作一个分段程序来干预ffmpeg的write_frame函数,并将输出数据写入不同的文件。每个分段文件包含大约3秒的视频片段。
守则如下:
1 - Get transcoded packet
2 - Check if it contains key frame data, if yes goto 3.
3 - Check the duration of current segment, if it exceed 3 seconds, goto 4
4 - Close file, and create new segment, write packet to segment fi
我在测试我的RxJava代码时遇到了困难,因为它似乎总是在测试中运行,而没有等待调用订阅()时应该执行的执行。
这是用于测试的仓库:
public class Repository<T extends Entity> {
private final DataSource<T> remoteDataSource;
private final DataSource<T> localDataSource;
public Repository(DataSource<T> remoteDataSource, DataSource