FFMPEG工作太慢 我目前正在研究VisualStudioC++项目,现在我必须从Raspberry pi那里接收一个流,我实际使用FFMPEG,问题是它在计算机方面工作得慢,这是我在RabsBuriPi:中使用的代码。 ffserver -f /etc/ffserver.conf & ffmpeg -v 2 -r 20 -s 640x480 -f v4l2 -i /dev/video0 http://localhost:8090/webcam.ffm

FFMPEG工作太慢 我目前正在研究VisualStudioC++项目,现在我必须从Raspberry pi那里接收一个流,我实际使用FFMPEG,问题是它在计算机方面工作得慢,这是我在RabsBuriPi:中使用的代码。 ffserver -f /etc/ffserver.conf & ffmpeg -v 2 -r 20 -s 640x480 -f v4l2 -i /dev/video0 http://localhost:8090/webcam.ffm,c++,visual-studio-2013,ffmpeg,C++,Visual Studio 2013,Ffmpeg,在计算机方面: void Display(){ //open the video stream and make sure it's opened if (!cap.open(videoStreamAddress)) { std::cout << "Error opening video stream or file" << std::endl; } for (;;) { if (!cap.read(frame)) { std::

在计算机方面:

void Display(){


//open the video stream and make sure it's opened
if (!cap.open(videoStreamAddress)) {
    std::cout << "Error opening video stream or file" << std::endl;

}


for (;;) {
    if (!cap.read(frame)) {
        std::cout << "No frame" << std::endl;
        cv::waitKey(1);
    }
    cv::imshow("Output Window", frame);
    if (cv::waitKey(1) >= 0) break;
}
void Display(){
//打开视频流并确保其已打开
如果(!cap.open(视频流地址)){

std::请记住这是一个覆盆子,它本身并不快。你是对的,但我认为这是非常慢的!如果你尝试用VLC打开流会怎么样?我已经尝试过了,但它也太慢了