[FFmpeg-user] Can't eliminate unwanted streams

Jim Worrall jworrall at mac.com
Tue Nov 8 14:45:08 EET 2016


I’m editing videos from an old Digital8 camcorder in Final Cut Pro, saving as a master file (mov), then transcoding with ffmpeg into mp4.

The problem is ffmpeg copies two unwanted streams:

Stream #0:2(und): Data: none (tmcd / 0x64636D74) (default) and 

Stream #0:3(und): Data: bin_data (text / 0x74786574), 0 kb/s (this one was labeled a subtitle file by an earlier version of ffmpeg, and indeed that's what it is - FCP insists on making chapter titles into useless subtitles).  

These unwanted streams can't be prevented by normal means: mapping the streams I WANT, negative mapping the streams I DON'T want, or using -dn and -sn.  When I updated to current git, -write_tmcd 0 disabled the data/tmcd stream.  I still can't get rid of the subtitle/text (now data/text) stream.

I don't understand why the usual options don't work to eliminate these two streams.  During the attempt, the ffmpeg output doesn’t show the remaining unwanted stream, but ffprobe of the output file shows it is still there.

Here is the mov from FCP.  Streams 0:2 and 0:3 are the ones I want to drop:

JimsMBP:Home jim$ ffprobe /Users/jim/Media/Home/GHS\ Band\ Concerts\ 2005-2006.mov 

ffprobe version N-82286-gef6a786 Copyright (c) 2007-2016 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-nonfree --enable-gpl --enable-version3 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libgsm --enable-libvpx --enable-libfdk-aac --enable-libvorbis --enable-libass --enable-libfreetype --enable-libfontconfig --enable-libfribidi --disable-outdevs --disable-ffserver --disable-network
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 66.101 / 57. 66.101
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jim/Media/Home/GHS Band Concerts 2005-2006.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2016-11-06T14:06:46.000000Z
    com.apple.quicktime.keywords: GHS Band Concerts 2005-09-23_2006-3-2_5-11_12-14_?
    com.apple.quicktime.description: Concerts from late 2005 through 2006
    com.apple.quicktime.author: Jim
    com.apple.quicktime.displayname: GHS Band Concerts 2005-2006
    com.apple.quicktime.title: GHS Band Concerts 2005-2006
  Duration: 00:23:32.31, start: 0.000000, bitrate: 49617 kb/s
    Chapter #0:0: start 17.751067, end 434.467367
    Metadata:
      title           : 2005 Sept. 23 at WSC
    Chapter #0:1: start 434.467367, end 631.430800
    Metadata:
      title           : 2006 March 2 Concert
    Chapter #0:2: start 631.430800, end 1111.777333
    Metadata:
      title           : 2006 May 11 in Gym
    Chapter #0:3: start 1111.777333, end 1412.310900
    Metadata:
      title           : 2006 Dec. 14 Concert
    Stream #0:0(und): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709, progressive), 720x540, 47259 kb/s, SAR 1:1 DAR 4:3, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
    Metadata:
      creation_time   : 2016-11-06T14:06:46.000000Z
      handler_name    : Core Media Data Handler
      encoder         : Apple ProRes 422
      timecode        : 00:00:00:00
    Stream #0:1(und): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2016-11-06T14:06:46.000000Z
      handler_name    : Core Media Data Handler
    Stream #0:2(und): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2016-11-06T14:06:46.000000Z
      handler_name    : Core Media Data Handler
      timecode        : 00:00:00:00
    Stream #0:3(und): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      creation_time   : 2016-11-06T14:06:46.000000Z
      handler_name    : Core Media Data Handler
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 100359 for input stream 3

After transcoding with ffmpeg, here is one of many attempts to get rid of the streams, copying the video and audio.  Now it’s giving an error, not even seeing the unwanted streams:

JimsMBP:Home jim$ ffmpeg -i out.mp4 -c copy -map -0:2 -map -0:3 out2.mp4

ffmpeg version N-82286-gef6a786 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-nonfree --enable-gpl --enable-version3 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libgsm --enable-libvpx --enable-libfdk-aac --enable-libvorbis --enable-libass --enable-libfreetype --enable-libfontconfig --enable-libfribidi --disable-outdevs --disable-ffserver --disable-network
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 66.101 / 57. 66.101
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.33.100
  Duration: 00:23:32.40, start: 0.000000, bitrate: 1636 kb/s
    Chapter #0:0: start 0.000000, end 434.467000
    Metadata:
      title           : 2005 Sept. 23 at WSC
    Chapter #0:1: start 434.467000, end 631.431000
    Metadata:
      title           : 2006 March 2 Concert
    Chapter #0:2: start 631.431000, end 1111.777000
    Metadata:
      title           : 2006 May 11 in Gym
    Chapter #0:3: start 1111.777000, end 1394.560000
    Metadata:
      title           : 2006 Dec. 14 Concert
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x540 [SAR 1:1 DAR 4:3], 1500 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      timecode        : 00:00:00:00
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Data: bin_data (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler
    Stream #0:3(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      handler_name    : TimeCodeHandler
      timecode        : 00:00:00:00
Stream map '0:2' matches no streams.
To ignore this, add a trailing '?' to the map.




More information about the ffmpeg-user mailing list