12 の FFmpeg ベースのビデオ プレーヤー: seek

シークは選手のよくある動作であり、選手の質を計る重要なサインの一つでもあります。

1.効果

以下は、再生中の 4K ビデオに対するシーク操作です。

2.原則

1.of_seek_frame

FFmpeg は、シーク操作を実行する av_seek_frame 関数を提供します。関数の定義は次のとおりです。

/**
 * Seek to the keyframe at timestamp.
 * 'timestamp' in 'stream_index'.
 *
 * @param s media file handle
 * @param stream_index If stream_index is (-1), a default
 * stream is selected, and timestamp is automatically converted
 * from AV_TIME_BASE units to the stream specific time_base.
 * @param timestamp Timestamp in AVStream.time_base units
 *        or, if no stream is specified, in AV_TIME_BASE units.
 * @param flags flags which select direction and seeking mode
 * @return >= 0 on success
 */
int a

Supongo que te gusta

Origin blog.csdn.net/caoshangpa/article/details/124831341
Recomendado
Clasificación