请选择 进入手机版 | 继续访问电脑版

ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 8964|回复: 1

[Windows] ffmpeg如何合成多音轨

[复制链接]
发表于 2019-6-26 10:33:48 | 显示全部楼层 |阅读模式
本帖最后由 chaw899 于 2019-6-26 10:49 编辑

ffmpeg -i 01.mp2 -i 02.mp2 -i hv.m2v -map 0:a -map 1:a -map 0:v -c copy hbg.mpg
提示视频流找不到,其中hv.m2v是mpeg2的码流。
命令有不对的地方码?

只是合成了2个多音轨,视频没有,正确的应该怎么做?

Stream map '0:v' matches no streams.
To ignore this, add a trailing '?' to the map.


ffmpeg -i 01.mp2 -i 02.mp2 -i hv.m2v -map 0:a -map 1:a -map 0:v -c copy hbg.mpg

ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mp3 @ 0337e9a0] Skipping 0 bytes of junk at 0.
[mp3 @ 0337e9a0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from '01.mp2':
  Duration: 00:04:47.62, start: 0.000000, bitrate: 224 kb/s
    Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s
[mp3 @ 03398fe0] Skipping 0 bytes of junk at 0.
[mp3 @ 03398fe0] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from '02.mp2':
  Duration: 00:04:44.98, start: 0.000000, bitrate: 224 kb/s
    Stream #1:0: Audio: mp2, 48000 Hz, stereo, s16p, 224 kb/s
[mpegvideo @ 033b7500] Estimating duration from bitrate, this may be inaccurate
Input #2, mpegvideo, from 'hv.m2v':
  Duration: 00:04:45.21, bitrate: 3000 kb/s
    Stream #2:0: Video: mpeg2video (Main), yuv420p(tv), 640x480 [SAR 1:1 DAR 4:3
], 3000 kb/s, 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc
Stream map '0:v' matches no streams.
To ignore this, add a trailing '?' to the map.



回复

使用道具 举报

发表于 2019-6-26 14:14:12 | 显示全部楼层
0:v 没有这个视频流,你第一个输入的是mp2,是不是没有视频流
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-17 04:16 , Processed in 0.050051 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表