Opened 13 years ago

Closed 11 years ago

#756 closed enhancement (fixed)

Support muxing dvdsub into isom

Reported by: Carl Eugen Hoyos Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: mov dvdsub
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

http://samples.mplayerhq.hu/MPEG-4/NeroRecodeSample-MP4/NeroRecodeSample.mp4
Subtitles play fine with ffplay (and MPlayer), after remuxing, the subtitles disappear.

$ ffmpeg -i NeroRecodeSample.mp4 -vcodec copy -acodec copy -scodec copy out.mp4
ffmpeg version N-35771-g7862bd3, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 15 2011 00:09:26 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --enable-libtheora
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 44. 0 / 53. 44. 0
  libavformat  53. 25. 0 / 53. 25. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0

Seems stream 2 codec frame rate differs from container frame rate: 25.00 (25000/1000) -> 25.00 (25/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'NeroRecodeSample.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: mp41ndsh
    creation_time   : 2004-07-28 21:34:12
  Duration: 00:01:44.16, start: 0.000000, bitrate: 2383 kb/s
    Chapter #0.0: start 0.000000, end 104.160000
    Metadata:
      title           : Kapitel 23
    Stream #0:0(fre): Data: none (mp4s / 0x7334706D)
    Metadata:
      handler_name    :
      creation_time   : 2004-07-28 21:34:12
    Stream #0:1(fre): Data: none (mp4s / 0x7334706D)
    Metadata:
      handler_name    :
      creation_time   : 2004-07-28 21:34:12
    Stream #0:2(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 1977 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc
    Metadata:
      handler_name    :
      creation_time   : 2004-07-28 21:34:12
    Stream #0:3(ger): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, s16, 192 kb/s
    Metadata:
      handler_name    : Nero Digital Audio 5.1-Kanal Deuts
      creation_time   : 2004-07-28 21:34:12
    Stream #0:4(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, s16, 195 kb/s
    Metadata:
      handler_name    : Nero Digital Audio 5.1-Kanal Englis
      creation_time   : 2004-07-28 21:34:12
    Stream #0:5(ger): Subtitle: dvd_subtitle (mp4s / 0x7334706D)
    Metadata:
      handler_name    : Deutsch
      creation_time   : 2004-07-28 21:34:12
    Stream #0:6(eng): Subtitle: dvd_subtitle (mp4s / 0x7334706D)
    Metadata:
      handler_name    : Englisch
      creation_time   : 2004-07-28 21:34:12
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: mp41ndsh
    creation_time   : 2004-07-28 21:34:12
    encoder         : Lavf53.25.0
    Chapter #0.0: start 0.000000, end 104.160000
    Metadata:
      title           : Kapitel 23
    Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 720x304 [SAR 1:1 DAR 45:19], q=2-31, 1977 kb/s, 25 fps, 25k tbn, 25k tbc
    Metadata:
      handler_name    :
      creation_time   : 2004-07-28 21:34:12
    Stream #0:1(ger): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 5.1, 192 kb/s
    Metadata:
      handler_name    : Nero Digital Audio 5.1-Kanal Deuts
      creation_time   : 2004-07-28 21:34:12
    Stream #0:2(ger): Subtitle: dvd_subtitle ([224][0][0][0] / 0x00E0)
    Metadata:
      handler_name    : Deutsch
      creation_time   : 2004-07-28 21:34:12
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
  Stream #0:3 -> #0:1 (copy)
  Stream #0:5 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame= 2603 fps=  0 q=-1.0 Lsize=   27710kB time=00:01:11.08 bitrate=3193.6kbits/s
video:25129kB audio:2451kB global headers:0kB muxing overhead 0.469011%
$ ffmpeg -i out.mp4
ffmpeg -i out.mp4
ffmpeg version N-35771-g7862bd3, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 15 2011 00:09:26 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --enable-libtheora
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 44. 0 / 53. 44. 0
  libavformat  53. 25. 0 / 53. 25. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x13a87a0] multiple edit list entries, a/v desync might occur, patch welcome

Seems stream 0 codec frame rate differs from container frame rate: 25.00 (25000/1000) -> 25.00 (25/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 2004-07-28 21:34:12
    encoder         : Lavf53.25.0
  Duration: 00:01:44.16, start: 0.000000, bitrate: 2179 kb/s
    Chapter #0.0: start 0.000000, end 104.160000
    Metadata:
      title           : Kapitel 23
    Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 1977 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc
    Metadata:
      creation_time   : 2004-07-28 21:34:12
      handler_name    : VideoHandler
    Stream #0:1(ger): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, s16, 192 kb/s
    Metadata:
      creation_time   : 2004-07-28 21:34:12
      handler_name    : SoundHandler
    Stream #0:2(ger): Data: none ([224][0][0][0] / 0x00E0)
    Metadata:
      creation_time   : 2004-07-28 21:34:12
      handler_name    :
At least one output file must be specified

Change History (2)

comment:1 by Elon Musk, 13 years ago

I think it is not muxed because dvd_subtitle(E0) is not standard.

comment:2 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: newclosed

Implemented by John Stebbins.

Note: See TracTickets for help on using tickets.