Opened 4 years ago

Last modified 15 months ago

#3023 new defect

Information lost when remuxing DTS from MKV to MP4

Reported by: Nemesis7 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:
When remuxing a DTS 5.1 track from MKV to MP4, some data is lost; this causes Subler to think it's a DTS 2 ch track instead of a DTS 6 ch track. When remixing the same MKV file with Subler, the track is displayed as DTS 6 ch track. Basically some information is lost in the process.

How to reproduce:

ffmpeg version N-56468-g3409163-tessus Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 13 2013 13:39:57 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --enable-runtime-cpudetect
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 16.102 / 55. 16.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 84.100 /  3. 84.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mkv'.
Reading option '-sub_charenc' ... matched as AVOption 'sub_charenc' with argument 'ISO-8859-1'.
Reading option '-i' ... matched as input file with argument '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/The Croods 2013 720p BluRay DTS x264-DON.NL.srt'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:1'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:1'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:2'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:3'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:4'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:5'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1'.
Reading option '-map_metadata' ... matched as option 'map_metadata' (set metadata information of outfile from infile) with argument '0'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:a:0' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-c:a:1' ... matched as option 'c' (codec name) with argument 'aac'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '192k'.
Reading option '-strict' ... matched as AVOption 'strict' with argument '-2'.
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'mov_text'.
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'mov_text'.
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'mov_text'.
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'mov_text'.
Reading option '-metadata:s:s:4' ... matched as option 'metadata' (add metadata) with argument 'language=nld'.
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'mov_text'.
Reading option '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file /Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mkv.
Successfully parsed a group of options.
Opening an input file: /Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mkv.
[matroska,webm @ 0x102021a00] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
st:3 removing common factor 1000000 from timebase
st:4 removing common factor 1000000 from timebase
st:5 removing common factor 1000000 from timebase
[matroska,webm @ 0x102021a00] File position before avformat_find_stream_info() is 7691
[h264 @ 0x102039200] no picture 
[dca @ 0x102039800] Stream with high frequencies VQ coding
[matroska,webm @ 0x102021a00] All info found
[matroska,webm @ 0x102021a00] File position after avformat_find_stream_info() is 412157
Input #0, matroska,webm, from '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mkv':
  Metadata:
    creation_time   : 2013-10-02 21:30:15
  Duration: 00:00:12.43, start: 0.000000, bitrate: 5405 kb/s
    Chapter #0.0: start 0.000000, end 12.433000
    Metadata:
      title           : 00:00:00.000
    Stream #0:0(eng), 4, 1/1000: Video: h264 (High), yuv420p, 1280x544 [SAR 1:1 DAR 40:17], 1001/48000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : The Croods 2013 720p BluRay DTS x264-DON
    Stream #0:1(eng), 24, 1/1000: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      title           : English DTS 5.1
    Stream #0:2(eng), 0, 1/1000: Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(spa), 0, 1/1000: Subtitle: subrip
    Metadata:
      title           : Spanish
    Stream #0:4(por), 0, 1/1000: Subtitle: subrip
    Metadata:
      title           : Portuguese
    Stream #0:5(cze), 0, 1/1000: Subtitle: subrip
    Metadata:
      title           : Czech
Successfully opened the file.
Parsing a group of options: input file /Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/The Croods 2013 720p BluRay DTS x264-DON.NL.srt.
Successfully parsed a group of options.
Opening an input file: /Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/The Croods 2013 720p BluRay DTS x264-DON.NL.srt.
[srt @ 0x10203b600] Format srt probed with size=2048 and score=100
[srt @ 0x10203b600] File position before avformat_find_stream_info() is 52849
[srt @ 0x10203b600] All info found
[srt @ 0x10203b600] File position after avformat_find_stream_info() is 52849
Input #1, srt, from '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/The Croods 2013 720p BluRay DTS x264-DON.NL.srt':
  Duration: N/A, bitrate: N/A
    Stream #1:0, 0, 1/1000: Subtitle: subrip
Successfully opened the file.
Parsing a group of options: output file /Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mp4.
Applying option map (set input stream mapping) with argument 0:0.
Applying option map (set input stream mapping) with argument 0:1.
    Last message repeated 1 times
Applying option map (set input stream mapping) with argument 0:2.
Applying option map (set input stream mapping) with argument 0:3.
Applying option map (set input stream mapping) with argument 0:4.
Applying option map (set input stream mapping) with argument 0:5.
Applying option map (set input stream mapping) with argument 1.
Applying option map_metadata (set metadata information of outfile from infile) with argument 0.
Applying option c:v (codec name) with argument copy.
Applying option c:a:0 (codec name) with argument copy.
Applying option ac (set number of audio channels) with argument 2.
Applying option c:a:1 (codec name) with argument aac.
Applying option b:a (video bitrate (please use -b:v)) with argument 192k.
Applying option c:s (codec name) with argument mov_text.
    Last message repeated 3 times
Applying option metadata:s:s:4 (add metadata) with argument language=nld.
Applying option c:s (codec name) with argument mov_text.
Successfully parsed a group of options.
Opening an output file: /Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mp4.
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:1 @ 0x101c03ec0] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:1 @ 0x101c03ec0] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:1 @ 0x101c03ec0] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:1 @ 0x101c03ec0] Setting 'channel_layout' to value '0x60f'
[graph 0 input from stream 0:1 @ 0x101c03ec0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
[audio format for output stream 0:2 @ 0x101c2c2c0] Setting 'sample_fmts' to value 'fltp'
[audio format for output stream 0:2 @ 0x101c2c2c0] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[audio format for output stream 0:2 @ 0x101c2c2c0] Setting 'channel_layouts' to value '0x3'
[audio format for output stream 0:2 @ 0x101c2c2c0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:2'
[AVFilterGraph @ 0x101c03c60] query_formats: 4 queried, 7 merged, 3 already done, 0 delayed
1.000000 0.000000 0.707107 0.000000 0.707107 0.000000 
0.000000 1.000000 0.707107 0.000000 0.000000 0.707107 
[auto-inserted resampler 0 @ 0x101c2cc00] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
[mp4 @ 0x102022000] track 1: codec frame size is not set
Output #0, mp4, to '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mp4':
  Metadata:
    creation_time   : 2013-10-02 21:30:15
    encoder         : Lavf55.16.102
    Chapter #0.0: start 0.000000, end 12.433000
    Metadata:
      title           : 00:00:00.000
    Stream #0:0(eng), 0, 1/16000: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x544 [SAR 1:1 DAR 40:17], 1/1000, q=2-31, 23.98 fps, 16k tbn, 1k tbc (default)
    Metadata:
      title           : The Croods 2013 720p BluRay DTS x264-DON
    Stream #0:1(eng), 0, 1/48000: Audio: dts ([169][0][0][0] / 0x00A9), 48000 Hz, 5.1(side), 192 kb/s (default)
    Metadata:
      title           : English DTS 5.1
    Stream #0:2(eng), 0, 1/48000: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : English DTS 5.1
    Stream #0:3(eng), 0, 1/1000: Subtitle: mov_text ([8][0][0][0] / 0x0008) (default)
    Metadata:
      title           : English
    Stream #0:4(spa), 0, 1/1000: Subtitle: mov_text ([8][0][0][0] / 0x0008)
    Metadata:
      title           : Spanish
    Stream #0:5(por), 0, 1/1000: Subtitle: mov_text ([8][0][0][0] / 0x0008)
    Metadata:
      title           : Portuguese
    Stream #0:6(cze), 0, 1/1000: Subtitle: mov_text ([8][0][0][0] / 0x0008)
    Metadata:
      title           : Czech
    Stream #0:7(nld), 0, 1/1000: Subtitle: mov_text ([8][0][0][0] / 0x0008)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:1 -> #0:2 (dca -> aac)
  Stream #0:2 -> #0:3 (subrip -> mov_text)
  Stream #0:3 -> #0:4 (subrip -> mov_text)
  Stream #0:4 -> #0:5 (subrip -> mov_text)
  Stream #0:5 -> #0:6 (subrip -> mov_text)
  Stream #1:0 -> #0:7 (subrip -> mov_text)
Press [q] to stop, [?] for help
[dca @ 0x102039800] Stream with high frequencies VQ coding
[mp4 @ 0x102022000] flushing with 4 noninterleaved
    Last message repeated 24 times
[mp4 @ 0x102022000] flushing with 1 noninterleaved
    Last message repeated 21 times
[mp4 @ 0x102022000] flushing with 2 noninterleaved
[mp4 @ 0x102022000] flushing with 3 noninterleaved
[mp4 @ 0x102022000] flushing with 4 noninterleaved
    Last message repeated 5 times
[mp4 @ 0x102022000] flushing with 3 noninterleaved
    Last message repeated 14 times
[mp4 @ 0x102022000] flushing with 4 noninterleaved
    Last message repeated 494 times
[mp4 @ 0x102022000] flushing with 1 noninterleaved
    Last message repeated 26 times
[mp4 @ 0x102022000] flushing with 2 noninterleaved
[mp4 @ 0x102022000] flushing with 3 noninterleaved
    Last message repeated 21 times
[mp4 @ 0x102022000] flushing with 4 noninterleaved
    Last message repeated 398 times
[mp4 @ 0x102022000] flushing with 1 noninterleaved
[mp4 @ 0x102022000] flushing with 2 noninterleaved
[mp4 @ 0x102022000] flushing with 3 noninterleaved
[mp4 @ 0x102022000] flushing with 4 noninterleaved
    Last message repeated 382 times
[mp4 @ 0x102022000] flushing with 3 noninterleaved
    Last message repeated 49 times
[mp4 @ 0x102022000] flushing with 4 noninterleaved
    Last message repeated 562 times
[output stream 0:2 @ 0x101c04120] EOF on sink link output stream 0:2:default.
No more output streams to write to, finishing.e=00:22:06.76 bitrate=  52.2kbits/s    
[aac @ 0x102023200] Trying to remove 512 more samples than there are in the queue
frame=  298 fps=0.0 q=-1.0 Lsize=    8559kB time=01:30:02.80 bitrate=  13.0kbits/s    
video:5903kB audio:2581kB subtitle:25 global headers:0kB muxing overhead 0.587230%
1907 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x101c2bea0] Statistics: 232 seeks, 3061 writeouts
[AVIOContext @ 0x101c045c0] Statistics: 8400624 bytes read, 0 seeks
[AVIOContext @ 0x101c06ea0] Statistics: 52849 bytes read, 0 seeks

The MP4Box output:

* Movie Info *
	Timescale 1000 - Duration 01:30:07.826
	9 track(s)
	Fragmented File: no
	File Brand isom - version 512
	Created: GMT Wed Oct  2 21:30:15 2013

File has no MPEG4 IOD/OD

Chapters:
	Chapter #1 - 00:00:00.000 - "00:00:00.000"

iTunes Info:
	Encoder Software: Lavf55.16.102

Track # 1 Info - TrackID 1 - TimeScale 16000 - Media Duration 00:00:12.428
Track has 1 edit lists: track duration is 00:00:12.429
Media Info: Language "English" - Type "vide:avc1" - 298 samples
Visual Track layout: x=0 y=0 width=1280 height=544
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1280 x 544
	AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
	NAL Unit length bits: 32
	Pixel Aspect Ratio 1:1 - Indicated track size 1280 x 544
	Chroma format 0 - Luma bit depth 8 - chroma bit depth 8
Self-synchronized

Track # 2 Info - TrackID 2 - TimeScale 48000 - Media Duration 00:00:12.425
Track has 2 edit lists: track duration is 00:00:12.431
Media Info: Language "English" - Type "soun:mp4a" - 1165 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0xa9
Synchronized on stream 1
Alternate Group ID 1

Track # 3 Info - TrackID 3 - TimeScale 48000 - Media Duration 00:00:12.447
Track has 1 edit lists: track duration is 00:00:12.431
Media Info: Language "English" - Type "soun:mp4a" - 584 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
Alternate Group ID 1

Track # 4 Info - TrackID 4 - TimeScale 1000 - Media Duration 00:00:11.506
Track has 1 edit lists: track duration is 00:00:11.506
Media Info: Language "English" - Type "sbtl:tx3g" - 7 samples
Timed Text - Size 0 x 0 - Translation X=0 Y=0 - Layer 0
Alternate Group ID 3

Track # 5 Info - TrackID 5 - TimeScale 1000 - Media Duration 00:00:10.764
Track has 1 edit lists: track duration is 00:00:10.764
Track is disabled
Media Info: Language "Spanish; Castilian" - Type "sbtl:tx3g" - 9 samples
Timed Text - Size 0 x 0 - Translation X=0 Y=0 - Layer 0
Alternate Group ID 3

Track # 6 Info - TrackID 6 - TimeScale 1000 - Media Duration 00:00:11.506
Track has 1 edit lists: track duration is 00:00:11.506
Track is disabled
Media Info: Language "Portuguese" - Type "sbtl:tx3g" - 7 samples
Timed Text - Size 0 x 0 - Translation X=0 Y=0 - Layer 0
Alternate Group ID 3

Track # 7 Info - TrackID 7 - TimeScale 1000 - Media Duration 00:00:11.506
Track has 1 edit lists: track duration is 00:00:11.506
Track is disabled
Media Info: Language "Unknown" - Type "sbtl:tx3g" - 7 samples
Timed Text - Size 0 x 0 - Translation X=0 Y=0 - Layer 0
Alternate Group ID 3

Track # 8 Info - TrackID 8 - TimeScale 1000 - Media Duration 01:30:07.826
Track has 1 edit lists: track duration is 01:30:07.826
Track is disabled
Media Info: Language "Dutch; Flemish" - Type "sbtl:tx3g" - 1459 samples
Timed Text - Size 0 x 0 - Translation X=0 Y=0 - Layer 0
Alternate Group ID 3

Track # 9 Info - TrackID 9 - TimeScale 1000 - Media Duration 00:00:12.433
Track has 1 edit lists: track duration is 00:00:12.433
Track is disabled
Media Info: Language "Undetermined" - Type "text:text" - 1 samples
Timed Text - Size 0 x 0 - Translation X=0 Y=0 - Layer 0

Change History (10)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from FFmpeg to undetermined
  • Keywords mov added; dts metadata removed

How does the output of ffmpeg -i "/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mp4" look like?

comment:2 Changed 4 years ago by Nemesis7

The output of ffmpeg looks like this:

ffmpeg version N-56468-g3409163-tessus Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 13 2013 13:39:57 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --enable-runtime-cpudetect
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 16.102 / 55. 16.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 84.100 /  3. 84.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[dca @ 0x10202a600] Number of channels changed in DCA decoder (2 -> 6)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/Nemesis7/Movies/The Croods 2013 720p BluRay DTS x264-DON/sample.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2013-10-02 21:30:15
    encoder         : Lavf55.16.102
  Duration: 01:30:07.83, start: 0.015333, bitrate: 12 kb/s
    Chapter #0.0: start 0.000000, end 12.433000
    Metadata:
      title           : 00:00:00.000
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x544 [SAR 1:1 DAR 40:17], 3890 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 47.95 tbc (default)
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: dts (DTS) (mp4a / 0x6134706D), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SoundHandler
    Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SoundHandler
    Stream #0:3(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SubtitleHandler
    Stream #0:4(spa): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SubtitleHandler
    Stream #0:5(por): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SubtitleHandler
    Stream #0:6(cze): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SubtitleHandler
    Stream #0:7(nld): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SubtitleHandler
    Stream #0:8(eng): Subtitle: mov_text (text / 0x74786574), 0 kb/s
    Metadata:
      creation_time   : 2013-10-02 21:30:15
      handler_name    : SubtitleHandler
At least one output file must be specified

However some info is lost in the process even though the output might suggest everything is fine. I can provide an mp4 sample created by Subler.

comment:3 Changed 4 years ago by cehoyos

Why do you think that some information is lost? In any case, please provide both an input sample and an mp4 sample that contains the missing information.

A question that is not necessarily related to this ticket: How do you playback DTS in mov? And does that not work with the FFmpeg-created file?

comment:4 Changed 4 years ago by Nemesis7

Here are the sample files (MKV source, ffmpeg MP4 version, Subler MP4 version): http://we.tl/pWsO6BZGsR

I think information is lost because Subler does recognise the Subler file as containing a 6 ch DTS audio, but the FFMpeg file only containing a 2 ch DTS track.

DTS is played back in Plex or VLC, both work fine.

comment:5 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Version changed from unspecified to git-master

I think I can reproduce the fact that "5.1" is not written to the file but could you explain which player fails for the FFmpeg-produced file (or what exactly your problem with the file is)?

comment:6 Changed 4 years ago by Nemesis7

The FFMpeg file plays fine, but for now I can only conclude that there is a difference (e.g. "5.1" not being written to the file) between an MKV converted by Subler and an MKV converted by FFMpeg. I'd like to automate the conversion process using FFMpeg, but I'd like the correct tags/metadata to be written to the MP4 file so that the track is not recognised as a 2.0 track.

comment:7 Changed 4 years ago by cehoyos

What recognizes the FFmpeg-produced mp4 file as 2.0?

comment:9 Changed 15 months ago by richardpl

Samples are gone.

comment:10 Changed 15 months ago by cehoyos

The fact that a channel count of "2" is written to the stsd atom can be reproduced with:

$ ffmpeg -i fate-suite/dts/dts.ts -acodec copy out.mp4
Note: See TracTickets for help on using tickets.