Opened 4 weeks ago

Last modified 4 weeks ago

#11277 new defect

FFMPEG does not support J2C output

Reported by: Pierre-Anthony Lemieux Owned by:
Priority: important Component: avformat
Version: unspecified Keywords: j2k
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg -i blah.mj2 -frames:v 1 -vcodec copy -y blah.j2c results in a mjp2 file (starts with 0000000c6a5020200d0a870a) instead of a file that contains a bare codestream (starts with FF4F).

Change History (4)

comment:1 by Balling, 4 weeks ago

Erm, with you file it produces the magic MIME FF4FFF5100, as it should.

Version 0, edited 4 weeks ago by Balling (next)

comment:3 by Pierre-Anthony Lemieux, 4 weeks ago

Yes, this is because MXF wraps J2Cs :)

comment:4 by Pierre-Anthony Lemieux, 4 weeks ago

The fundamental issue AFAIK is that FFMPEG treats MJ2, JP2 and J2C as the same format, which they are not. This is not a problem on input, because the J2K parser accepts all of them. It is a problem on output when copying the codestream since a MJ2 is not the same as a J2C file.

Note: See TracTickets for help on using tickets.