Opened 13 years ago

Closed 13 years ago

#476 closed enhancement (fixed)

Option to ignore subtitles

Reported by: Alex Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Steps that will reproduce the problem?

  1. ffmpeg -i file.mkv -map 0 -sn ./file.m4v

What is the expected result?
To have no subtitles in the output

What happens instead?
In this case an error (see below)

Possible workaround:
ffmpeg -i file.mkv -map 0:0 -map 0:1 ./file.m4v

Any additional information:

$ /usr/local/bin/ffmpeg -y -i test.mkv -vcodec copy -map 0 -sn test.m4v 
ffmpeg version git-2011-09-16-41215fd, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 16 2011 08:10:56 with clang 2.1 (tags/Apple/clang-163.7.1)
  configuration: --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
  libavutil    51. 16. 0 / 51. 16. 0
  libavcodec   53. 15. 0 / 53. 15. 0
  libavformat  53. 12. 0 / 53. 12. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 42. 0 /  2. 42. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
Input #0, matroska,webm, from 'test.mkv':
  Duration: 01:36:13.37, start: 0.000000, bitrate: 17585 kb/s
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
    Metadata:
      title           : Englisch
    Stream #0.2(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s
    Metadata:
      title           : German
    Stream #0.3(eng): Subtitle: text (default)
    Metadata:
      title           : Englisch
Output #0, ipod, to 'test.m4v':
    Stream #0.0(eng): Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 90k tbn, 23.98 tbc (default)
    Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1(side), s16, 128 kb/s (default)
    Metadata:
      title           : Englisch
    Stream #0.2(ger): Audio: aac, 48000 Hz, 5.1(side), s16, 128 kb/s
    Metadata:
      title           : German
    Stream #0.3(eng): Subtitle: none (default)
    Metadata:
      title           : Englisch
Stream mapping:
  Stream #0.0 -> #0.0 (copy)
  Stream #0.1 -> #0.1 (dca -> libfaac)
  Stream #0.2 -> #0.2 (dca -> libfaac)
  Stream #0.3 -> #0.3 (? -> ?)
Encoder (codec none) not found for output stream #0.3
$

Change History (3)

comment:1 by Alex, 13 years ago

Also "-map 0 -scodec copy", "-map 0 -scodec xsub", or "-map 0 -scodec dvdsub" doesn't work with this file. But this might be an issue for another ticket. Actually, I just want to convert all my files w/o subtitles but with all audio tracks automatically.

comment:2 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedFFmpeg
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

The correct syntax is now "-map 0 -map -0:s", but I would also prefer if "-map 0 -sn" would work...

comment:3 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.