make videowriter multi-thread compatible (Patch #1352)


Added by sebastien wybo over 13 years ago. Updated about 12 years ago.


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

100%

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

Description

It is currently not possible to perform simultaneous writes from different threads
It would be interesting to have such a possibility although I'm not sure ffmpeg authorizes this


sjbyun-ffmpeg-patch.patch (2.3 kB) Kirill Kornyakov, 2012-07-05 08:40 am


Issue hierarchy

Patch #1352: make videowriter multi-thread compatibleDoneVadim Pisarevsky

Bugfix #1369: Multi-threaded FFMPEG accesses crashDoneVadim Pisarevsky


History

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from High to Normal
  • Target version deleted ()

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Kirill Kornyakov over 12 years ago

A patch from SungJoo Byun. We should verify it.

Hi~ =
I believe that this bug can be solved by adding av_lockmgr_register().=
It is FFMPEG's lock mechanism. =
Please, refer to attached patch =
Regards,
Vadim

  • Tracker changed from Bug to Patch
  • File sjbyun-ffmpeg-patch.patch added

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Updated by Vadim Pisarevsky over 12 years ago

I've seen a similar patch already; need to check

  • 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 Kirill Kornyakov over 12 years ago

  • Priority changed from Low to Normal

Updated by Vadim Pisarevsky about 12 years ago

once again, this seems to be fixed 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

looks like now the problem is solved using a solution very similar to the proposed. If it still does not work, please, reopen the ticket

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

Updated by Vadim Pisarevsky about 12 years ago

  • % Done changed from 0 to 100

Updated by Kirill Kornyakov about 12 years ago

  • Target version set to 2.4.4

Also available in: Atom PDF