Opened 13 years ago

Closed 13 years ago

#647 closed enhancement (fixed)

Add support for -dn (to disable data streams)

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

Description

Feature request for a method to suppress data streams, similar to -vn, -an, and -sn.

Attachments (1)

patchdn.diff (1.5 KB ) - added by Carl Eugen Hoyos 13 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 by dave rice, 13 years ago

oops, I double-clicked and made two tickets. See https://ffmpeg.org/trac/ffmpeg/ticket/648

comment:2 by Carl Eugen Hoyos, 13 years ago

Please add a failing command line (that would profit from -dn) and complete, uncut console output.

comment:3 by dave rice, 13 years ago

Here's a failing command line that would profit. When I use -f framemd5 the default is that only the first video and first audio track are used in framemd5. To include all the tracks in the framemd5 output, I can use -map 0 to do this (easier than adding lots of -newaudio and -newvideo). But data tracks don't work in -f framemd5.

ffmpeg -i example.mov -map 0 -f framemd5 -
ffmpeg version N-33392-gf3bacce, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  8 2011 18:33:19 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --enable-gpl
  libavutil    51. 20. 0 / 51. 20. 0
  libavcodec   53. 19. 1 / 53. 19. 1
  libavformat  53. 14. 0 / 53. 14. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101005800] Unimplemented container channel layout.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101005800] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.

Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'example.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2011-11-05 17:32:17
  Duration: 00:19:52.02, start: -39.572900, bitrate: 1122 kb/s
    Stream #0:0(eng): Video: v210 (v210 / 0x30313276), yuv422p10le, 720x486, 223725 kb/s, SAR 9:10 DAR 4:3, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
    Metadata:
      creation_time   : 2011-11-05 17:32:17
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2011-11-05 17:32:17
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2011-11-05 17:32:17
Data stream encoding not supported yet (only streamcopy)

comment:4 by Carl Eugen Hoyos, 13 years ago

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

comment:5 by dave rice, 13 years ago

Ah. I used "-map 0 -map -0:d:" and the -map -0:d acted as -dn would. I thought it would be contradictory to say map all plus say don't map data streams, but this worked. wish closed.

by Carl Eugen Hoyos, 13 years ago

Attachment: patchdn.diff added

comment:6 by Carl Eugen Hoyos, 13 years ago

Could you test attached (completely untested) - with and without -codec copy?

comment:7 by Carl Eugen Hoyos, 13 years ago

Resolution: fixed
Status: openclosed

Patch applied.

Note: See TracTickets for help on using tickets.