logo
  • 教程列表
  • SO官方文檔
  • 閱讀媒體
    • 從記憶中讀書
    • 從檔案中讀取
    • 從格式上下文中讀取
    • 從 IOContext 中的 IStream 中讀取
    • 在 IOContext 中的 IStream 中尋找
  1. StackOverflow 文件
  2. ffmpeg 教程
  3. 閱讀媒體
  4. 從檔案中讀取

從檔案中讀取

Created: November-22, 2018

從本地檔案系統開啟媒體檔案。

AVFormatContext *formatContext;

// Open the file
if(avformat_open_file(&formatContext, "path/to/file.ogg", NULL, NULL) < 0){
    // Error opening file
}

// Do something with the file

// Free resources
avformat_close_input(&formatContext);
  • 從格式上下文中讀取
  • 從記憶中讀書

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明