problem with parallel cv::VideoWriter (Bug #870)


Added by Andrey Morozov about 14 years ago. Updated about 12 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:highgui-video
Target version:2.4.4
Affected version:2.4.2 Operating System:
Difficulty: HW Platform:
Pull request:

Description

Method VideoWriter::operator <<(Mat image) is hanging, when writing to multiple files at once. (load 1 core is 100%)


test_opencv.cpp (1.1 kB) Andrey Morozov, 2011-02-07 03:10 pm


History

Updated by Andrey Morozov about 14 years ago

This problem occurs on Windows. On Linux this problem not exist

Updated by Andrey Morozov about 14 years ago

reason of the lock is ffmpeg is not called( because it is not found )
it is needed to put opencv_ffmpeg220.dll with executable file

You can't create several cv::VideoWriter in parallel ( because it is needed to lock some function in ffmpeg )

Updated by Andrey Morozov over 13 years ago

  • Status deleted (Open)

Updated by Alexander Shishkov about 13 years ago

  • Description changed from Method [[VideoWriter]]::operator <<(Mat image) is hanging, when writing... to Method VideoWriter::operator <<(Mat image) is hanging, when writing to ... More

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Alexander Shishkov almost 13 years ago

  • Status set to Open

Updated by Alexander Shishkov almost 13 years ago

  • Assignee deleted (Andrey Morozov)

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Updated by Vadim Pisarevsky over 12 years ago

looks like we have to add global mutex to the call to video writer. Of course, that would slow down things quite a bit

  • Target version deleted ()

Updated by Ilya Lavrenov over 12 years ago

  • Assignee set to Ilya Lavrenov

Updated by Kirill Kornyakov over 12 years ago

  • Target version set to Next Hackathon

Updated by Vadim Pisarevsky about 12 years ago

yet another duplicated report about parallel video readers & writers, probably addressed already. need to verify

  • Target version deleted (Next Hackathon)

Updated by Vadim Pisarevsky about 12 years ago

  • Assignee deleted (Ilya Lavrenov)

Updated by Vadim Pisarevsky about 12 years ago

  • Assignee set to Vadim Pisarevsky

Updated by Vadim Pisarevsky about 12 years ago

in 2.4 branch we have tests for parallel readers and writers. they pass, at least on MacOSX 10.8, Xcode 4.5 and ffmpeg 1.1.1

  • Affected version set to 2.4.2
  • Status changed from Open to Done

Updated by Oleg Sklyarov about 12 years ago

Also checked this issues using attached test_opencv.cpp on latest code from 2.4. Not reproduced.

Updated by Kirill Kornyakov about 12 years ago

  • Target version set to 2.4.4

Also available in: Atom PDF