Opened 4 years ago

Closed 4 years ago

#4694 closed enhancement (needs_more_info)

FR: Support both distinct video format FourCCs in an AVI header

Reported by: LigH Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: avi
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

There are two distinct FourCCs in an AVI header describing the video stream:

  1. the description of the video codec used to create the video stream (first appearance, just after the "vids" chunk ID);
  1. the description of the video codec required to decode the video stream (second appearance in the "biCompression" field of the BITMAPINFOHEADER structure in the Stream Format chunk)

There are several cases of differences between them, e.g.:

  • xvid / XVID
  • divx / DX50 (to separate DivX 4 from DivX 5+)
  • hfyu / FFDS (for the YV12 variant of Huffyuf, first supported in ffvfw)

Players should only be interested in the second (bitmap compression) FourCC, but you can't be sure that there are no players which would check both for supported values and refure playback if not both are as expected. Therefore I hope you can support forcing both FourCCs if desired, maybe in the format: -vtag divx:DX50

Change History (2)

comment:1 Changed 4 years ago by cehoyos

  • Keywords avi added
  • Version changed from unspecified to git-master

Please provide an example for which this feature would be needed.

comment:2 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Resolution set to needs_more_info
  • Status changed from new to closed

Please reopen if you can explain a use-case for this feature-request.

Note: See TracTickets for help on using tickets.