[FFmpeg-trac] #10538(ffmpeg:new): Removal of Input Stream 2 Typ Other not possible

FFmpeg trac at avcodec.org
Sat Aug 26 21:07:52 EEST 2023


#10538: Removal of Input Stream 2 Typ Other not possible
-------------------------------------+-------------------------------------
             Reporter:  Martin       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:
             Keywords:  ffmpeg -map  |  unspecified
  -tmcd - dn                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I'am trying to remove a Stream Type Other from a MPEG-4 - Codec ID: mp42
 file, but all options:

 -dn
 -write_tmcd 0
 -map_metadata -1
 -map -0:d
 -map -0:2
 -map -0:d:handler_name:TimeCodeHandler

 fail. I converted the file to QuickTime - DNxHR HQX but failled as well.

 ffprobe - show_streams shows:

 Unsupported codec with id 0 for input stream 2
 [STREAM]
 index=0
 codec_name=h264
 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 profile=High 4:2:2 Intra
 codec_type=video
 codec_tag_string=avc1
 codec_tag=0x31637661
 width=3840
 height=2160
 coded_width=3840
 coded_height=2160
 closed_captions=0
 has_b_frames=0
 sample_aspect_ratio=1:1
 display_aspect_ratio=16:9
 pix_fmt=yuv422p10le
 level=51
 color_range=tv
 color_space=bt2020nc
 color_transfer=arib-std-b67
 color_primaries=bt2020
 chroma_location=left
 field_order=unknown
 refs=1
 is_avc=true
 nal_length_size=4
 id=N/A
 r_frame_rate=25/1
 avg_frame_rate=25/1
 time_base=1/90000
 start_pts=0
 start_time=0.000000
 duration_ts=6480000
 duration=72.000000
 bit_rate=399909234
 max_bit_rate=N/A
 bits_per_raw_sample=10
 nb_frames=1800
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=1
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 DISPOSITION:timed_thumbnails=0
 TAG:creation_time=2022-12-24T14:52:55.000000Z
 TAG:language=und
 TAG:vendor_id=[0][0][0][0]
 TAG:timecode=13:11:37:01
 [/STREAM]
 [STREAM]
 index=1
 codec_name=pcm_s16be
 codec_long_name=PCM signed 16-bit big-endian
 profile=unknown
 codec_type=audio
 codec_tag_string=twos
 codec_tag=0x736f7774
 sample_fmt=s16
 sample_rate=48000
 channels=2
 channel_layout=unknown
 bits_per_sample=16
 id=N/A
 r_frame_rate=0/0
 avg_frame_rate=0/0
 time_base=1/48000
 start_pts=0
 start_time=0.000000
 duration_ts=3456000
 duration=72.000000
 bit_rate=1536000
 max_bit_rate=N/A
 bits_per_raw_sample=N/A
 nb_frames=3456000
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=1
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 DISPOSITION:timed_thumbnails=0
 TAG:creation_time=2022-12-24T14:52:55.000000Z
 TAG:language=und
 TAG:vendor_id=pana
 TAG:timecode=13:11:37:01
 [/STREAM]
 [STREAM]
 index=2
 codec_name=unknown
 codec_long_name=unknown
 profile=unknown
 codec_type=data
 codec_tag_string=tmcd
 codec_tag=0x64636d74
 id=N/A
 r_frame_rate=0/0
 avg_frame_rate=90000/3600
 time_base=1/90000
 start_pts=0
 start_time=0.000000
 duration_ts=6480000
 duration=72.000000
 bit_rate=800
 max_bit_rate=N/A
 bits_per_raw_sample=N/A
 nb_frames=1800
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=1
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 DISPOSITION:timed_thumbnails=0
 TAG:creation_time=2022-12-24T14:52:55.000000Z
 TAG:language=und
 TAG:timecode=13:11:37:01
 [/STREAM]

 ffprobe -show_data reveals:

 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1099196.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf58.76.100
   Duration: 00:01:12.00, start: 0.000000, bitrate: 729809 kb/s
   Stream #0:0: Video: dnxhd (DNXHR HQX) (AVdh / 0x68645641),
 yuv422p10le(tv, bt2020nc/bt2020/arib-std-b67), 3840x2160, 728268 kb/s, SAR
 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
     Metadata:
       handler_name    : VideoHandler
       vendor_id       : FFMP
       encoder         : Lavc58.134.100 dnxhd
       timecode        : 13:11:37:01
   Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo,
 s16, 1536 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
       vendor_id       : [0][0][0][0]
   Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
     Metadata:
       handler_name    : TimeCodeHandler
       timecode        : 13:11:37:01


 Using Mediainfo I'll get the following info for the "Unsupported codec
 with id 0 for input stream 2":

 Other
 ID                                       : 3
 Type                                     : Time code
 Format                                   : QuickTime TC
 Duration                                 : 1 min 12 s
 Bit rate mode                            : Constant
 Frame rate                               : 25.000 FPS
 Time code of first frame                 : 13:11:37:01
 Time code of last frame                  : 13:12:49:00
 Time code, stripped                      : No
 Encoded date                             : 2022-12-24 14:52:55 UTC
 Tagged date                              : 2022-12-24 14:52:55 UTC

 Why doesn't it remove that stream 2?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10538>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list