2014-09-03 40 views
14

Tôi nhận được lỗi ffmpeg bị hỏng trong khi VideoWrite sử dụng codec X264 Fourcc. Tôi đã cài đặt tất cả các phụ thuộc. Tôi có thể sửa chữa vấn đề này. Mã mẫu mà tôi đã sử dụng như sau.bị hỏng ffmpeg cài đặt mặc định phát hiện

VideoWriter oVideoWriter ("path.mp4", CV_FOURCC('X','2','6','4'), 15, frameSize, false); 

Hệ điều hành: Ubuntu 14.04 64-bit

Lỗi

Console:

[libx264 @ 0x8d6220] broken ffmpeg default settings detected 
[libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium) 
[libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile> 
[libx264 @ 0x8d6220] speed presets are listed in x264 --help 
[libx264 @ 0x8d6220] profile is optional; x264 defaults to high 
Could not open codec 'libx264': Unspecified errorOpenCV Error: Unsupported format or combination of formats (Your version of Gstreamer doesn't support this codec acutally or needed plugin missing.) in CvVideoWriter_GStreamer::open, file /home/mbox140/Development/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp, line 518 
terminate called after throwing an instance of 'cv::Exception' 
    what(): /home/mbox140/Development/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp:518: error: (-210) Your version of Gstreamer doesn't support this codec acutally or needed plugin missing. in function CvVideoWriter_GStreamer::open 

Đề nghị cho tôi bất kỳ giải pháp cho việc này.

+1

Lệnh 'ffmpeg' thực tế (nếu sử dụng công cụ cli chứ không phải API)? Đầu ra console/log 'ffmpeg' thực tế, đầy đủ là gì? – LordNeckbeard

+0

@LordNeckbeard Tôi đã cập nhật câu hỏi của mình với nhật ký bảng điều khiển, Vui lòng xem trong số – Ramakrishna

+0

Vui lòng hiển thị đầu ra bàn điều khiển ** hoàn chỉnh ** và lệnh quá nếu có thể. – LordNeckbeard

Trả lời

0

cho các lỗi:

[libx264 @ 0x8d6220] broken ffmpeg default settings detected 
[libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium) 
[libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile> 
[libx264 @ 0x8d6220] speed presets are listed in x264 --help 
[libx264 @ 0x8d6220] profile is optional; x264 defaults to high 

bạn có thể cần lệnh -vpre perset (ví dụ -vpre nhanh). có thể bạn libx264 quá cũ. Tôi gặp lỗi tương tự khi sử dụng ffmpeg được xây dựng vào năm 2014.

Các vấn đề liên quan