[問題] OpenCV 無法讀取 .mp4檔

看板C_and_CPP (C/C++)作者 (永不補考)時間12年前 (2013/12/10 21:01), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Win7 + VS2008 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) OpenCV 2.1 問題(Question): 如題,我沒有辦法讀取.mp4檔, 餵入的資料(Input): .mp4檔 錯誤結果(Wrong Output): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x78cf80]multiple edit list entries, a/v desync might occur, patch welcome Last message repeated 1 times Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler. You may try recompiling using gcc >= 4.2. Do not report crashes to FFmpeg developers. 程式碼(Code):(請善用置底文網頁, 記得排版) CvCapture * cap=cvCaptureFromAVI(AviFileName); IplImage * frame = cvQueryFrame(cap); 補充說明(Supplement): 感謝各位大大了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.40.104.19

12/10 22:50, , 1F

12/10 22:51, , 2F
利用以上網站提供的ffdshow 這個codec可以解決這個問題
12/10 22:51, 2F

12/11 00:14, , 3F
推自問自答
12/11 00:14, 3F
文章代碼(AID): #1Ifn35Uf (C_and_CPP)
文章代碼(AID): #1Ifn35Uf (C_and_CPP)