VideoWriter YUV RAW video encoding error (Bug #1413)


Added by marmottus - over 13 years ago. Updated over 12 years ago.


Status:Cancelled Start date:
Priority:High Due date:
Assignee:Alexander Shishkov % Done:

0%

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

Description

In revision 5569, Raw video encoding format has been changed due to several user requests (codec_pix_fmt has been set to input_pix_fmt for CODEC_ID_RAWVIDEO case).

But when I'm trying to record a video from my camera in YUV Raw format (IYUV fourcc for example), the video is encoded in BGR24 and when I'm trying to read it with mplayer, it reads it as YUV format and output video is distorted. On standard output when trying with IYUV fourcc, I get this.

Output #0, avi, to 'foo.avi':
Stream #0.0: Video: rawvideo, bgr24, 640x480, q=2-31, 19660 kb/s, 90k tbn, 30 tbc

In cap_ffmepg.ccp, when recording in YUV format with RGB input, we should not use input fourcc but still do codec_pix_fmt = PIX_FMT_YUV420P when input format is different as output format for YUV output.


Related issues

duplicates Bug #1400: raw video broken since r5569 Done
duplicated by Bug #1624: incorrect video after VideoWriter with CV_FOURCC_DEFAULT Cancelled 2012-02-27

Associated revisions

Revision 260b283f
Added by Roman Donchenko over 11 years ago

Merge pull request #1413 from melody-rain:2.4_kalman_filter

History

Updated by sebastien wybo over 13 years ago

same problem here impossible to save raw videos that can be correctly read back either by openCV or any other video reader actually

  • Status deleted (Open)

Updated by Alexander Shishkov almost 13 years ago

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

Updated by Alexander Shishkov almost 13 years ago

Duplicate of #1400

  • Status set to Cancelled

Updated by Alexander Shishkov almost 13 years ago

  • Assignee changed from Alexander Reshetnikov to Alexander Shishkov

Updated by Alexander Shishkov almost 13 years ago

  • Target version set to 2.4.0

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Also available in: Atom PDF