Opened 11 years ago

Closed 8 years ago

#3668 closed defect (fixed)

Issues with subtitles removal

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

Description

on 2 different machines i'm running
ffmpeg version N-62765-g8120668 and
ffmpeg version 2.2.1

I have a file with streams specified like this:

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480 [SAR 853:720 DAR 853:480], 1525 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 296 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler

I tried removing the subtitles with 3 different ways:

ffmpeg -i input.m4v -c copy -sn -f mp4 out.m4v

ffmpeg -i input.m4v -c copy -map 0 -map -0:s -f mp4 out.m4v

ffmpeg -i input.m4v -map 0:0 -c:v copy -map 0:1 -c:a:0 copy -f mp4 out.m4v

None of them works the subtitle is always in out.mp4.

I tried with an older version bundled in the mp4tools:

ffmpeg version 2.0.2-tessus

And with this version the subtitle is removed with the 3 different ways.

here is the full output of the command #1:

ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 22 2014 08:59:59 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Users_Data/fbelang1/Downloads/Focus T25/tmp/Focus T25 - Disc 00 - Alpha - Ab Intervals.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 512
    compatible_brands: isomiso2avc1
    title           : Ab Intervals
    encoder         : Lavf55.37.101
  Duration: 00:29:30.87, start: 0.000000, bitrate: 1830 kb/s
    Chapter #0.0: start 0.000000, end 21.455000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.455000, end 148.548000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 148.548000, end 217.751000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 217.751000, end 343.310000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 343.310000, end 517.884000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 517.884000, end 701.701000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 701.701000, end 879.612000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 879.612000, end 1061.694000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 1061.694000, end 1243.142000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 1243.142000, end 1430.763000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1430.763000, end 1550.516000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1550.516000, end 1770.869000
    Metadata:
      title           : Chapter 13
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480 [SAR 853:720 DAR 853:480], 1525 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 296 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler
File 'output.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : M4V
    minor_version   : 512
    compatible_brands: isomiso2avc1
    title           : Ab Intervals
    encoder         : Lavf55.33.100
    Chapter #0.0: start 0.000000, end 21.455000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.455000, end 148.548000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 148.548000, end 217.751000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 217.751000, end 343.310000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 343.310000, end 517.884000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 517.884000, end 701.701000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 701.701000, end 879.612000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 879.612000, end 1061.694000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 1061.694000, end 1243.142000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 1243.142000, end 1430.763000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1430.763000, end 1550.516000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1550.516000, end 1770.869000
    Metadata:
      title           : Chapter 13
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SAR 853:720 DAR 853:480], q=2-31, 1525 kb/s, 29.97 fps, 90k tbn, 90k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 296 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=53073 fps=2090 q=-1.0 Lsize=  395638kB time=00:29:30.85 bitrate=1830.2kbits/s
video:329674kB audio:64068kB subtitle:0 data:0 global headers:0kB muxing overhead 0.481462%

here is the probe of the output:

ffprobe version 2.2.1 Copyright (c) 2007-2014 the FFmpeg developers
  built on Apr 22 2014 08:59:59 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Ab Intervals
    encoder         : Lavf55.33.100
  Duration: 00:29:30.87, start: 0.000000, bitrate: 1830 kb/s
    Chapter #0.0: start 0.000000, end 21.455000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.455000, end 148.548000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 148.548000, end 217.751000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 217.751000, end 343.310000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 343.310000, end 517.884000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 517.884000, end 701.701000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 701.701000, end 879.612000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 879.612000, end 1061.694000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 1061.694000, end 1243.142000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 1243.142000, end 1430.763000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1430.763000, end 1550.516000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1550.516000, end 1770.869000
    Metadata:
      title           : Chapter 13
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480 [SAR 853:720 DAR 853:480], 1525 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 296 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler

As you see the stream mapping is done only with 0:0 and 0:1 , but the stream 0:2 (which is the subtitles) is still in the output.

Thanks

Attachments (1)

input.m4v (1.3 MB ) - added by inkubux 11 years ago.
Input file

Download all attachments as: .zip

Change History (11)

in reply to:  description comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: mov added; subtitles removed

Replying to inkubux:

ffmpeg version N-62765-g8120668

Why didn't you post this output?

Please provide the input sample.

by inkubux, 11 years ago

Attachment: input.m4v added

Input file

comment:2 by inkubux, 11 years ago

Thanks for your response I've added more info to the ticket.

Here is the output of the ffmeg N-62765-g8120668:

ffmpeg
ffmpeg version N-62765-g8120668 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 28 2014 21:30:20 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl --enable-libfaac --enable-libtheora --enable-zlib --disable-shared --enable-libx264 --enable-version3 --enable-libschroedinger --enable-avfilter --enable-libspeex --enable-libopenjpeg --enable-libgsm --enable-postproc --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-ffplay --enable-pthreads --prefix=/usr/local --enable-x11grab --enable-runtime-cpudetect --enable-bzlib --enable-libdc1394 --enable-libvpx --enable-nonfree
  libavutil      52. 79.100 / 52. 79.100
  libavcodec     55. 59.100 / 55. 59.100
  libavformat    55. 37.101 / 55. 37.101
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  4.100 /  4.  4.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder

here is the command I ran:

ffmpeg -i input.m4v -c copy -sn -f mp4 output.m4v

here is the probe of the input:

ffprobe input.m4v
ffprobe version 2.2.1 Copyright (c) 2007-2014 the FFmpeg developers
  built on Apr 22 2014 08:59:59 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.m4v':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Cardio
    encoder         : Lavf55.33.100
  Duration: 00:28:21.67, start: 0.000000, bitrate: 6 kb/s
    Chapter #0.0: start 0.000000, end 21.154000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.154000, end 137.938000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 137.938000, end 261.228000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 261.228000, end 379.880000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 379.880000, end 497.664000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 497.664000, end 625.458000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 625.458000, end 738.204000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 738.204000, end 860.693000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 860.693000, end 980.813000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 980.813000, end 1104.136000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1104.136000, end 1223.956000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1223.956000, end 1343.809000
    Metadata:
      title           : Chapter 13
    Chapter #0.12: start 1343.809000, end 1402.468000
    Metadata:
      title           : Chapter 14
    Chapter #0.13: start 1402.468000, end 1543.542000
    Metadata:
      title           : Chapter 15
    Chapter #0.14: start 1543.542000, end 1701.667000
    Metadata:
      title           : Chapter 16
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 853:720 DAR 853:480], 947 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler

here is the probe of the output:

ffprobe output.m4v
ffprobe version 2.2.1 Copyright (c) 2007-2014 the FFmpeg developers
  built on Apr 22 2014 08:59:59 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.m4v':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Cardio
    encoder         : Lavf55.33.100
  Duration: 00:28:21.67, start: 0.000000, bitrate: 6 kb/s
    Chapter #0.0: start 0.000000, end 21.154000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.154000, end 137.938000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 137.938000, end 261.228000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 261.228000, end 379.880000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 379.880000, end 497.664000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 497.664000, end 625.458000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 625.458000, end 738.204000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 738.204000, end 860.693000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 860.693000, end 980.813000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 980.813000, end 1104.136000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1104.136000, end 1223.956000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1223.956000, end 1343.809000
    Metadata:
      title           : Chapter 13
    Chapter #0.12: start 1343.809000, end 1402.468000
    Metadata:
      title           : Chapter 14
    Chapter #0.13: start 1402.468000, end 1543.542000
    Metadata:
      title           : Chapter 15
    Chapter #0.14: start 1543.542000, end 1701.667000
    Metadata:
      title           : Chapter 16
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 853:720 DAR 853:480], 947 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler

comment:3 by inkubux, 11 years ago

I've also attached 2 files

input.m4v

output.m4v

Last edited 11 years ago by inkubux (previous) (diff)

comment:4 by inkubux, 11 years ago

here is another dump on the other machine with version N-62765-g8120668

ffmpeg -i input.m4v -c copy -sn -f mp4 output.m4v
ffmpeg version N-62765-g8120668 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 28 2014 21:30:20 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl --enable-libfaac --enable-libtheora --enable-zlib --disable-shared --enable-libx264 --enable-version3 --enable-libschroedinger --enable-avfilter --enable-libspeex --enable-libopenjpeg --enable-libgsm --enable-postproc --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-ffplay --enable-pthreads --prefix=/usr/local --enable-x11grab --enable-runtime-cpudetect --enable-bzlib --enable-libdc1394 --enable-libvpx --enable-nonfree
  libavutil      52. 79.100 / 52. 79.100
  libavcodec     55. 59.100 / 55. 59.100
  libavformat    55. 37.101 / 55. 37.101
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  4.100 /  4.  4.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.m4v':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Cardio
    encoder         : Lavf55.33.100
  Duration: 00:28:21.67, start: 0.000000, bitrate: 6 kb/s
    Chapter #0.0: start 0.000000, end 21.154000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.154000, end 137.938000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 137.938000, end 261.228000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 261.228000, end 379.880000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 379.880000, end 497.664000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 497.664000, end 625.458000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 625.458000, end 738.204000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 738.204000, end 860.693000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 860.693000, end 980.813000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 980.813000, end 1104.136000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1104.136000, end 1223.956000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1223.956000, end 1343.809000
    Metadata:
      title           : Chapter 13
    Chapter #0.12: start 1343.809000, end 1402.468000
    Metadata:
      title           : Chapter 14
    Chapter #0.13: start 1402.468000, end 1543.542000
    Metadata:
      title           : Chapter 15
    Chapter #0.14: start 1543.542000, end 1701.667000
    Metadata:
      title           : Chapter 16
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 853:720 DAR 853:480], 947 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler
Output #0, mp4, to 'output.m4v':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Cardio
    encoder         : Lavf55.37.101
    Chapter #0.0: start 0.000000, end 21.154000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.154000, end 137.938000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 137.938000, end 261.228000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 261.228000, end 379.880000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 379.880000, end 497.664000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 497.664000, end 625.458000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 625.458000, end 738.204000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 738.204000, end 860.693000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 860.693000, end 980.813000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 980.813000, end 1104.136000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1104.136000, end 1223.956000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1223.956000, end 1343.809000
    Metadata:
      title           : Chapter 13
    Chapter #0.12: start 1343.809000, end 1402.468000
    Metadata:
      title           : Chapter 14
    Chapter #0.13: start 1402.468000, end 1543.542000
    Metadata:
      title           : Chapter 15
    Chapter #0.14: start 1543.542000, end 1701.667000
    Metadata:
      title           : Chapter 16
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SAR 853:720 DAR 853:480], q=2-31, 947 kb/s, 29.97 fps, 30k tbn, 30k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  300 fps=0.0 q=-1.0 Lsize=    1326kB time=00:00:10.00 bitrate=1085.6kbits/s
video:1158kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.862108%

probe of the output:

ffprobe output.m4v
ffprobe version N-62765-g8120668 Copyright (c) 2007-2014 the FFmpeg developers
  built on Apr 28 2014 21:30:20 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl --enable-libfaac --enable-libtheora --enable-zlib --disable-shared --enable-libx264 --enable-version3 --enable-libschroedinger --enable-avfilter --enable-libspeex --enable-libopenjpeg --enable-libgsm --enable-postproc --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-ffplay --enable-pthreads --prefix=/usr/local --enable-x11grab --enable-runtime-cpudetect --enable-bzlib --enable-libdc1394 --enable-libvpx --enable-nonfree
  libavutil      52. 79.100 / 52. 79.100
  libavcodec     55. 59.100 / 55. 59.100
  libavformat    55. 37.101 / 55. 37.101
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  4.100 /  4.  4.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.m4v':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Cardio
    encoder         : Lavf55.37.101
  Duration: 00:28:21.67, start: 0.000000, bitrate: 6 kb/s
    Chapter #0.0: start 0.000000, end 21.154000
    Metadata:
      title           : Chapter 2
    Chapter #0.1: start 21.154000, end 137.938000
    Metadata:
      title           : Chapter 3
    Chapter #0.2: start 137.938000, end 261.228000
    Metadata:
      title           : Chapter 4
    Chapter #0.3: start 261.228000, end 379.880000
    Metadata:
      title           : Chapter 5
    Chapter #0.4: start 379.880000, end 497.664000
    Metadata:
      title           : Chapter 6
    Chapter #0.5: start 497.664000, end 625.458000
    Metadata:
      title           : Chapter 7
    Chapter #0.6: start 625.458000, end 738.204000
    Metadata:
      title           : Chapter 8
    Chapter #0.7: start 738.204000, end 860.693000
    Metadata:
      title           : Chapter 9
    Chapter #0.8: start 860.693000, end 980.813000
    Metadata:
      title           : Chapter 10
    Chapter #0.9: start 980.813000, end 1104.136000
    Metadata:
      title           : Chapter 11
    Chapter #0.10: start 1104.136000, end 1223.956000
    Metadata:
      title           : Chapter 12
    Chapter #0.11: start 1223.956000, end 1343.809000
    Metadata:
      title           : Chapter 13
    Chapter #0.12: start 1343.809000, end 1402.468000
    Metadata:
      title           : Chapter 14
    Chapter #0.13: start 1402.468000, end 1543.542000
    Metadata:
      title           : Chapter 15
    Chapter #0.14: start 1543.542000, end 1701.667000
    Metadata:
      title           : Chapter 16
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 853:720 DAR 853:480], 947 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler

comment:5 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavformat
Keywords: regression added

If there is an issue, it is a regression since 8d63aaed / db03cb37

But this may have been a bugfix (isom files behaved differently than mov files): Are you only worried because ffmpeg -i shows a subtitle stream or is anything wrong with the output file?

comment:6 by inkubux, 11 years ago

I'm worried since what I want is to actually remove the subtitles from the file. I have an automated process that converts and remove subtitles so they are compatible with my chromecast, But it does not work anymore with this version. In the meantime I can try to rollback to an older version like 2.0.0 until it's fixed.

Thanks a lot

in reply to:  6 comment:7 by Carl Eugen Hoyos, 11 years ago

Replying to inkubux:

I'm worried since what I want is to actually remove the subtitles from the file.

(Are there really subtitles in your input file? MPlayer does not show any afaict.)

You can use the following command:

$ ffmpeg -i input.m4v -map_chapters -1 -vcodec copy -acodec copy-f mp4 out.m4v

comment:8 by inkubux, 11 years ago

This is the weird thing ffprobe displays the subtitles:

Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler

Also my dlna server sees them and toggle transcoding (but is not powerful enough) since my chromecast does not support them.

Your command works thanks, although it removes chapters it also removed that resilient subtitle.

I finally decided to switch back to the 2.0.0 branch and compile ffmpeg by hand and it resolved the issue for me. So there is definetly a regression somewhere.

Thanks for your help.

in reply to:  8 comment:9 by Carl Eugen Hoyos, 11 years ago

Replying to inkubux:

I finally decided to switch back to the 2.0.0 branch and compile ffmpeg by hand and it resolved the issue for me.

Why don't you simply revert the offending commit?

comment:10 by Carl Eugen Hoyos, 8 years ago

Resolution: fixed
Status: newclosed

Mostly fixed by Roger Combs in 697400ea

Note: See TracTickets for help on using tickets.