Ticket #647 (closed enhancement: fixed)
Add support for -dn (to disable data streams)
| Reported by: | dericed | 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
Change History
comment:2 Changed 19 months ago by cehoyos
Please add a failing command line (that would profit from -dn) and complete, uncut console output.
comment:3 Changed 19 months ago by dericed
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 Changed 19 months ago by cehoyos
- Priority changed from normal to wish
- Status changed from new to open
- Version changed from unspecified to git-master
- Component changed from undetermined to FFmpeg
- Reproduced by developer set
comment:5 Changed 19 months ago by dericed
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.




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