Opened 12 years ago

Closed 12 years ago

#2021 closed defect (invalid)

Probing find an extra invalid stream (MJPEG)

Reported by: jyavenard Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mov
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

$ ./ffmpeg -i Fantastic\ Four\ -\ Rise\ of\ the\ Silver\ Surfer\ -\ Trailer.mp4 
ffmpeg version N-47762-g75b3911 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 12 2012 22:53:06 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --disable-doc
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 79.102 / 54. 79.102
  libavformat    54. 49.101 / 54. 49.101
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 26.102 /  3. 26.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f905301f800] stream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f905301f800] max_analyze_duration 5000000 reached at 5005000
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/videos/High-Def/Trailers/Fantastic Four - Rise of the Silver Surfer - Trailer.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2007-05-21 06:31:32
    genre           : Trailer
    artist          : 20th Century Fox
    title           : Fantastic Four: Rise of the Silver Surfer - Theatrical Trailer
    date            : 2007
  Duration: 00:02:09.24, start: 0.000000, bitrate: 5843 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x544, 5714 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2007-05-21 06:31:32
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 123 kb/s
    Metadata:
      creation_time   : 2007-05-21 06:32:18
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: mjpeg, yuvj420p, 510x755 [SAR 100:100 DAR 102:151], 90k tbr, 90k tbn, 90k tbc
At least one output file must be specified

Note the extra mjpeg stream #0.2..

I have a few trailers (all from Apple web site) that are now showing this extra stream. This wasn't detected a few months back.

Attachments (1)

Fantastic Four - Rise of the Silver Surfer - Trailer.mp4 (2.3 MB ) - added by jyavenard 12 years ago.
Fantastic 4 trailer

Change History (4)

by jyavenard, 12 years ago

Fantastic 4 trailer

comment:1 by Carl Eugen Hoyos, 12 years ago

Why do you think stream 0:2 is invalid?
The following works as expected here, does it fail for you?

$ ffmpeg -i Fantastic\ Four\ -\ Rise\ of\ the\ Silver\ Surfer\ -\ Trailer.mp4 -map 0:2 out.png

comment:2 by jyavenard, 12 years ago

You're right.

The MJPEG stream was never detected previously. This cause mythtv to display a black screen as it selects the MJPEG stream for playback

You can close this ticket then...

comment:3 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat
Keywords: mov added
Resolution: invalid
Status: newclosed
Version: unspecifiedgit-master

av_find_best_stream() should help to decide which stream to play.

Note: See TracTickets for help on using tickets.