Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4938 closed defect (fixed)

mp3 demux from mp4 results in unplayable file

Reported by: projectsymphony Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mov mp3 regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Sample file: https://www.dropbox.com/s/nue55vybs3lnh2v/2014-11-30%2023.59.04-hb.mp4?dl=0

Quicktime plays video and not audio, Chrome and Firefox play video and audio, ffplay and ffmpeg do not play neither video nor audio.

$ ffplay 2014-11-30\ 23.59.04-hb.mp4 
ffplay version N-75284-g65b96ab Copyright (c) 2003-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --cc=clang --enable-debug --disable-optimizations --disable-yasm --disable-asm --enable-libfdk-aac --enable-version3 --enable-nonfree --enable-gpl --disable-doc --enable-libmp3lame --enable-openssl --enable-libfreetype --enable-avresample --enable-libopenjpeg --enable-libx264
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  1.100 / 57.  1.100
  libavformat    57.  0.100 / 57.  0.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  3.100 /  6.  3.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2014-11-30 23.59.04-hb.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2015-10-16 16:23:40
    date            : 2014-11-30T23:59:04+0100
    encoder         : HandBrake 0.10.2 2015061100
  Duration: 00:00:10.16, start: 0.000000, bitrate: 4140 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 4078 kb/s, 120.16 fps, 120 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2015-10-16 16:23:40
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, s16p, 72 kb/s (default)
    Metadata:
      creation_time   : 2015-10-16 16:23:40
      handler_name    : Mono
[mp3 @ 0x7fe6bc80e600] Header missing
    Last message repeated 120 times

If you streamcopy the audio stream you get several warnings about invalid audio packets

[mp3 @ 0x7ffacb010400] Audio packet of size 960 (starting with 25001174...) is invalid, writing it anyway.

related to https://forum.handbrake.fr/viewtopic.php?f=12&t=33345&p=155672#p155672

Attachments (1)

2014-11-30 23.59.04-hb_cut.mp4 (2.4 MB) - added by cehoyos 4 years ago.

Change History (4)

comment:1 Changed 4 years ago by cehoyos

  • Keywords mov mp3 regression added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

For future tickets: Please remember not to provide FFplay output if the issue is reproducible with FFmpeg.

Regression since ae215e2b / 6ec688e1

$ ffmpeg -i 2014-11-30\ 23.59.04-hb.mp4 out.wav
ffmpeg version N-76053-g2b5dda3 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-gnutls
  libavutil      55.  4.100 / 55.  4.100
  libavcodec     57.  7.100 / 57.  7.100
  libavformat    57.  8.100 / 57.  8.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 11.100 /  6. 11.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2014-11-30 23.59.04-hb.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2015-10-16 16:23:40
    date            : 2014-11-30T23:59:04+0100
    encoder         : HandBrake 0.10.2 2015061100
  Duration: 00:00:10.16, start: 0.000000, bitrate: 4140 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 4078 kb/s, 120.16 fps, 120 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2015-10-16 16:23:40
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono, s16p, 72 kb/s (default)
    Metadata:
      creation_time   : 2015-10-16 16:23:40
      handler_name    : Mono
Output #0, wav, to 'out.wav':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    ICRD            : 2014-11-30T23:59:04+0100
    ISFT            : Lavf57.8.100
    Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s (default)
    Metadata:
      creation_time   : 2015-10-16 16:23:40
      handler_name    : Mono
      encoder         : Lavc57.7.100 pcm_s16le
Stream mapping:
  Stream #0:1 -> #0:0 (mp3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[mp3 @ 0x261e2a0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input            

...

[mp3 @ 0x261e2a0] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
size=      16kB time=00:00:08.88 bitrate=  14.6kbits/s
video:0kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.694444%
Conversion failed!

The output file is unplayable / only a second long.

Changed 4 years ago by cehoyos

comment:2 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:3 Changed 4 years ago by projectsymphony

tested, working as intended, thanks

Note: See TracTickets for help on using tickets.