[FFmpeg-trac] #2608(undetermined:closed): Editing Track ID (-streamid output-stream-index:new-value - ffmpeg advanced option is not working)

FFmpeg trac at avcodec.org
Mon Aug 29 22:48:25 EEST 2016


#2608: Editing Track ID (-streamid output-stream-index:new-value - ffmpeg advanced
option is not working)
-------------------------------------+-------------------------------------
             Reporter:  Dave1024     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mov          |               Resolution:
             Blocking:               |  needs_more_info
Analyzed by developer:  0            |               Blocked By:
                                     |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ecolloton):

 My issue is slightly different from Dave1024's but basically the same. I
 have files with stream id's that are incompatible with our encoder. To be
 clear, it is not the mapping or order of the streams that is the issue,
 just the "id" assigned to them, which can be found in the "ID" field in
 MediaInfo.
 Currently Video ID = 2 and Audio ID = 3. To re-encode to our XDCAM deck I
 need to move Video ID to 1 and Audio ID to 2.

 FFmpeg documentation states:
 "-streamid output-stream-index:new-value (output)
 Assign a new stream-id value to an output stream. This option should be
 specified prior to the output filename to which it applies. For the
 situation where multiple output files exist, a streamid may be reassigned
 to a different value."

 If I understand this correctly than I ought to be able to move the video
 stream from "2" to "1" and audio from "3" to "2" like this:
 "ffmpeg -i infile.mxf -streamid 2:1 -streamid 3:2 outfile.mxf"

 This is clearly not doing what I intended, given the output that follows
 the command:

 C:\Users\ecolloton\Downloads\ffmpeg-20160819-2a3720b-
 win64-static\ffmpeg-20160819-2a3720b-win64-static\bin
 >ffmpeg -i C:\Users\ecolloton\Downloads\cpb-aacip-17-30bvr580.mpeg2.mxf
 -streamid 2:1 -streamid 3:2 C:\Users\ecolloton\Downloads\cpb-
 aacip-17-30bvr580.mpeg2_ver3.mxf
 ffmpeg version N-81391-g2a3720b Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-
 bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-
 gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b
 --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-
 libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
 --enable-lzma --enable-decklink --enable-zlib
   libavutil      55. 29.100 / 55. 29.100
   libavcodec     57. 54.100 / 57. 54.100
   libavformat    57. 47.101 / 57. 47.101
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 52.100 /  6. 52.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 Guessed Channel Layout for Input Stream #0.1 : 4.0
 Input #0, mxf, from 'C:\Users\ecolloton\Downloads\cpb-
 aacip-17-30bvr580.mpeg2.mxf':
   Metadata:
     uid             : 2ef58da0-b2b7-11e2-8042-00133b250710
     generation_uid  : 2ef58da0-b2b7-11e2-8043-00133b250710
     company_name    : OC
     product_name    : OCTk
     product_version : 2.4
     product_uid     : 109c5440-d21d-b211-8029-001111ebc476
     modification_date: 2013-05-01 19:31:01
     material_package_umid:
 0x060A2B340101010501010D20130000002EF4F160B2B711E2803900133B250710
     timecode        : 00:00:00;05
   Duration: 00:26:56.98, start: 0.000000, bitrate: 62606 kb/s
     Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, smpte170m),
 720x512 [SAR 128:135 DAR 4:3], Closed Captions, 50000 kb/s, 29.97 fps,
 29.97 tbr, 29.97 tbn, 59.94 tbc
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D20130000002DE7A010B2B711E2802D00133B250710
     Stream #0:1: Audio: pcm_s16le, 48000 Hz, 4 channels, s16, 3072 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D20130000002DE7A010B2B711E2802D00133B250710
 No pixel format specified, yuv422p for MPEG-2 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [mxf @ 00000000026f4d20] Using AVStream.codec to pass codec parameters to
 muxers is deprecated, use AVStream.codecpar instead.
     Last message repeated 1 times
 Output #0, mxf, to 'C:\Users\ecolloton\Downloads\cpb-
 aacip-17-30bvr580.mpeg2_ver3.mxf':
   Metadata:
     uid             : 2ef58da0-b2b7-11e2-8042-00133b250710
     generation_uid  : 2ef58da0-b2b7-11e2-8043-00133b250710
     company_name    : OC
     product_name    : OCTk
     product_version : 2.4
     product_uid     : 109c5440-d21d-b211-8029-001111ebc476
     modification_date: 2013-05-01 19:31:01
     material_package_umid:
 0x060A2B340101010501010D20130000002EF4F160B2B711E2803900133B250710
     timecode        : 00:00:00;05
     encoder         : Lavf57.47.101
     Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 720x512 [SAR 128:135
 DAR 4:3], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D20130000002DE7A010B2B711E2802D00133B250710
       encoder         : Lavc57.54.100 mpeg2video
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
     Stream #0:1: Audio: pcm_s16le, 48000 Hz, 4.0, s16, 3072 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D20130000002DE7A010B2B711E2802D00133B250710
       encoder         : Lavc57.54.100 pcm_s16le
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
   Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [mxf @ 00000000026f4d20] -d10_channelcount requires MXF D-10 and will be
 ignored
 frame=48461 fps=187 q=31.0 Lsize=  760934kB time=00:26:56.98
 bitrate=3855.1kbits/s speed=6.24x
 video:90919kB audio:606368kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 9.127749%

--
Ticket URL: <https://trac.ffmpeg.org/ticket/2608#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list