Opened 3 years ago

Closed 2 years ago

#3074 closed enhancement (fixed)

Missing support of muxing EAC3 inside mp4 container

Reported by: trox Owned by: benoit
Priority: wish Component: avformat
Version: git-master Keywords: eac3 mov
Cc: tsinghal18@gmail.com, ramitbhalla@gmail.com Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
I am unable to mux H.264+EAC3 inside mp4 container.
Whenever I try to run following command, I get below error-
[mp4 @ 0000000004cba1e0] track 1: could not find tag, codec not currently supported in container
Output #0, mp4, to 'out.mp4':

Metadata:

encoder : Lavf55.19.102
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 12800 tbn, 25 tbc
Stream #0:1: Audio: eac3, 48000 Hz, stereo, fltp, 192 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (mp2 -> eac3)

Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred

I got to know from ffmpeg forum- "FFmpeg's mov/isom muxer does not contain a function mov_write_eac3_tag() which is necessary to write compliant files"

How to reproduce:

% ffmpeg -i source.mpg -acodec eac3 -vcodec libx264 out.mp4
ffmpeg version N-57147-ga06dcde Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 14 2013 18:09:04 with gcc 4.8.1 (GCC)

Change History (5)

comment:1 Changed 3 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords eac3 mov added
  • Priority changed from important to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

For future tickets: Please always add an as-simple-as-possible command line together with the complete, uncut console output.

$ ffmpeg -i fate-suite/eac3/csi_miami_stereo_128_spx.eac3 -acodec copy out.mp4
ffmpeg version N-57330-g610a8b1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 23 2013 09:07:07 with icc (ICC) 14.0.0 20130728
  configuration: --cc=/opt/intel/composer_xe_2013_sp1.0.080/bin/intel64/icc --enable-gpl --enable-x11grab
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 37.102 / 55. 37.102
  libavformat    55. 19.103 / 55. 19.103
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 89.100 /  3. 89.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[eac3 @ 0x3aaa880] Estimating duration from bitrate, this may be inaccurate
Input #0, eac3, from 'fate-suite/eac3/csi_miami_stereo_128_spx.eac3':
  Duration: 00:00:20.85, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: eac3, 48000 Hz, stereo, fltp, 128 kb/s
[mp4 @ 0x3aac000] track 0: could not find tag, codec not currently supported in container
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder         : Lavf55.19.103
    Stream #0:0: Audio: eac3, 48000 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted

comment:2 Changed 3 years ago by cehoyos

  • Summary changed from Missing support of muxing EAC3+H.264 inside mp4 container to Missing support of muxing EAC3 inside mp4 container

comment:3 Changed 2 years ago by ramitbhalla

  • Cc ramitbhalla@gmail.com added

Am facing similar issue while copy remuxing a TS to a MP4 which contains eac3

[mp4 @ 03a24000] Could not find tag for codec eac3 in stream #1, codec not currently supported in container

comment:4 Changed 2 years ago by benoit

  • Owner set to benoit

comment:5 Changed 2 years ago by cehoyos

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

I believe this was implemented by Benoit Fouet in 5e6fd132ff5611b8af2d3c7506f0328858fc3de1

Note: See TracTickets for help on using tickets.