xj6832873 2014-12-22 02:57 采纳率: 0%
浏览 7456

ffmpeg中怎么编程实现获取视频中某指定的一帧?

ffmpeg中怎么编程实现获取视频中某指定的一帧?不是通过遍历,而是直接跳到指定帧,ffmpeg中有没有有相关的函数?

  • 写回答

1条回答 默认 最新

  • 老马过河hhh 2015-08-11 10:09
    关注

    /**

    • 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 av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags);
    评论

报告相同问题?

悬赏问题

  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制