[FFmpeg-trac] #6787(ffmpeg:new): mpeg-dash: Codec type of stream 1 doesn't match AdaptationSet's media type

FFmpeg trac at avcodec.org
Sun Oct 29 15:26:37 EET 2017


#6787: mpeg-dash: Codec type of stream 1 doesn't match AdaptationSet's media type
----------------------------------+--------------------------------------
             Reporter:  themihai  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  ffmpeg    |                  Version:  git-master
             Keywords:  dash      |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:

 I'm trying to convert a file to dash format. I'm executing ffmpeg through
 a program feeding it through stdin.  Below are the params.
 "ffmpeg", "-nostdin", "-i", "-", "-y", "-map", "0:0", "-c:0", "h264",
 "-map", "0:1", "-c:1", "aac", "-min_seg_duration", "1000000",
 "-use_timeline", "1", "-use_template", "1", "-init_seg_name",
 "$RepresentationID$-init.mp4s", "-media_seg_name",
 "$RepresentationID$-$Number$.mp4s", "-adaptation_sets",
 "id=/Users/x/export/xyz/97M4TS6IqnQ.mpd,streams=0,1", "-remove_at_exit",
 "0", "-f", "dash", "-dash", "1", "/Users/x/export/xyz/97M4TS6IqnQ.mpd",
 "-loglevel", "error"

 It errors out:

 err out [dash @ 0x7fe58b095400] Codec type of stream 1 doesn't match
 AdaptationSet's media type
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 Error initializing output stream 0:0 --

 version
 -----
 ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
   built with Apple LLVM version 9.0.0 (clang-900.0.37)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared
 --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-
 avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl
 --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl
 --enable-videotoolbox --disable-lzma
   libavutil      55. 78.100 / 55. 78.100
   libavcodec     57.107.100 / 57.107.100
   libavformat    57. 83.100 / 57. 83.100
   libavdevice    57. 10.100 / 57. 10.100
   libavfilter     6.107.100 /  6.107.100
   libavresample   3.  7.  0 /  3.  7.  0
   libswscale      4.  8.100 /  4.  8.100
   libswresample   2.  9.100 /  2.  9.100
   libpostproc    54.  7.100 / 54.  7.100
 Hyper fast Audio and Video encoder

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6787>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list