Opened 11 years ago

Last modified 13 months ago

#5 reopened defect

jp2k muxed into mov by FFmpeg can't be played by QuickTime

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: j2k mov roundup
Cc: ami_stuff@o2.pl Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

(issue 2656)
incoming/jpeg2000_to_quicktime_unplayable/bbb_jp2_qt.mov can be decoded with FFmpeg (and played with MPlayer, ffplay shows a black window for me), remuxing the video with FFmpeg leads to a file that can be decoded with FFmpeg (and played with MPlayer, ffplay shows a black window), but the original file plays fine with QuickTime, the copy shows only a black window.

$ ffmpeg -i bbb_jp2_qt.mov -vcodec copy out.mov
FFmpeg version git-N-28405-gb33fa8a, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar 11 2011 00:24:29 with gcc 4.4.5
  configuration: --cc=/usr/local/gcc-4.4.5/bin/gcc --enable-gpl --enable-libopenjpeg
  libavutil    50. 39. 0 / 50. 39. 0
  libavcodec   52.113. 2 / 52.113. 2
  libavformat  52.102. 0 / 52.102. 0
  libavdevice  52.  3. 0 / 52.  3. 0
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bbb_jp2_qt.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-03-09 22:39:50
  Duration: 00:00:03.33, start: 0.000000, bitrate: 23584 kb/s
    Stream #0.0(eng): Video: libopenjpeg, rgb24, 640x360, 23581 kb/s, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Metadata:
      creation_time   : 2011-03-09 22:39:50
Output #0, mov, to 'out.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2011-03-09 22:39:50
    encoder         : Lavf52.102.0
    Stream #0.0(eng): Video: mjp2 / 0x32706A6D, rgb24, 640x360, q=2-31, 23581 kb/s, 24 tbn, 24 tbc
    Metadata:
      creation_time   : 2011-03-09 22:39:50
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   80 fps=  0 q=-1.0 Lsize=    9597kB time=3.33 bitrate=23584.6kbits/s
video:9595kB audio:0kB global headers:0kB muxing overhead 0.013923%

Attachments (2)

bbb_jp2_qt_cut.mov (2.4 MB ) - added by Carl Eugen Hoyos 10 years ago.
j2k.mov (1.4 KB ) - added by ami_stuff 10 years ago.

Change History (14)

comment:1 by Carl Eugen Hoyos, 10 years ago

Keywords: j2k mov added
Status: newopen

by Carl Eugen Hoyos, 10 years ago

Attachment: bbb_jp2_qt_cut.mov added

comment:2 by ami_stuff, 10 years ago

the same problem with attached j2k.mov file (less data to analize),

output from:

ffmpeg -i j2k.mov -vcodec copy j2k_ff.mov

is unplayable by qt (black window)

by ami_stuff, 10 years ago

Attachment: j2k.mov added

comment:3 by ami_stuff, 10 years ago

Cc: ami_stuff@o2.pl added

comment:4 by ami_stuff, 9 years ago

What's interesting the output from:

ffmpeg -i test.bmp -strict -2 -vcodec j2k out.mov

decodes correctly in QT, the same remuxed file:

ffmpeg -i out.mov -vcodec copy -strict -2 out2.mov

but libopenjpeg's output fails (black window):

ffmpeg -i test.bmp -vcodec libopenjpeg out.mov

comment:5 by Carl Eugen Hoyos, 9 years ago

Keywords: roundup added

comment:6 by Elon Musk, 9 years ago

This still happens? Why?

comment:7 by Michael Niedermayer, 6 years ago

Owner: Michael Niedermayer removed

in reply to:  4 comment:8 by ami_stuff, 5 years ago

Replying to ami_stuff:

What's interesting the output from:

ffmpeg -i test.bmp -strict -2 -vcodec j2k out.mov

decodes correctly in QT, the same remuxed file:

ffmpeg -i out.mov -vcodec copy -strict -2 out2.mov

but libopenjpeg's output fails (black window):

ffmpeg -i test.bmp -vcodec libopenjpeg out.mov

hmm currently quicktime doesn't like neither of this - black screen with everything

Last edited 5 years ago by ami_stuff (previous) (diff)

comment:9 by emcodem, 13 months ago

Reproduced by developer: unset
Resolution: worksforme
Status: openclosed

No Black screen anymore using recent version, can i just close such old tickets that are not reproduceable anymore and years old?

comment:10 by Balling, 13 months ago

Resolution: worksforme
Status: closedreopened

Reproduceable here. It also prints this:

[mov,mp4,m4a,3gp,3g2,mj2 @ 00000274800ade80] Packet corrupt (stream = 0, dts = 31).
bbb_jp2_qt_cut.mov: corrupt input packet in stream 0

The problem here is that windows QuickTime does not even play original file. So is VLC. Only MPC that is using ffmpeg can present the file.

Last edited 13 months ago by Balling (previous) (diff)

comment:11 by Elon Musk, 13 months ago

Resolution: fixed
Status: reopenedclosed

comment:12 by Carl Eugen Hoyos, 13 months ago

Resolution: fixed
Status: closedreopened
Version: gitgit-master

Still reproducible with current FFmpeg git head.

Note: See TracTickets for help on using tickets.